mirror of
https://github.com/containers/skopeo.git
synced 2025-09-04 16:20:23 +00:00
update OCI image-spec to 775207bd45b6cb8153ce218cc59351799217451f
This mainly pulls in the latest support for zstd-compressed layers and eases testing of containers/image. Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
2
go.mod
2
go.mod
@@ -24,7 +24,7 @@ require (
|
|||||||
github.com/mattn/go-isatty v0.0.4 // indirect
|
github.com/mattn/go-isatty v0.0.4 // indirect
|
||||||
github.com/mtrmac/gpgme v0.0.0-20170102180018-b2432428689c // indirect
|
github.com/mtrmac/gpgme v0.0.0-20170102180018-b2432428689c // indirect
|
||||||
github.com/opencontainers/go-digest v1.0.0-rc1
|
github.com/opencontainers/go-digest v1.0.0-rc1
|
||||||
github.com/opencontainers/image-spec v0.0.0-20180918080442-7b1e489870ac
|
github.com/opencontainers/image-spec v1.0.0-rc6.0.20190823105129-775207bd45b6
|
||||||
github.com/opencontainers/image-tools v0.0.0-20170926011501-6d941547fa1d
|
github.com/opencontainers/image-tools v0.0.0-20170926011501-6d941547fa1d
|
||||||
github.com/opencontainers/runtime-spec v1.0.0 // indirect
|
github.com/opencontainers/runtime-spec v1.0.0 // indirect
|
||||||
github.com/pborman/uuid v0.0.0-20160209185913-a97ce2ca70fa // indirect
|
github.com/pborman/uuid v0.0.0-20160209185913-a97ce2ca70fa // indirect
|
||||||
|
3
go.sum
3
go.sum
@@ -93,6 +93,9 @@ github.com/opencontainers/go-digest v1.0.0-rc1 h1:WzifXhOVOEOuFYOJAW6aQqW0TooG2i
|
|||||||
github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s=
|
github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s=
|
||||||
github.com/opencontainers/image-spec v0.0.0-20180918080442-7b1e489870ac h1:Y0AqP4onEqgQST60GE172L61SAFMZMHQgXbwLMyj418=
|
github.com/opencontainers/image-spec v0.0.0-20180918080442-7b1e489870ac h1:Y0AqP4onEqgQST60GE172L61SAFMZMHQgXbwLMyj418=
|
||||||
github.com/opencontainers/image-spec v0.0.0-20180918080442-7b1e489870ac/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0=
|
github.com/opencontainers/image-spec v0.0.0-20180918080442-7b1e489870ac/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0=
|
||||||
|
github.com/opencontainers/image-spec v1.0.0-rc6.0.20190823105129-775207bd45b6 h1:ei890tQPW79pEqhXh5KhTjjFndyo/Xrmn1h1HjiVO/g=
|
||||||
|
github.com/opencontainers/image-spec v1.0.0-rc6.0.20190823105129-775207bd45b6/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0=
|
||||||
|
github.com/opencontainers/image-spec v1.0.1 h1:JMemWkRwHx4Zj+fVxWoMCFm/8sYGGrUVojFA6h/TRcI=
|
||||||
github.com/opencontainers/image-tools v0.0.0-20170926011501-6d941547fa1d h1:X9WSFjjZNqYRqO2MenUgqE2nj/oydcfIzXJ0R/SVnnA=
|
github.com/opencontainers/image-tools v0.0.0-20170926011501-6d941547fa1d h1:X9WSFjjZNqYRqO2MenUgqE2nj/oydcfIzXJ0R/SVnnA=
|
||||||
github.com/opencontainers/image-tools v0.0.0-20170926011501-6d941547fa1d/go.mod h1:A9btVpZLzttF4iFaKNychhPyrhfOjJ1OF5KrA8GcLj4=
|
github.com/opencontainers/image-tools v0.0.0-20170926011501-6d941547fa1d/go.mod h1:A9btVpZLzttF4iFaKNychhPyrhfOjJ1OF5KrA8GcLj4=
|
||||||
github.com/opencontainers/runc v1.0.0-rc6 h1:7AoN22rYxxkmsJS48wFaziH/n0OvrZVqL/TglgHKbKQ=
|
github.com/opencontainers/runc v1.0.0-rc6 h1:7AoN22rYxxkmsJS48wFaziH/n0OvrZVqL/TglgHKbKQ=
|
||||||
|
2
vendor/github.com/opencontainers/image-spec/schema/loader.go
generated
vendored
2
vendor/github.com/opencontainers/image-spec/schema/loader.go
generated
vendored
@@ -59,7 +59,7 @@ func (factory *fsLoaderFactory) refContents(ref gojsonreference.JsonReference) (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if path == "" {
|
if path == "" {
|
||||||
return nil, fmt.Errorf("Schema reference %#v unexpectedly not available in fsLoaderFactory with namespaces %#v", path, factory.namespaces)
|
return nil, fmt.Errorf("schema reference %#v unexpectedly not available in fsLoaderFactory with namespaces %#v", path, factory.namespaces)
|
||||||
}
|
}
|
||||||
|
|
||||||
f, err := factory.fs.Open(path)
|
f, err := factory.fs.Open(path)
|
||||||
|
4
vendor/github.com/opencontainers/image-spec/schema/validator.go
generated
vendored
4
vendor/github.com/opencontainers/image-spec/schema/validator.go
generated
vendored
@@ -117,8 +117,10 @@ func validateManifest(r io.Reader) error {
|
|||||||
for _, layer := range header.Layers {
|
for _, layer := range header.Layers {
|
||||||
if layer.MediaType != string(v1.MediaTypeImageLayer) &&
|
if layer.MediaType != string(v1.MediaTypeImageLayer) &&
|
||||||
layer.MediaType != string(v1.MediaTypeImageLayerGzip) &&
|
layer.MediaType != string(v1.MediaTypeImageLayerGzip) &&
|
||||||
|
layer.MediaType != string(v1.MediaTypeImageLayerZstd) &&
|
||||||
layer.MediaType != string(v1.MediaTypeImageLayerNonDistributable) &&
|
layer.MediaType != string(v1.MediaTypeImageLayerNonDistributable) &&
|
||||||
layer.MediaType != string(v1.MediaTypeImageLayerNonDistributableGzip) {
|
layer.MediaType != string(v1.MediaTypeImageLayerNonDistributableGzip) &&
|
||||||
|
layer.MediaType != string(v1.MediaTypeImageLayerNonDistributableZstd) {
|
||||||
fmt.Printf("warning: layer %s has an unknown media type: %s\n", layer.Digest, layer.MediaType)
|
fmt.Printf("warning: layer %s has an unknown media type: %s\n", layer.Digest, layer.MediaType)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
9
vendor/github.com/opencontainers/image-spec/specs-go/v1/mediatype.go
generated
vendored
9
vendor/github.com/opencontainers/image-spec/specs-go/v1/mediatype.go
generated
vendored
@@ -34,6 +34,10 @@ const (
|
|||||||
// referenced by the manifest.
|
// referenced by the manifest.
|
||||||
MediaTypeImageLayerGzip = "application/vnd.oci.image.layer.v1.tar+gzip"
|
MediaTypeImageLayerGzip = "application/vnd.oci.image.layer.v1.tar+gzip"
|
||||||
|
|
||||||
|
// MediaTypeImageLayerZstd is the media type used for zstd compressed
|
||||||
|
// layers referenced by the manifest.
|
||||||
|
MediaTypeImageLayerZstd = "application/vnd.oci.image.layer.v1.tar+zstd"
|
||||||
|
|
||||||
// MediaTypeImageLayerNonDistributable is the media type for layers referenced by
|
// MediaTypeImageLayerNonDistributable is the media type for layers referenced by
|
||||||
// the manifest but with distribution restrictions.
|
// the manifest but with distribution restrictions.
|
||||||
MediaTypeImageLayerNonDistributable = "application/vnd.oci.image.layer.nondistributable.v1.tar"
|
MediaTypeImageLayerNonDistributable = "application/vnd.oci.image.layer.nondistributable.v1.tar"
|
||||||
@@ -43,6 +47,11 @@ const (
|
|||||||
// restrictions.
|
// restrictions.
|
||||||
MediaTypeImageLayerNonDistributableGzip = "application/vnd.oci.image.layer.nondistributable.v1.tar+gzip"
|
MediaTypeImageLayerNonDistributableGzip = "application/vnd.oci.image.layer.nondistributable.v1.tar+gzip"
|
||||||
|
|
||||||
|
// MediaTypeImageLayerNonDistributableZstd is the media type for zstd
|
||||||
|
// compressed layers referenced by the manifest but with distribution
|
||||||
|
// restrictions.
|
||||||
|
MediaTypeImageLayerNonDistributableZstd = "application/vnd.oci.image.layer.nondistributable.v1.tar+zstd"
|
||||||
|
|
||||||
// MediaTypeImageConfig specifies the media type for the image configuration.
|
// MediaTypeImageConfig specifies the media type for the image configuration.
|
||||||
MediaTypeImageConfig = "application/vnd.oci.image.config.v1+json"
|
MediaTypeImageConfig = "application/vnd.oci.image.config.v1+json"
|
||||||
)
|
)
|
||||||
|
2
vendor/github.com/opencontainers/image-spec/specs-go/version.go
generated
vendored
2
vendor/github.com/opencontainers/image-spec/specs-go/version.go
generated
vendored
@@ -22,7 +22,7 @@ const (
|
|||||||
// VersionMinor is for functionality in a backwards-compatible manner
|
// VersionMinor is for functionality in a backwards-compatible manner
|
||||||
VersionMinor = 0
|
VersionMinor = 0
|
||||||
// VersionPatch is for backwards-compatible bug fixes
|
// VersionPatch is for backwards-compatible bug fixes
|
||||||
VersionPatch = 0
|
VersionPatch = 1
|
||||||
|
|
||||||
// VersionDev indicates development branch. Releases will be empty string.
|
// VersionDev indicates development branch. Releases will be empty string.
|
||||||
VersionDev = "-dev"
|
VersionDev = "-dev"
|
||||||
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@@ -190,7 +190,7 @@ github.com/mistifyio/go-zfs
|
|||||||
github.com/mtrmac/gpgme
|
github.com/mtrmac/gpgme
|
||||||
# github.com/opencontainers/go-digest v1.0.0-rc1
|
# github.com/opencontainers/go-digest v1.0.0-rc1
|
||||||
github.com/opencontainers/go-digest
|
github.com/opencontainers/go-digest
|
||||||
# github.com/opencontainers/image-spec v0.0.0-20180918080442-7b1e489870ac
|
# github.com/opencontainers/image-spec v1.0.0-rc6.0.20190823105129-775207bd45b6
|
||||||
github.com/opencontainers/image-spec/specs-go/v1
|
github.com/opencontainers/image-spec/specs-go/v1
|
||||||
github.com/opencontainers/image-spec/specs-go
|
github.com/opencontainers/image-spec/specs-go
|
||||||
github.com/opencontainers/image-spec/schema
|
github.com/opencontainers/image-spec/schema
|
||||||
|
Reference in New Issue
Block a user