registry

package
v0.0.0-...-1a65c5d Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerRegistry

type DockerRegistry struct {
	URL    string
	Client *http.Client
}

func (*DockerRegistry) LayerDownload

func (r *DockerRegistry) LayerDownload(ctx context.Context, repo string, digest digest.Digest) (io.ReadCloser, error)

func (*DockerRegistry) LayerExists

func (r *DockerRegistry) LayerExists(ctx context.Context, repo string, digest digest.Digest) (bool, error)

func (*DockerRegistry) LayerMount

func (r *DockerRegistry) LayerMount(ctx context.Context, repo string, digest digest.Digest) error

func (*DockerRegistry) LayerUpload

func (r *DockerRegistry) LayerUpload(ctx context.Context, repo string, digest digest.Digest, reader io.Reader) error

func (*DockerRegistry) ManifestV2

func (*DockerRegistry) ManifestV2Exists

func (r *DockerRegistry) ManifestV2Exists(ctx context.Context, repo string, ref string) (bool, error)

func (*DockerRegistry) ManifestV2Put

func (r *DockerRegistry) ManifestV2Put(ctx context.Context, repo string, ref string, manifest manifestV2.DeserializedManifest) error

func (*DockerRegistry) Ping

func (r *DockerRegistry) Ping() error

type Registry

type Registry interface {
	Ping() error
	ManifestV2(ctx context.Context, repo string, ref string) (manifestV2.DeserializedManifest, error)
	ManifestV2Exists(ctx context.Context, repo string, ref string) (bool, error)
	ManifestV2Put(ctx context.Context, repo string, ref string, manifest manifestV2.DeserializedManifest) error
	LayerExists(ctx context.Context, repo string, digest digest.Digest) (bool, error)
	LayerDownload(ctx context.Context, repo string, digest digest.Digest) (io.ReadCloser, error)
	LayerUpload(ctx context.Context, repo string, digest digest.Digest, reader io.Reader) error
	LayerMount(ctx context.Context, repo string, digest digest.Digest) error
}

func NewRegistry

func NewRegistry(url string) Registry

Jump to

Keyboard shortcuts

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