MCPcopy
hub / github.com/elastic/go-elasticsearch / WithServiceToken

Function WithServiceToken

options.go:126–128  ·  view source on GitHub ↗

WithServiceToken configures bearer-token authentication using the given service token.

(token string)

Source from the content-addressed store, hash-verified

124// WithServiceToken configures bearer-token authentication using the given
125// service token.
126func WithServiceToken(token string) Option {
127 return withTransportOption(elastictransport.WithServiceToken(token))
128}
129
130// WithCACert sets PEM-encoded CA certificates used to verify the server's TLS
131// certificate.

Callers

nothing calls this directly

Calls 1

withTransportOptionFunction · 0.85

Tested by

no test coverage detected