registry

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0, BSD-3-Clause Imports: 18 Imported by: 0

README

registry package

This package was forked from github.com/heroku/docker-registry-client at commit afc9e1acc3d53cf9ba26bffb6693d10ebb56a9b8.

License

BSD 3-clause

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlobMetadata

func BlobMetadata(ctx context.Context, client *http.Client, registry *url.URL, repository string, digest digest.Digest) (distribution.Descriptor, error)

func DeleteManifest

func DeleteManifest(ctx context.Context, client *http.Client, registry *url.URL, repository, reference string) error

func DownloadBlob

func DownloadBlob(ctx context.Context, client *http.Client, registry *url.URL, repository string, digest digest.Digest) (io.ReadCloser, error)

func HasBlob

func HasBlob(ctx context.Context, client *http.Client, registry *url.URL, repository string, digest digest.Digest) (bool, error)

func Manifest

func Manifest(ctx context.Context, client *http.Client, registry *url.URL, repository, reference string) (*schema1.SignedManifest, error)

func ManifestDigest

func ManifestDigest(ctx context.Context, client *http.Client, registry *url.URL, repository, reference string) (digest.Digest, error)

func ManifestV2

func ManifestV2(ctx context.Context, client *http.Client, registry *url.URL, repository, reference string) (*schema2.DeserializedManifest, error)

func Ping

func Ping(ctx context.Context, client *http.Client, registry *url.URL) error

func PutManifest

func PutManifest(ctx context.Context, client *http.Client, registry *url.URL, repository, reference string, manifest distribution.Manifest) error

func Repositories

func Repositories(ctx context.Context, client *http.Client, registry *url.URL) (repos []string, err error)

func Tags

func Tags(ctx context.Context, client *http.Client, registry *url.URL, repository string) (tags []string, err error)

func UploadBlob

func UploadBlob(ctx context.Context, client *http.Client, registry *url.URL, repository string, digest digest.Digest, content io.Reader) error

Types

type AuthorizationChallenge

type AuthorizationChallenge struct {
	Scheme     string
	Parameters map[string]string
}

AuthorizationChallenge carries information from a WWW-Authenticate response header.

type HTTPStatusError

type HTTPStatusError struct {
	Status      string
	StatusCode  int
	ContentType string
	Body        []byte
}

func (*HTTPStatusError) Error

func (e *HTTPStatusError) Error() string

Jump to

Keyboard shortcuts

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