builder

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DockerExecSubCommand = "exec"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	SetStdIn(r io.Reader) Builder
	SetStdOut(w io.Writer) Builder
	SetStdErr(w io.Writer) Builder
	AddPortMapping(portMapping string) Builder
	AddCmdArguments(arguments []string) Builder
	AddArgument(argument string) Builder
	AttachTo(stream string) Builder
	AddVolumeMapping(volumeMapping string) Builder
	AddLinkMapping(linkMapping string) Builder
	AddEnvVar(envVarDeclaration string) Builder
	AddGroup(groupName string) Builder
	SetEntryPoint(entryPoint string) Builder
	SetCommand(command string) Builder
	SetNetwork(network string) Builder
	SetEnvFile(envFile string) Builder
	SetIP(ip string) Builder
	SetImageName(imageName string) Builder
	SetWorkingDir(workingDir string) Builder
	SetContainerName(containerName string) Builder
	SetDockerSubCommand(string) Builder
	SetContainerUserAndGroup(userID string, groupID string) Builder
	AddLabel(label string) Builder
	Build() *exec.Cmd
}

Builder describes the interface of the "docker run" command builder.

func New

func New() Builder

New returns a new docker command builder.

Directories

Path Synopsis
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0

Jump to

Keyboard shortcuts

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