generic

package
v0.66.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 9 Imported by: 3 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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