File tree Expand file tree Collapse file tree 3 files changed +27
-10
lines changed Expand file tree Collapse file tree 3 files changed +27
-10
lines changed Original file line number Diff line number Diff line change @@ -117,9 +117,9 @@ func validateManifest(r io.Reader) error {
117
117
if layer .MediaType != string (v1 .MediaTypeImageLayer ) &&
118
118
layer .MediaType != string (v1 .MediaTypeImageLayerGzip ) &&
119
119
layer .MediaType != string (v1 .MediaTypeImageLayerZstd ) &&
120
- layer .MediaType != string (v1 .MediaTypeImageLayerNonDistributable ) &&
121
- layer .MediaType != string (v1 .MediaTypeImageLayerNonDistributableGzip ) &&
122
- layer .MediaType != string (v1 .MediaTypeImageLayerNonDistributableZstd ) {
120
+ layer .MediaType != string (v1 .MediaTypeImageLayerNonDistributable ) && //nolint:staticcheck
121
+ layer .MediaType != string (v1 .MediaTypeImageLayerNonDistributableGzip ) && //nolint:staticcheck
122
+ layer .MediaType != string (v1 .MediaTypeImageLayerNonDistributableZstd ) { //nolint:staticcheck
123
123
fmt .Printf ("warning: layer %s has an unknown media type: %s\n " , layer .Digest , layer .MediaType )
124
124
}
125
125
}
Original file line number Diff line number Diff line change @@ -49,13 +49,15 @@ type ImageConfig struct {
49
49
// StopSignal contains the system call signal that will be sent to the container to exit.
50
50
StopSignal string `json:"StopSignal,omitempty"`
51
51
52
- // ArgsEscaped `[Deprecated]` - This field is present only for legacy
53
- // compatibility with Docker and should not be used by new image builders.
54
- // It is used by Docker for Windows images to indicate that the `Entrypoint`
55
- // or `Cmd` or both, contains only a single element array, that is a
56
- // pre-escaped, and combined into a single string `CommandLine`. If `true`
57
- // the value in `Entrypoint` or `Cmd` should be used as-is to avoid double
58
- // escaping.
52
+ // ArgsEscaped
53
+ //
54
+ // Deprecated: This field is present only for legacy compatibility with
55
+ // Docker and should not be used by new image builders. It is used by Docker
56
+ // for Windows images to indicate that the `Entrypoint` or `Cmd` or both,
57
+ // contains only a single element array, that is a pre-escaped, and combined
58
+ // into a single string `CommandLine`. If `true` the value in `Entrypoint` or
59
+ // `Cmd` should be used as-is to avoid double escaping.
60
+ // https://github.com/opencontainers/image-spec/pull/892
59
61
ArgsEscaped bool `json:"ArgsEscaped,omitempty"`
60
62
}
61
63
Original file line number Diff line number Diff line change @@ -40,16 +40,31 @@ const (
40
40
41
41
// MediaTypeImageLayerNonDistributable is the media type for layers referenced by
42
42
// the manifest but with distribution restrictions.
43
+ //
44
+ // Deprecated: Non-distributable layers are deprecated, and not recommended
45
+ // for future use. Implementations SHOULD NOT produce new non-distributable
46
+ // layers.
47
+ // https://github.com/opencontainers/image-spec/pull/965
43
48
MediaTypeImageLayerNonDistributable = "application/vnd.oci.image.layer.nondistributable.v1.tar"
44
49
45
50
// MediaTypeImageLayerNonDistributableGzip is the media type for
46
51
// gzipped layers referenced by the manifest but with distribution
47
52
// restrictions.
53
+ //
54
+ // Deprecated: Non-distributable layers are deprecated, and not recommended
55
+ // for future use. Implementations SHOULD NOT produce new non-distributable
56
+ // layers.
57
+ // https://github.com/opencontainers/image-spec/pull/965
48
58
MediaTypeImageLayerNonDistributableGzip = "application/vnd.oci.image.layer.nondistributable.v1.tar+gzip"
49
59
50
60
// MediaTypeImageLayerNonDistributableZstd is the media type for zstd
51
61
// compressed layers referenced by the manifest but with distribution
52
62
// restrictions.
63
+ //
64
+ // Deprecated: Non-distributable layers are deprecated, and not recommended
65
+ // for future use. Implementations SHOULD NOT produce new non-distributable
66
+ // layers.
67
+ // https://github.com/opencontainers/image-spec/pull/965
53
68
MediaTypeImageLayerNonDistributableZstd = "application/vnd.oci.image.layer.nondistributable.v1.tar+zstd"
54
69
55
70
// MediaTypeImageConfig specifies the media type for the image configuration.
You can’t perform that action at this time.
0 commit comments