MCPcopy
hub / github.com/containerd/containerd / WithReference

Function WithReference

core/diff/diff.go:109–114  ·  view source on GitHub ↗

WithReference is used to set the content upload reference used by the diff operation. This allows the caller to track the upload through the content store.

(ref string)

Source from the content-addressed store, hash-verified

107// the diff operation. This allows the caller to track the upload through
108// the content store.
109func WithReference(ref string) Opt {
110 return func(c *Config) error {
111 c.Reference = ref
112 return nil
113 }
114}
115
116// WithLabels is used to set content labels on the created diff content.
117func WithLabels(labels map[string]string) Opt {

Callers 5

WithCheckpointRWFunction · 0.92
checkpointRWSnapshotMethod · 0.92
DiffMethod · 0.92
snapshots.goFile · 0.92
DiffMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…