MCPcopy
hub / github.com/containerd/containerd / WithLabels

Function WithLabels

core/diff/diff.go:117–122  ·  view source on GitHub ↗

WithLabels is used to set content labels on the created diff content.

(labels map[string]string)

Source from the content-addressed store, hash-verified

115
116// WithLabels is used to set content labels on the created diff content.
117func WithLabels(labels map[string]string) Opt {
118 return func(c *Config) error {
119 c.Labels = labels
120 return nil
121 }
122}
123
124// WithPayloads sets the apply processor payloads to the config
125func WithPayloads(payloads map[string]typeurl.Any) ApplyOpt {

Callers 3

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…