Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StaticTokenProvider ¶
type StaticTokenProvider struct {
Token Token
}
StaticTokenProvider provides a utility for wrapping a static bearer token value within an implementation of a token provider.
func (StaticTokenProvider) RetrieveBearerToken ¶
func (s StaticTokenProvider) RetrieveBearerToken(aws.Context) (Token, error)
RetrieveBearerToken returns the static token specified.
type TokenProvider ¶
TokenProvider provides interface for retrieving bearer tokens.
type TokenProviderFunc ¶
TokenProviderFunc provides a helper utility to wrap a function as a type that implements the TokenProvider interface.
func (TokenProviderFunc) RetrieveBearerToken ¶
func (fn TokenProviderFunc) RetrieveBearerToken(ctx aws.Context) (Token, error)
RetrieveBearerToken calls the wrapped function, returning the Token or error.
Click to show internal directories.
Click to hide internal directories.