container

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 21 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImageExistsLocally

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 NewDockerBuildExecutorInput

type NewDockerBuildExecutorInput struct {
	ContextDir string
	ImageTag   string
}

NewDockerBuildExecutorInput the input for the NewDockerBuildExecutor function

type NewDockerPullExecutorInput

type NewDockerPullExecutorInput struct {
	Image     string
	ForcePull bool
}

NewDockerPullExecutorInput the input for the NewDockerPullExecutor function

type NewDockerRunExecutorInput

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

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