Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Import ¶
func Import(ctx context.Context, client *containerd.Client, reader io.Reader, opts ...ImportOption) (_ []string, retErr error)
Import implements Docker Image Spec v1.1. An image MUST have `manifest.json`. `repositories` file in Docker Image Spec v1.0 is not supported (yet). Also, the current implementation assumes the implicit file name convention, which is not explicitly documented in the spec. (e.g. foobar/layer.tar) It returns a group of image references successfully loaded.
Types ¶
type ImportOption ¶
type ImportOption func(*importConfig)
ImportOption configures import behavior.
func WithUnpack ¶
func WithUnpack(snapshotter string) ImportOption
WithUnpack is used to unpack image after import.
Click to show internal directories.
Click to hide internal directories.