Documentation
¶
Overview ¶
authutils contains utility functions that import both the core auth package and the provider packages i.e. functions that cannot be placed in the core package because they would cause a cyclic dependency (the provider packages also import the core package).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrProviderDoesNotSupportRegistry = errors.New("provider does not support registry authentication")
ErrProviderDoesNotSupportRegistry is returned when the provider does not support registry authentication.
Functions ¶
func GetArtifactRegistryCredentials ¶
func GetArtifactRegistryCredentials(ctx context.Context, providerName, artifactRepository string, opts ...auth.Option) (authn.Authenticator, error)
GetArtifactRegistryCredentials retrieves the credentials for the specified artifact repository using the specified provider. It returns an authn.Authenticator that can be used to authenticate with the registry.
func ProviderByName ¶
ProviderByName looks up the implemented providers by name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.