1 package reference 2 3 import ( 4 "github.com/distribution/reference" 5 ) 6 7 // DigestRegexp matches well-formed digests, including algorithm (e.g. "sha256:<encoded>"). 8 // 9 // Deprecated: use [reference.DigestRegexp]. 10 var DigestRegexp = reference.DigestRegexp 11 12 // DomainRegexp matches hostname or IP-addresses, optionally including a port 13 // number. It defines the structure of potential domain components that may be 14 // part of image names. This is purposely a subset of what is allowed by DNS to 15 // ensure backwards compatibility with Docker image names. It may be a subset of 16 // DNS domain name, an IPv4 address in decimal format, or an IPv6 address between 17 // square brackets (excluding zone identifiers as defined by [RFC 6874] or special 18 // addresses such as IPv4-Mapped). 19 // 20 // Deprecated: use [reference.DomainRegexp]. 21 // 22 // [RFC 6874]: https://www.rfc-editor.org/rfc/rfc6874. 23 var DomainRegexp = reference.DigestRegexp 24 25 // IdentifierRegexp is the format for string identifier used as a 26 // content addressable identifier using sha256. These identifiers 27 // are like digests without the algorithm, since sha256 is used. 28 // 29 // Deprecated: use [reference.IdentifierRegexp]. 30 var IdentifierRegexp = reference.IdentifierRegexp 31 32 // NameRegexp is the format for the name component of references, including 33 // an optional domain and port, but without tag or digest suffix. 34 // 35 // Deprecated: use [reference.NameRegexp]. 36 var NameRegexp = reference.NameRegexp 37 38 // ReferenceRegexp is the full supported format of a reference. The regexp 39 // is anchored and has capturing groups for name, tag, and digest 40 // components. 41 // 42 // Deprecated: use [reference.ReferenceRegexp]. 43 var ReferenceRegexp = reference.ReferenceRegexp 44 45 // TagRegexp matches valid tag names. From [docker/docker:graph/tags.go]. 46 // 47 // Deprecated: use [reference.TagRegexp]. 48 // 49 // [docker/docker:graph/tags.go]: https://github.com/moby/moby/blob/v1.6.0/graph/tags.go#L26-L28 50 var TagRegexp = reference.TagRegexp 51