Documentation
¶
Index ¶
Constants ¶
View Source
const ( // See: https://github.com/distribution/reference/blob/v0.5.0/regexp.go#L53 NameSeparator = `(?:[._]|__|[-]+)` // See: https://github.com/distribution/reference/blob/v0.5.0/regexp.go#L123 PathComponent = Alphanumeric + `(` + NameSeparator + Alphanumeric + `)*` // See: https://github.com/distribution/reference/blob/v0.5.0/regexp.go#L125-L130 ImageRepository = `(` + HostAndOptionalPort + `/)?` + PathComponent + `(/` + PathComponent + `)*` // See: https://github.com/distribution/reference/blob/v0.5.0/regexp.go#L68 ImageTag = `[\w][\w.-]{0,127}` // See: https://github.com/distribution/reference/blob/v0.5.0/regexp.go#L81 ImageDigest = `[A-Za-z][A-Za-z0-9]*(?:[-_+.][A-Za-z][A-Za-z0-9]*)*[:][0-9A-Fa-f]{32,}` // See: https://github.com/distribution/reference/blob/v0.5.0/regexp.go#L136C2-L136C14 ImageReference = ImageRepository + `(:` + ImageTag + `)?` + `(@` + ImageDigest + `)?` )
View Source
const ( // See: https://github.com/kubernetes/apimachinery/blob/v0.28.1/pkg/util/validation/validation.go#L178 DNS1123Label = `[a-z0-9]([-a-z0-9]*[a-z0-9])?` // See: https://github.com/kubernetes/apimachinery/blob/v0.28.1/pkg/util/validation/validation.go#L205 DNS1123Subdomain = DNS1123Label + `(\.` + DNS1123Label + `)*` )
View Source
const ( // See: https://github.com/distribution/reference/blob/v0.5.0/regexp.go#L91 IPv6 = `\[(?:[a-fA-F0-9:]+)\]` Port = `:[0-9]+` // See https://github.com/distribution/reference/blob/v0.5.0/regexp.go#L65 OptionalPort = `(` + Port + `)?` // See: https://github.com/distribution/reference/blob/v0.5.0/regexp.go#L106 Host = `(?:` + DNS1123Subdomain + `|` + IPv6 + `)` // See: https://github.com/distribution/reference/blob/v0.5.0/regexp.go#L110 HostAndOptionalPort = Host + OptionalPort )
View Source
const (
// See: https://github.com/distribution/reference/blob/v0.5.0/regexp.go#L44C2-L44C28
Alphanumeric = `[a-z0-9]+`
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.