Skip to content

Commit e4c7ecd

Browse files
authored
Merge pull request #561 from wking/no-refs-catchup
*: Catch up with refs/ removal (remove RefsRegexp, etc.)
2 parents 145870b + de2f01d commit e4c7ecd

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

image-layout.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ A blob, referenced with digest `<alg>:<hex>` (per [descriptor](descriptor.md#dig
5858
The character set of the entry name for `<hex>` and `<alg>` MUST match the respective grammar elements described in [descriptor](descriptor.md#digests-and-verification).
5959
For example `sha256:5b` will map to the layout `blobs/sha256/5b`.
6060

61-
The blobs directory MAY contain blobs which are not referenced by any of the refs.
61+
The blobs directory MAY contain blobs which are not referenced by any of the [refs](#indexjson-file).
6262

6363
The blobs directory MAY be missing referenced blobs, in which case the missing blobs SHOULD be fulfilled by an external blob store.
6464

specs-go/v1/layout.go

-7
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
package v1
1616

17-
import "regexp"
18-
1917
// ImageLayoutVersion is the version of ImageLayout
2018
const ImageLayoutVersion = "1.0.0"
2119

@@ -24,8 +22,3 @@ const ImageLayoutVersion = "1.0.0"
2422
type ImageLayout struct {
2523
Version string `json:"imageLayoutVersion"`
2624
}
27-
28-
var (
29-
// RefsRegexp matches requirement of image-layout 'refs' charset.
30-
RefsRegexp = regexp.MustCompile(`^[a-zA-Z0-9-._]+$`)
31-
)

0 commit comments

Comments
 (0)