registry

package
v0.25.8 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientGenerator

func ClientGenerator(isLogin bool) (*registry.Client, string, error)

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

func LoginOptionFromSecret(registryURL string, secret corev1.Secret) (registry.LoginOption, error)

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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