container

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageExistsLocally added in v0.1.1

func ImageExistsLocally(ctx context.Context, imageName string) (bool, error)

ImageExistsLocally returns a boolean indicating if an image with the requested name (and tag) exist in the local docker image store

func NewDockerBuildExecutor

func NewDockerBuildExecutor(input NewDockerBuildExecutorInput) common.Executor

NewDockerBuildExecutor function to create a run executor for the container

func NewDockerPullExecutor

func NewDockerPullExecutor(input NewDockerPullExecutorInput) common.Executor

NewDockerPullExecutor function to create a run executor for the container

func NewDockerRunExecutor

func NewDockerRunExecutor(input NewDockerRunExecutorInput) common.Executor

NewDockerRunExecutor function to create a run executor for the container

Types

type DockerExecutorInput

type DockerExecutorInput struct {
	Ctx    context.Context
	Logger *logrus.Entry
	Dryrun bool
}

DockerExecutorInput common input params

type NewDockerBuildExecutorInput

type NewDockerBuildExecutorInput struct {
	DockerExecutorInput
	ContextDir string
	ImageTag   string
}

NewDockerBuildExecutorInput the input for the NewDockerBuildExecutor function

type NewDockerPullExecutorInput

type NewDockerPullExecutorInput struct {
	DockerExecutorInput
	Image string
}

NewDockerPullExecutorInput the input for the NewDockerPullExecutor function

type NewDockerRunExecutorInput

type NewDockerRunExecutorInput struct {
	DockerExecutorInput
	Image           string
	Entrypoint      []string
	Cmd             []string
	WorkingDir      string
	Env             []string
	Binds           []string
	Content         map[string]io.Reader
	Volumes         []string
	Name            string
	ReuseContainers bool
}

NewDockerRunExecutorInput the input for the NewDockerRunExecutor function

Jump to

Keyboard shortcuts

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