Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusOK = 0 StatusGetTokenFailed = 1 StatusParseTokenFailed = 2 )
Variables ¶
This section is empty.
Functions ¶
func NewServiceAccountSource ¶
Types ¶
type TokenProvider ¶
type TokenProvider struct {
// contains filtered or unexported fields
}
TokenProvider - represents TokenProvider
func NewTokenProvider ¶
func NewTokenProvider(options TokenProviderOptions) (*TokenProvider, error)
NewTokenProvider - Generate new OIDC token provider
func (*TokenProvider) GetToken ¶
func (p *TokenProvider) GetToken(parent context.Context, _ apis.TokenRequest) (apis.TokenResponse, error)
GetToken implements apis.TokenProvider.GetToken method
type TokenProviderOptions ¶
type TokenProviderOptions struct { Timeout int CredentialsWatch bool CredentialsFile string TargetAudience string }
TokenProviderOptions - options specific for oidc
type TokenRefresher ¶
type TokenRefresher struct {
// contains filtered or unexported fields
}
TokenRefresher - struct providing refreshing of tokens
Click to show internal directories.
Click to hide internal directories.