WithImageRefTranslator is used to translate the index reference to an image reference for the image store.
(f func(string) string)
| 49 | // WithImageRefTranslator is used to translate the index reference |
| 50 | // to an image reference for the image store. |
| 51 | func 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 |
| 59 | func WithImageLabels(labels map[string]string) ImportOpt { |
no outgoing calls
searching dependent graphs…