Documentation ¶
Index ¶
- Constants
- func GetAuthorizationToken(ctx context.Context, httpClient httputils.Client, credentials Credentials, ...) (httputils.Token, error)
- func NewAuthorizationProviderFromSecret(config *Config, httpClient httputils.Client, tokenTimeout time.Duration, ...) (*tokenAuthorizationProviderFromSecret, error)
- func NewTokenAuthorizationProviderFromHeader() *tokenAuthorizationProviderFromHeader
- func PrepareK8sClient(duration time.Duration) (client.Client, error)
- type Config
- type Credentials
Constants ¶
View Source
const AuthzHeader = "Authorization"
Variables ¶
This section is empty.
Functions ¶
func GetAuthorizationToken ¶
func NewTokenAuthorizationProviderFromHeader ¶
func NewTokenAuthorizationProviderFromHeader() *tokenAuthorizationProviderFromHeader
Types ¶
type Config ¶
type Config struct { SecretName string `mapstructure:"secret_name"` SecretNamespace string `mapstructure:"secret_namespace"` WaitSecretTimeout time.Duration `mapstructure:"wait_secret_timeout"` WaitKubeMapperTimeout time.Duration `mapstructure:"wait_kube_mapper_timeout"` }
func DefaultConfig ¶
func DefaultConfig() *Config
type Credentials ¶
Click to show internal directories.
Click to hide internal directories.