Help us shape the future of Go! Take the 2026 Go Developer Survey

generic

package
v0.64.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 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

func (Provider) GetAccessCredentialOptionsForCluster(opts ...auth.Option) ([][]auth.Option, error)

GetAccessCredentialOptionsForCluster implements auth.RESTConfigProvider.

func (Provider) GetAudiences

func (Provider) GetAudiences(_ context.Context, opts ...auth.Option) ([]string, error)

GetAudiences implements auth.RESTConfigProvider.

func (Provider) GetIdentity

func (Provider) GetIdentity(opts ...auth.Option) (string, error)

GetIdentity implements auth.RESTConfigProvider.

func (Provider) GetName

func (Provider) GetName() string

GetName 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.

func (Provider) ParseArtifactRepository added in v0.64.0

func (Provider) ParseArtifactRepository(string) (string, error)

ParseArtifactRepository implements auth.ArtifactRegistryCredentialsProvider.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL