Documentation ¶
Overview ¶
Package authenticator ...
Index ¶
- Constants
- type APIKeyAuthenticator
- func (aa *APIKeyAuthenticator) GetSecret() string
- func (aa *APIKeyAuthenticator) GetToken(freshTokenRequired bool) (string, uint64, error)
- func (aa *APIKeyAuthenticator) IsSecretEncrypted() bool
- func (aa *APIKeyAuthenticator) SetEncryption(encrypted bool)
- func (aa *APIKeyAuthenticator) SetSecret(secret string)
- func (aa *APIKeyAuthenticator) SetURL(url string)
- type Authenticator
- type ComputeIdentityAuthenticator
- func (ca *ComputeIdentityAuthenticator) GetSecret() string
- func (ca *ComputeIdentityAuthenticator) GetToken(freshTokenRequired bool) (string, uint64, error)
- func (ca *ComputeIdentityAuthenticator) IsSecretEncrypted() bool
- func (ca *ComputeIdentityAuthenticator) SetEncryption(encrypted bool)
- func (ca *ComputeIdentityAuthenticator) SetSecret(secret string)
- func (ca *ComputeIdentityAuthenticator) SetURL(url string)
- type FakeAuthenticator
- func (fa *FakeAuthenticator) GetSecret() string
- func (fa *FakeAuthenticator) GetToken(freshTokenRequired bool) (string, uint64, error)
- func (fa *FakeAuthenticator) IsSecretEncrypted() bool
- func (fa *FakeAuthenticator) SetEncryption(encrypted bool)
- func (fa *FakeAuthenticator) SetSecret(secret string)
- func (fa *FakeAuthenticator) SetURL(url string)
Constants ¶
View Source
const ( ProviderType string = "ProviderType" SecretKey string = "SecretKey" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKeyAuthenticator ¶
type APIKeyAuthenticator struct {
// contains filtered or unexported fields
}
APIKeyAuthenticator ...
func NewIamAuthenticator ¶
func NewIamAuthenticator(apikey string, logger *zap.Logger) *APIKeyAuthenticator
NewIamAuthenticator ...
func (*APIKeyAuthenticator) GetSecret ¶
func (aa *APIKeyAuthenticator) GetSecret() string
GetSecret ...
func (*APIKeyAuthenticator) GetToken ¶
func (aa *APIKeyAuthenticator) GetToken(freshTokenRequired bool) (string, uint64, error)
GetToken ...
func (*APIKeyAuthenticator) IsSecretEncrypted ¶
func (aa *APIKeyAuthenticator) IsSecretEncrypted() bool
IsSecretEncrypted ...
func (*APIKeyAuthenticator) SetEncryption ¶
func (aa *APIKeyAuthenticator) SetEncryption(encrypted bool)
SetEncryption ...
func (*APIKeyAuthenticator) SetSecret ¶
func (aa *APIKeyAuthenticator) SetSecret(secret string)
SetSecret ...
type Authenticator ¶
type Authenticator interface { GetToken(freshTokenRequired bool) (string, uint64, error) GetSecret() string SetSecret(secret string) SetURL(url string) SetEncryption(bool) IsSecretEncrypted() bool // contains filtered or unexported methods }
Authenticator ...
func NewAuthenticator ¶
func NewAuthenticator(logger *zap.Logger, kc k8s_utils.KubernetesClient, optionalArgs ...map[string]string) (Authenticator, string, error)
NewAuthenticator initializes the particular authenticator based on the configuration provided.
type ComputeIdentityAuthenticator ¶
type ComputeIdentityAuthenticator struct {
// contains filtered or unexported fields
}
ComputeIdentityAuthenticator ...
func NewComputeIdentityAuthenticator ¶
func NewComputeIdentityAuthenticator(profileID string, logger *zap.Logger) *ComputeIdentityAuthenticator
NewComputeIdentityAuthenticator ...
func (*ComputeIdentityAuthenticator) GetSecret ¶
func (ca *ComputeIdentityAuthenticator) GetSecret() string
GetSecret ...
func (*ComputeIdentityAuthenticator) GetToken ¶
func (ca *ComputeIdentityAuthenticator) GetToken(freshTokenRequired bool) (string, uint64, error)
GetToken ...
func (*ComputeIdentityAuthenticator) IsSecretEncrypted ¶
func (ca *ComputeIdentityAuthenticator) IsSecretEncrypted() bool
IsSecretEncrypted ...
func (*ComputeIdentityAuthenticator) SetEncryption ¶
func (ca *ComputeIdentityAuthenticator) SetEncryption(encrypted bool)
SetEncryption ...
func (*ComputeIdentityAuthenticator) SetSecret ¶
func (ca *ComputeIdentityAuthenticator) SetSecret(secret string)
SetSecret ...
func (*ComputeIdentityAuthenticator) SetURL ¶
func (ca *ComputeIdentityAuthenticator) SetURL(url string)
SetURL ...
type FakeAuthenticator ¶
type FakeAuthenticator struct {
// contains filtered or unexported fields
}
func NewFakeAuthenticator ¶
func NewFakeAuthenticator(logger *zap.Logger) *FakeAuthenticator
func (*FakeAuthenticator) GetToken ¶
func (fa *FakeAuthenticator) GetToken(freshTokenRequired bool) (string, uint64, error)
GetToken ...
func (*FakeAuthenticator) IsSecretEncrypted ¶
func (fa *FakeAuthenticator) IsSecretEncrypted() bool
IsSecretEncrypted ...
func (*FakeAuthenticator) SetEncryption ¶
func (fa *FakeAuthenticator) SetEncryption(encrypted bool)
SetEncryption ...
func (*FakeAuthenticator) SetSecret ¶
func (fa *FakeAuthenticator) SetSecret(secret string)
SetSecret ...
Click to show internal directories.
Click to hide internal directories.