Documentation ¶
Overview ¶
Package auth package
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OIDCTokenGetter ¶ added in v0.26.0
OIDCTokenGetter is a callback for returning the OIDC token that is used to login to the service account
type TokenProvider ¶
TokenProvider is an interface with a GetToken method.
func NewServiceAccountTokenProvider ¶
func NewServiceAccountTokenProvider(endpointURL string, accountPath string, oidcTokenGetter OIDCTokenGetter) (TokenProvider, error)
NewServiceAccountTokenProvider returns a new instance of this provider.
Constructor arguments for options service account path and token values take priority over the environment variables. For now,
func NewStaticTokenProvider ¶
func NewStaticTokenProvider(token string) (TokenProvider, error)
NewStaticTokenProvider returns a new instance of this provider.
Click to show internal directories.
Click to hide internal directories.