registry

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Endpoint = ""
View Source
var ErrNotFound = errors.New("could not find source image")
View Source
var Protocol = "http://"

Functions

func CacheImage

func CacheImage(imageName string, desc *remote.Descriptor, architectures []string) error

func ContainerAnnotationKey added in v1.3.0

func ContainerAnnotationKey(containerName string, initContainer bool) string

func DeleteImage

func DeleteImage(imageName string) error

func GetDescriptor added in v1.8.0

func GetDescriptor(imageName string, pullSecrets []corev1.Secret, insecureRegistries []string, rootCAs *x509.CertPool) (*remote.Descriptor, error)

func GetKeychains added in v1.6.0

func GetKeychains(imageName string, pullSecrets []corev1.Secret) ([]authn.Keychain, error)

func GetLocalDescriptor added in v1.8.0

func GetLocalDescriptor(imageName string) (*remote.Descriptor, error)

func GetPullSecrets added in v1.6.0

func GetPullSecrets(apiReader client.Reader, namespace string, pullSecretNames []string) ([]corev1.Secret, error)

func ImageIsCached

func ImageIsCached(imageName string) (bool, error)

func LoadRootCAPoolFromFiles added in v1.5.0

func LoadRootCAPoolFromFiles(certificatePaths []string) (*x509.CertPool, error)

func RepositoryLabel

func RepositoryLabel(repositoryName string) string

func SanitizeName

func SanitizeName(image string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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