magician

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL