MCPcopy Index your code
hub / github.com/containerd/containerd / WithImageRefTranslator

Function WithImageRefTranslator

client/import.go:51–56  ·  view source on GitHub ↗

WithImageRefTranslator is used to translate the index reference to an image reference for the image store.

(f func(string) string)

Source from the content-addressed store, hash-verified

49// WithImageRefTranslator is used to translate the index reference
50// to an image reference for the image store.
51func WithImageRefTranslator(f func(string) string) ImportOpt {
52 return func(c *importOpts) error {
53 c.imageRefT = f
54 return nil
55 }
56}
57
58// WithImageLabels are the image labels to apply to a new image
59func WithImageLabels(labels map[string]string) ImportOpt {

Callers 2

testExportImportFunction · 0.85
TestImportFunction · 0.85

Calls

no outgoing calls

Tested by 2

testExportImportFunction · 0.68
TestImportFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…