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).
Also replace the old methods like:
func (d *descriptor) validateContent(r io.Reader) error
with functions like:
validateContent(ctx context.Context, descriptor *specs.Descriptor, r io.Reader) error
to avoid local types that duplicate the image-spec types. This saves
an extra instantiation for folks who want to validate (or whatever) a
specs.Descriptor they have obtained elsewhere.
I'd prefer casLayout and refsLayout for the imported packages, but
Stephen doesn't want camelCase for package names [1].
[1]: opencontainers/image-spec#159 (comment)
Signed-off-by: W. Trevor King <[email protected]>
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")
25
25
26
26
**--type**
27
-
Type of the file to unpack. If unset, oci-create-runtime-bundle will try to auto-detect the type. One of "imageLayout,image"
27
+
Type of the file to unpack. If unset, oci-create-runtime-bundle will try to auto-detect the type. One of "image"
`A set of refs pointing to the manifests to be validated. Each reference must be present in the "refs" subdirectory of the image. Only applicable if type is image or imageLayout.`,
78
+
`A set of refs pointing to the manifests to be validated. Each reference must be present in the "refs" subdirectory of the image. Only applicable if type is image.`,
0 commit comments