client

package
v28.3.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2025 License: Apache-2.0 Imports: 24 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RepoNameForReference deprecated

func RepoNameForReference(ref reference.Named) (string, error)

RepoNameForReference returns the repository name from a reference.

Deprecated: this function is no longer used and will be removed in the next release.

Types

type AuthConfigResolver

type AuthConfigResolver func(ctx context.Context, index *registrytypes.IndexInfo) registrytypes.AuthConfig

AuthConfigResolver returns Auth Configuration for an index

type ErrBlobCreated

type ErrBlobCreated struct {
	From   reference.Named
	Target reference.Named
}

ErrBlobCreated returned when a blob mount request was created

func (ErrBlobCreated) Error

func (err ErrBlobCreated) Error() string

type RegistryClient

type RegistryClient interface {
	GetManifest(ctx context.Context, ref reference.Named) (manifesttypes.ImageManifest, error)
	GetManifestList(ctx context.Context, ref reference.Named) ([]manifesttypes.ImageManifest, error)
	MountBlob(ctx context.Context, source reference.Canonical, target reference.Named) error
	PutManifest(ctx context.Context, ref reference.Named, manifest distribution.Manifest) (digest.Digest, error)
}

RegistryClient is a client used to communicate with a Docker distribution registry

func NewRegistryClient

func NewRegistryClient(resolver AuthConfigResolver, userAgent string, insecure bool) RegistryClient

NewRegistryClient returns a new RegistryClient with a resolver

Jump to

Keyboard shortcuts

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