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)
| 213 | // for content. |
| 214 | // The default is `images.ChildGCLabels`. |
| 215 | func 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. |
| 223 | func WithResolver(resolver remotes.Resolver) RemoteOpt { |
no outgoing calls
searching dependent graphs…