Documentation ¶
Overview ¶
Package configauth implements the configuration settings to ensure authentication on incoming requests, and allows exporters to add authentication on outgoing requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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.