Documentation ¶
Index ¶
- func Mutate(source string, options ...MutateOption) error
- type MutateOption
- func MutateOptWithHelpersDir(helpersDir string) MutateOption
- func MutateOptWithIncludeHelpers(includeHelpers []string) MutateOption
- func MutateOptWithMappingsDir(mappingsDir string) MutateOption
- func MutateOptWithTag(tag string) MutateOption
- func MutateOptWithUserAgent(userAgent string) MutateOption
- func MutateOptWithWriter(writer io.Writer) MutateOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Mutate ¶
func Mutate(source string, options ...MutateOption) error
Mutate takes a remote source image, builds a new image with various Docker credential helpers baked-in, then pushes it back to the registry (at the same reference unless otherwise specified with MutateOptWithTag).
Types ¶
type MutateOption ¶
type MutateOption func(*mutateOperation)
MutateOption allows setting various configuration settings on a mutate operation.
func MutateOptWithHelpersDir ¶
func MutateOptWithHelpersDir(helpersDir string) MutateOption
MutateOptWithHelpersDir sets a custom directory to source helper binaries for a mutate operation.
func MutateOptWithIncludeHelpers ¶
func MutateOptWithIncludeHelpers(includeHelpers []string) MutateOption
MutateOptWithIncludeHelpers sets a list of helpers to include in the new image for a mutate operation.
func MutateOptWithMappingsDir ¶
func MutateOptWithMappingsDir(mappingsDir string) MutateOption
MutateOptWithMappingsDir sets a custom directory to source mappings files for a mutate operation.
func MutateOptWithTag ¶
func MutateOptWithTag(tag string) MutateOption
MutateOptWithTag sets a custom tag to use for a mutate operation.
func MutateOptWithUserAgent ¶
func MutateOptWithUserAgent(userAgent string) MutateOption
MutateOptWithUserAgent sets a custom user agent to use for a mutate operation.
func MutateOptWithWriter ¶
func MutateOptWithWriter(writer io.Writer) MutateOption
MutateOptWithWriter sets an output writer to use for a mutate operation.