Documentation
¶
Index ¶
- func KeychainFromSecret(registryURL string, secret corev1.Secret) (authn.Keychain, error)
- func NewClient(creds auth.CredentialFunc, tlsConfig *tls.Config, insecureHTTP bool) (*registry.Client, error)
- func NewCredentials(auth authn.Authenticator, keychain authn.Keychain, registryURL string) (auth.CredentialFunc, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeychainFromSecret ¶ added in v1.8.0
KeychainFromSecret derives authentication data from a Secret to login to an OCI registry. This Secret may either hold "username" and "password" fields or be of the corev1.SecretTypeDockerConfigJson type and hold a corev1.DockerConfigJsonKey field with a complete Docker configuration. If both, "username" and "password" are empty, a nil LoginOption and a nil error will be returned.
func NewClient ¶ added in v1.8.0
func NewClient(creds auth.CredentialFunc, tlsConfig *tls.Config, insecureHTTP bool) (*registry.Client, error)
NewClient creates a new OCI registry client with the provided options.
func NewCredentials ¶ added in v1.8.0
func NewCredentials(auth authn.Authenticator, keychain authn.Keychain, registryURL string) (auth.CredentialFunc, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.