Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var FullVersionName = fmt.Sprintf("%s%s", Version, TagSuffix)
FullVersionName is the user-visible aggregation of version and tag of this codebase
var TagSuffix = "-dev"
TagSuffix field denotes the specific build type for the client. It may be replaced by compile-time variables if needed to provide the git commit information in the final binary. In fixed versions, we don't want the tag to be present
var Version = "0.23.1"
Version field is a SemVer that should indicate the baked-in version of the authn-k8s-client
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator interface { Authenticate() error AuthenticateWithContext(ctx context.Context) error GetAccessToken() access_token.AccessToken }
func NewAuthenticator ¶ added in v0.23.0
func NewAuthenticator(conf config.Configuration) (Authenticator, error)
NewAuthenticator creates an instance of the Authenticator interface based on configured authenticator type.
func NewAuthenticatorWithAccessToken ¶ added in v0.23.0
func NewAuthenticatorWithAccessToken(conf config.Configuration, token access_token.AccessToken) (Authenticator, error)
NewAuthenticatorWithAccessToken creates an instance of the Authenticator interface based on configured authenticator type and access token