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

Function WithLabels

core/content/content.go:182–187  ·  view source on GitHub ↗

WithLabels allows labels to be set on content

(labels map[string]string)

Source from the content-addressed store, hash-verified

180
181// WithLabels allows labels to be set on content
182func WithLabels(labels map[string]string) Opt {
183 return func(info *Info) error {
184 info.Labels = labels
185 return nil
186 }
187}
188
189// WriterOpts is internally used by WriterOpt.
190type WriterOpts struct {

Callers 14

writeIndexFunction · 0.92
ConvertManifestFunction · 0.92
createFunction · 0.92
checkContentStoreWriterFunction · 0.92
checkUpdateStatusFunction · 0.92
checkLabelsFunction · 0.92
resolveLayersFunction · 0.92
WriteJSONFunction · 0.92
LayerConvertFuncFunction · 0.92
LayerConvertFuncFunction · 0.92
CompareMethod · 0.92
CompareMethod · 0.92

Calls

no outgoing calls

Tested by 1

createFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…