Documentation ¶
Overview ¶
Package configauth implements the configuration settings to ensure authentication on incoming requests, and allows exporters to add authentication on outgoing requests.
Index ¶
- Variables
- type AuthenticateFuncdeprecated
- type Authentication
- type ClientAuthenticatordeprecated
- type ClientOptiondeprecated
- type MockClientAuthenticatordeprecated
- type Optiondeprecated
- type ServerAuthenticatordeprecated
Constants ¶
This section is empty.
Variables ¶
var NewClientAuthenticator = auth.NewClient
Deprecated: [v0.67.0] Use auth.NewClient
var NewServerAuthenticator = auth.NewServer
Deprecated: [v0.67.0] Use auth.NewServer
var WithAuthenticate = auth.WithServerAuthenticate
Deprecated: [v0.67.0] Use auth.WithServerAuthenticate
var WithClientRoundTripper = auth.WithClientRoundTripper
Deprecated: [v0.67.0] Use auth.WithClientRoundTripper
var WithClientShutdown = auth.WithClientShutdown
Deprecated: [v0.67.0] Use auth.WithClientShutdown
var WithClientStart = auth.WithClientStart
Deprecated: [v0.67.0] Use auth.WithClientStart
var WithPerRPCCredentials = auth.WithClientPerRPCCredentials
Deprecated: [v0.67.0] Use auth.WithClientPerRPCCredentials
var WithShutdown = auth.WithServerShutdown
Deprecated: [v0.67.0] Use auth.WithShutdown
var WithStart = auth.WithServerStart
Deprecated: [v0.67.0] Use auth.WithServerStart
Functions ¶
This section is empty.
Types ¶
type AuthenticateFunc
deprecated
added in
v0.26.0
type AuthenticateFunc = auth.ServerAuthenticateFunc
Deprecated: [v0.67.0] Use auth.ServerAuthenticateFunc
type Authentication ¶
type Authentication struct { // AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point. AuthenticatorID component.ID `mapstructure:"authenticator"` }
Authentication defines the auth settings for the receiver.
func (Authentication) GetClientAuthenticator ¶ added in v0.38.0
func (a Authentication) GetClientAuthenticator(extensions map[component.ID]component.Component) (auth.Client, error)
GetClientAuthenticator attempts to select the appropriate auth.Client from the list of extensions, based on the component id of the extension. If an authenticator is not found, an error is returned. This should be only used by HTTP clients.
func (Authentication) GetServerAuthenticator ¶ added in v0.38.0
func (a Authentication) GetServerAuthenticator(extensions map[component.ID]component.Component) (auth.Server, error)
GetServerAuthenticator attempts to select the appropriate auth.Server from the list of extensions, based on the requested extension name. If an authenticator is not found, an error is returned.
type ClientAuthenticator
deprecated
added in
v0.28.0
type ClientOption
deprecated
added in
v0.47.0
type ClientOption = auth.ClientOption
Deprecated: [v0.67.0] Use auth.ClientOption
type MockClientAuthenticator
deprecated
added in
v0.28.0
type MockClientAuthenticator = authtest.MockClient
Deprecated: [v0.67.0] Use auth.MockClient
type Option
deprecated
added in
v0.42.0
type Option = auth.ServerOption
Deprecated: [v0.67.0] Use auth.ServerOption