docker

package
v0.0.95 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDockerDaemon = errors.New("Docker daemon must be running to perform this action")
View Source
var ErrNoDockerfile = errors.New("Project does not contain a Dockerfile or specify a builder")

Functions

This section is empty.

Types

type DeployOperation

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

func NewDeployOperation

func NewDeployOperation(ctx context.Context, appName string, appConfig *flyctl.AppConfig, apiClient *api.Client, out io.Writer, squash bool) (*DeployOperation, error)

func (*DeployOperation) AppName

func (op *DeployOperation) AppName() string

func (*DeployOperation) BuildAndDeploy

func (op *DeployOperation) BuildAndDeploy(cwd string, appConfig *flyctl.AppConfig) (*api.Release, error)

func (*DeployOperation) DeployImage

func (op *DeployOperation) DeployImage(imageRef string) (*api.Release, error)

func (*DeployOperation) DockerAvailable

func (op *DeployOperation) DockerAvailable() bool

func (*DeployOperation) HasDockerfile added in v0.0.93

func (op *DeployOperation) HasDockerfile(cwd string) bool

func (*DeployOperation) PackAndDeploy added in v0.0.84

func (op *DeployOperation) PackAndDeploy(cwd string, appConfig *flyctl.AppConfig) (*api.Release, error)

func (*DeployOperation) StartRemoteBuild

func (op *DeployOperation) StartRemoteBuild(cwd string, appConfig *flyctl.AppConfig) (*api.Build, error)

func (*DeployOperation) ValidateConfig

func (op *DeployOperation) ValidateConfig() (*api.AppConfig, error)

type DockerClient

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

func NewDockerClient

func NewDockerClient() (*DockerClient, error)

func (*DockerClient) BuildImage

func (c *DockerClient) BuildImage(ctx context.Context, tar io.Reader, tag string, buildArgs map[string]*string, out io.Writer, squash bool) (*types.ImageSummary, error)

func (*DockerClient) Check

func (c *DockerClient) Check(ctx context.Context) error

func (*DockerClient) DeleteDeploymentImages

func (c *DockerClient) DeleteDeploymentImages(ctx context.Context, appName string) error

func (*DockerClient) PullImage

func (c *DockerClient) PullImage(ctx context.Context, imageName string, out io.Writer) error

func (*DockerClient) PushImage

func (c *DockerClient) PushImage(ctx context.Context, imageName string, out io.Writer) error

func (*DockerClient) ResolveImage

func (c *DockerClient) ResolveImage(ctx context.Context, imageName string) (*types.ImageSummary, error)

func (*DockerClient) TagImage

func (c *DockerClient) TagImage(ctx context.Context, sourceRef, tag string) error

type DockerfileSource

type DockerfileSource uint
const (
	CwdDockerfile DockerfileSource = iota
	NoDockerfile
)

Jump to

Keyboard shortcuts

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