base

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TempBlobsDir = "/tmp"
)

Variables

View Source
var Logger = log.Log.WithName("registry")

Functions

This section is empty.

Types

type Factory

type Factory struct {
	K8sClient      client.Client
	NamespacedName types.NamespacedName
	Scheme         *runtime.Scheme
	HttpClient     *cmhttp.HttpClient
}

Factory

type Readable

type Readable interface {
	ListRepositories() *image.APIRepositories
	ListTags(repository string) *image.APIRepository
}

type Registry

type Registry interface {
}

type Replicatable

type Replicatable interface {
	GetManifest(image string) (*image.ImageManifest, error)
	PutManifest(image string, manifest *image.ImageManifest) error
	ExistBlob(repository, digest string) (bool, error)
	PullBlob(repository, digest string) (string, int64, error)
	PushBlob(repository, digest, blobPath string, size int64) error
}

type Synchronizable

type Synchronizable interface {
	Readable
	Synchronize() error
}

Jump to

Keyboard shortcuts

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