Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientGenerator ¶
ClientGenerator generates a registry client and a temporary credential file. The client is meant to be used for a single reconciliation. The file is meant to be used for a single reconciliation and deleted after.
func LoginOptionFromSecret ¶
LoginOptionFromSecret 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 OIDCAdaptHelper ¶ added in v0.28.0
func OIDCAdaptHelper(authenticator authn.Authenticator) (registry.LoginOption, error)
OIDCAdaptHelper returns an ORAS credentials callback configured with the authorization data from the given authn authenticator. This allows for example to make use of credential helpers from cloud providers. Ref: https://github.com/google/go-containerregistry/tree/main/pkg/authn
Types ¶
This section is empty.