registryrepository

package
v0.0.0-...-25be970 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package registryrepository provides access to an OCI image registry

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registry

type Registry interface {
	// ImageExist check if an image is available
	ImageExist(ref string) (bool, error)
	// Push pushes an image to the registry
	Push(ref string, image v1.Image) error
	// Pull pulls an image
	Pull(ref string) (v1.Image, error)
	// GetURL evaluates the URL of image
	GetURL() string
}

Registry is the interface to access an OCI image registry.

func NewContainerRegistry

func NewContainerRegistry(url, username, secret string, insecure bool) Registry

NewContainerRegistry returns an implementation of Registry.

Jump to

Keyboard shortcuts

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