distribution

package
v1.16.4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchDigest

func FetchDigest(ctx context.Context, registryHost, repository, tag string, credential *Credentials) (string, error)

func FetchDigestWithHTTPClient

func FetchDigestWithHTTPClient(ctx context.Context, registryHost, repository, tag string, credential *Credentials, httpClient *http.Client) (string, error)

func IsFallbackEligibleDaemonError

func IsFallbackEligibleDaemonError(err error) bool

func NewRegistryHTTPClient

func NewRegistryHTTPClient() *http.Client

NewRegistryHTTPClient returns the shared transport configuration used for direct registry digest lookups.

Types

type Credentials

type Credentials struct {
	Username string
	Token    string
}

type Reference

type Reference struct {
	NormalizedRef string
	RegistryHost  string
	Repository    string
	Tag           string
}

func NormalizeReference

func NormalizeReference(imageRef string) (*Reference, error)

Jump to

Keyboard shortcuts

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