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 ParseProjectName ¶
ParseProjectName returns project name from distribution API URL path
func ParseRef ¶
ParseRef parse "repository:tag" or "repository@digest" into repository and reference parts
func ParseReference ¶
ParseReference returns digest or tag from distribution API URL path
func ParseSessionID ¶
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
Click to show internal directories.
Click to hide internal directories.