Update the snapshotter docs to refer to the snapshots package for

WithLabels.

Signed-off-by: Eric Hotinger <ehotinger@gmail.com>
This commit is contained in:
Eric Hotinger 2019-02-28 15:03:37 -08:00
parent c24a74354c
commit e13a4b67e8

View File

@ -163,7 +163,7 @@ func (u *Usage) Add(other Usage) {
// key and descending from the empty parent "". To prevent our layer from being // key and descending from the empty parent "". To prevent our layer from being
// garbage collected during unpacking, we add the `containerd.io/gc.root` label: // garbage collected during unpacking, we add the `containerd.io/gc.root` label:
// //
// noGcOpt := snapshotter.WithLabels(map[string]string{ // noGcOpt := snapshots.WithLabels(map[string]string{
// "containerd.io/gc.root": time.Now().UTC().Format(time.RFC3339), // "containerd.io/gc.root": time.Now().UTC().Format(time.RFC3339),
// }) // })
// mounts, err := snapshotter.Prepare(ctx, key, "", noGcOpt) // mounts, err := snapshotter.Prepare(ctx, key, "", noGcOpt)