Documentation
¶
Index ¶
- Constants
- type Implementation
- type Provider
- func (Provider) GetAccessTokenOptionsForCluster(opts ...auth.Option) ([][]auth.Option, error)
- func (Provider) GetAudiences(context.Context, corev1.ServiceAccount) ([]string, error)
- func (Provider) GetIdentity(serviceAccount corev1.ServiceAccount) (string, error)
- func (p Provider) GetName() string
- func (p Provider) NewControllerToken(ctx context.Context, opts ...auth.Option) (auth.Token, error)
- func (Provider) NewRESTConfig(ctx context.Context, accessTokens []auth.Token, opts ...auth.Option) (*auth.RESTConfig, error)
- func (Provider) NewTokenForServiceAccount(ctx context.Context, oidcToken string, serviceAccount corev1.ServiceAccount, ...) (auth.Token, error)
- type Token
Constants ¶
View Source
const ProviderName = "generic"
ProviderName is the name of the generic authentication provider.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Implementation ¶
Implementation provides the required methods of the generic libraries.
type Provider ¶
type Provider struct{ Implementation }
Provider implements the auth.Provider interface for generic authentication.
func (Provider) GetAccessTokenOptionsForCluster ¶
GetAccessTokenOptionsForCluster implements auth.RESTConfigProvider.
func (Provider) GetAudiences ¶
GetAudiences implements auth.RESTConfigProvider.
func (Provider) GetIdentity ¶
func (Provider) GetIdentity(serviceAccount corev1.ServiceAccount) (string, error)
GetIdentity implements auth.RESTConfigProvider.
func (Provider) NewControllerToken ¶
NewControllerToken implements auth.RESTConfigProvider.
Click to show internal directories.
Click to hide internal directories.