Skip to content

Commit

Permalink
Merge pull request #561 from wking/no-refs-catchup
Browse files Browse the repository at this point in the history
*: Catch up with refs/ removal (remove RefsRegexp, etc.)
  • Loading branch information
vbatts authored Feb 8, 2017
2 parents 145870b + de2f01d commit e4c7ecd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion image-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ A blob, referenced with digest `<alg>:<hex>` (per [descriptor](descriptor.md#dig
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).
For example `sha256:5b` will map to the layout `blobs/sha256/5b`.

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

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

Expand Down
7 changes: 0 additions & 7 deletions specs-go/v1/layout.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

package v1

import "regexp"

// ImageLayoutVersion is the version of ImageLayout
const ImageLayoutVersion = "1.0.0"

Expand All @@ -24,8 +22,3 @@ const ImageLayoutVersion = "1.0.0"
type ImageLayout struct {
Version string `json:"imageLayoutVersion"`
}

var (
// RefsRegexp matches requirement of image-layout 'refs' charset.
RefsRegexp = regexp.MustCompile(`^[a-zA-Z0-9-._]+$`)
)

0 comments on commit e4c7ecd

Please sign in to comment.