commands

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyValueArgumentObfuscator

func KeyValueArgumentObfuscator(secretArgs []string) func(args []string)

KeyValueArgumentObfuscator returns a function to scan the argument list and replace the secret argument value with the obfuscation string

func NewDockerBuild

func NewDockerBuild(dockerfile string,
	buildArgs, buildSecretArgs []string, registry string, imageNames []string, isolation string, pull, noCache bool) build.Target

NewDockerBuild creates a build target with specified docker file and build parameters

func NewDockerSource added in v0.5.0

func NewDockerSource(context, dockerfile string) build.Source

NewDockerSource creates a new passthrough source

func NewDockerUsernamePassword

func NewDockerUsernamePassword(registry string, username string, password string) (build.DockerCredential, error)

NewDockerUsernamePassword creates a authentication object with username and password

func PopulateDigests

func PopulateDigests(runner build.Runner, dependencies []build.ImageDependencies) error

PopulateDigests populates digests on dependencies

Types

type DirectoryTracker

type DirectoryTracker struct {
	// contains filtered or unexported fields
}

DirectoryTracker tracks switching of directories

func ChdirWithTracking

func ChdirWithTracking(runner build.Runner, chdir string) (*DirectoryTracker, error)

ChdirWithTracking performs a chdir and return the tracking object

func (*DirectoryTracker) Return

func (t *DirectoryTracker) Return(runner build.Runner) error

Return returns to the directory in affect when DirectoryTracker object is created

type DockerSource added in v0.5.0

type DockerSource struct {
	// contains filtered or unexported fields
}

DockerSource is a source we can pass directly into docker

func (*DockerSource) Export added in v0.5.0

func (s *DockerSource) Export() []build.EnvVar

Export exports the source

func (*DockerSource) Obtain added in v0.5.0

func (s *DockerSource) Obtain(runner build.Runner) error

Obtain obtains the source

func (*DockerSource) Remark added in v0.5.0

func (s *DockerSource) Remark(runner build.Runner, dependencies *build.ImageDependencies)

Remark makes a remark to the dependencies

func (*DockerSource) Return added in v0.5.0

func (s *DockerSource) Return(runner build.Runner) error

Return returns the source

Jump to

Keyboard shortcuts

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