MCPcopy
hub / github.com/containerd/containerd / WithChildLabelMap

Function WithChildLabelMap

client/client_opts.go:215–220  ·  view source on GitHub ↗

WithChildLabelMap sets the map function used to define the labels set on referenced child content in the content store. This can be used to overwrite the default GC labels or filter which labels get set for content. The default is `images.ChildGCLabels`.

(fn func(ocispec.Descriptor) []string)

Source from the content-addressed store, hash-verified

213// for content.
214// The default is `images.ChildGCLabels`.
215func WithChildLabelMap(fn func(ocispec.Descriptor) []string) RemoteOpt {
216 return func(_ *Client, c *RemoteContext) error {
217 c.ChildLabelMap = fn
218 return nil
219 }
220}
221
222// WithResolver specifies the resolver to use.
223func WithResolver(resolver remotes.Resolver) RemoteOpt {

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…