authenticator

package
v0.23.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FullVersionName = fmt.Sprintf("%s%s", Version, TagSuffix)

FullVersionName is the user-visible aggregation of version and tag of this codebase

View Source
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

View Source
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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL