Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compress ¶
func Compress(ctx context.Context, client *containerd.Client, snapshotter snapshots.Snapshotter, parentKey, committedKey string) (ocispec.Descriptor, error)
Types ¶
type Committer ¶
func Prepare ¶
func Prepare(ctx context.Context, snapshotter snapshots.Snapshotter, parentSnapshotKey, mountPoint string) (*Committer, error)
Prepare will mount all layers of the parentSnapshotKey ont mountPoint. Once mounted, the caller can read and write files in the mountPoint.
Use the returned "Committer" to unmount and commit your file changes.
HINT: Mount points could be temporary directories if you want.
NOTE: containerd uses the term "target" to refer to the mount point.
Click to show internal directories.
Click to hide internal directories.