Documentation
¶
Index ¶
- Constants
- type Provider
- func (Provider) GetAccessCredentialOptionsForArtifactRepository(artifactRepository string, opts ...auth.Option) ([]auth.Option, error)
- func (Provider) GetAccessCredentialOptionsForCluster(opts ...auth.Option) ([][]auth.Option, error)
- func (Provider) GetAudiences(_ context.Context, opts ...auth.Option) ([]string, error)
- func (Provider) GetIdentity(opts ...auth.Option) (string, error)
- func (Provider) GetName() string
- func (Provider) NewAccessCredentialForIdentity(_ context.Context, identity auth.Credential, _ ...auth.Option) (auth.Credential, error)
- func (Provider) NewArtifactRegistryCredentials(_ context.Context, _ string, accessCredential auth.Credential, ...) (*auth.ArtifactRegistryCredentials, error)
- func (Provider) NewControllerToken(ctx context.Context, opts ...auth.Option) (auth.Credential, error)
- func (Provider) NewRESTConfig(ctx context.Context, accessCredentials []auth.Credential, opts ...auth.Option) (*auth.RESTConfig, error)
- func (Provider) ParseArtifactRepository(string) (string, error)
Constants ¶
const ProviderName = "generic"
ProviderName is the name of the generic authentication provider.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct{}
Provider implements the auth.Provider interface for generic authentication.
func (Provider) GetAccessCredentialOptionsForArtifactRepository ¶ added in v0.64.0
func (Provider) GetAccessCredentialOptionsForArtifactRepository(artifactRepository string, opts ...auth.Option) ([]auth.Option, error)
GetAccessCredentialOptionsForArtifactRepository implements auth.ArtifactRegistryCredentialsProvider.
func (Provider) GetAccessCredentialOptionsForCluster ¶ added in v0.64.0
GetAccessCredentialOptionsForCluster implements auth.RESTConfigProvider.
func (Provider) GetAudiences ¶
GetAudiences implements auth.RESTConfigProvider.
func (Provider) GetIdentity ¶
GetIdentity implements auth.RESTConfigProvider.
func (Provider) NewAccessCredentialForIdentity ¶ added in v0.64.0
func (Provider) NewAccessCredentialForIdentity(_ context.Context, identity auth.Credential, _ ...auth.Option) (auth.Credential, error)
NewAccessCredentialForIdentity implements auth.RESTConfigProvider.
func (Provider) NewArtifactRegistryCredentials ¶ added in v0.64.0
func (Provider) NewArtifactRegistryCredentials(_ context.Context, _ string, accessCredential auth.Credential, opts ...auth.Option) (*auth.ArtifactRegistryCredentials, error)
NewArtifactRegistryCredentials implements auth.ArtifactRegistryCredentialsProvider.
func (Provider) NewControllerToken ¶
func (Provider) NewControllerToken(ctx context.Context, opts ...auth.Option) (auth.Credential, error)
NewControllerToken implements auth.RESTConfigProvider.
func (Provider) NewRESTConfig ¶
func (Provider) NewRESTConfig(ctx context.Context, accessCredentials []auth.Credential, opts ...auth.Option) (*auth.RESTConfig, error)
NewRESTConfig implements auth.RESTConfigProvider.