From e13a4b67e8a5bfec016620dae3adb672b6d14aba Mon Sep 17 00:00:00 2001 From: Eric Hotinger Date: Thu, 28 Feb 2019 15:03:37 -0800 Subject: [PATCH] Update the snapshotter docs to refer to the snapshots package for WithLabels. Signed-off-by: Eric Hotinger --- snapshots/snapshotter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snapshots/snapshotter.go b/snapshots/snapshotter.go index 68a807582..b4af6a308 100644 --- a/snapshots/snapshotter.go +++ b/snapshots/snapshotter.go @@ -163,7 +163,7 @@ func (u *Usage) Add(other Usage) { // 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: // -// noGcOpt := snapshotter.WithLabels(map[string]string{ +// noGcOpt := snapshots.WithLabels(map[string]string{ // "containerd.io/gc.root": time.Now().UTC().Format(time.RFC3339), // }) // mounts, err := snapshotter.Prepare(ctx, key, "", noGcOpt)