registry

package
v1.7.7-7-g69c85de-2-ge... Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDeprecatedManifest    = errors.New("deprecated image manifest")
	ErrPullRateLimitExceeded = errors.New("image pull rate limit exceeded")
)

Functions

This section is empty.

Types

type Repository added in v1.6.0

type Repository struct {
	// contains filtered or unexported fields
}

Repository represents a repository using Docker Registry API v2.

func New

func New(image, user, password string) *Repository

New creates a client for a repository.

func (*Repository) HasImage added in v1.6.0

func (c *Repository) HasImage(ctx context.Context, tag string) (bool, error)

HasImage returns an image tag exists or not in the repository.

func (*Repository) HasPlatformImage added in v1.99.0

func (c *Repository) HasPlatformImage(ctx context.Context, tag, arch, os string) (bool, error)

HasPlatformImage returns an image tag for arch/os exists or not in the repository.

Jump to

Keyboard shortcuts

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