distribution

package
v0.0.0-...-9471f5d Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// BlobURLRegexp regexp which match blob url
	BlobURLRegexp = regexp.MustCompile(`^/v2/` + name + `/blobs/` + dgt)

	// BlobUploadURLRegexp regexp which match blob upload url
	BlobUploadURLRegexp = regexp.MustCompile(`^/v2/` + name + `/blobs/uploads/` + sessionID)

	// InitiateBlobUploadRegexp regexp which match initiate blob upload url
	InitiateBlobUploadRegexp = regexp.MustCompile(`^/v2/` + name + `/blobs/uploads`)

	// ManifestURLRegexp regexp which match manifest url
	ManifestURLRegexp = regexp.MustCompile(`^/v2/` + name + `/manifests/` + reference)
)
View Source
var (
	// UnmarshalManifest alias func from `github.com/docker/distribution`
	UnmarshalManifest = distribution.UnmarshalManifest
)

Functions

func IsDigest

func IsDigest(reference string) bool

IsDigest returns true when reference is digest

func ParseName

func ParseName(path string) string

ParseName returns name value from distribution API URL path

func ParseProjectName

func ParseProjectName(path string) string

ParseProjectName returns project name from distribution API URL path

func ParseRef

func ParseRef(s string) (string, string, error)

ParseRef parse "repository:tag" or "repository@digest" into repository and reference parts

func ParseReference

func ParseReference(path string) string

ParseReference returns digest or tag from distribution API URL path

func ParseSessionID

func ParseSessionID(path string) string

ParseSessionID returns session id value from distribution API URL path

Types

type Descriptor

type Descriptor = distribution.Descriptor

Descriptor alias type of github.com/docker/distribution.Descriptor

type Manifest

type Manifest = distribution.Manifest

Manifest alias type of github.com/docker/distribution.Manifest

Jump to

Keyboard shortcuts

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