You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
image: Refactor to use cas/ref engines instead of walkers
The validation/unpacking code doesn't really care what the reference
and CAS implemenations are. And the new generic interfaces in
image/refs and image/cas will scale better as we add new backends than
the walker interface.
The old tar/directory distinction between image and imageLayout is
gone. The new CAS/refs engines don't support directory backends yet
(I plan on adding them once the engine framework lands), but the new
framework will handle tar/directory/... detection inside
layout.NewEngine (and possibly inside a new (cas|refs).NewEngine when
we grow engine types that aren't based on image-layout).
I'd prefer casLayout and refsLayout for the imported packages, but
Stephen doesn't want camelCase for package names [1].
[1]: #159 (comment)
Signed-off-by: W. Trevor King <wking@tremily.us>
A directory representing the root filesystem of the container in the OCI runtime bundle. It is strongly recommended to keep the default value. (default "rootfs")
23
23
24
24
**--type**
25
-
Type of the file to unpack. If unset, oci-image-tool will try to auto-detect the type. One of "imageLayout,image"
25
+
Type of the file to unpack. If unset, oci-image-tool will try to auto-detect the type. One of "image"
Copy file name to clipboardExpand all lines: cmd/oci-image-tool/man/oci-image-tool-validate.1.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,15 +16,15 @@ oci-image-tool-validate \- Validate one or more image files
16
16
Print usage statement
17
17
18
18
**--ref**
19
-
The ref pointing to the manifest to be validated. This must be present in the "refs" subdirectory of the image. Only applicable if type is image or imageLayout. (default "v1.0")
19
+
The ref pointing to the manifest to be validated. This must be present in the "refs" subdirectory of the image. Only applicable if type is image. (default "v1.0")
20
20
21
21
**--type**
22
-
Type of the file to validate. If unset, oci-image-tool will try to auto-detect the type. One of "imageLayout,image,manifest,manifestList,config"
22
+
Type of the file to validate. If unset, oci-image-tool will try to auto-detect the type. One of "image,manifest,manifestList,config"
`The ref pointing to the manifest to be validated. This must be present in the "refs" subdirectory of the image. Only applicable if type is image or imageLayout.`,
67
+
`The ref pointing to the manifest to be validated. This must be present in the "refs" subdirectory of the image. Only applicable if type is image.`,
0 commit comments