docker

package
v0.0.115 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: Apache-2.0 Imports: 39 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 ErrNoBuildpackBuilder = errors.New("No buildpack builder")
View Source
var ErrNoDockerfile = errors.New("Project does not contain a Dockerfile or specify a builder")

Functions

func ResolveDockerfile added in v0.0.110

func ResolveDockerfile(cwd string) string

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, remoteOnly bool) (*DeployOperation, error)

func (*DeployOperation) AppName

func (op *DeployOperation) AppName() string

func (*DeployOperation) BuildWithDocker added in v0.0.103

func (op *DeployOperation) BuildWithDocker(cwd string, appConfig *flyctl.AppConfig, dockerfilePath string, buildArgs map[string]string) (*Image, error)

func (*DeployOperation) BuildWithPack added in v0.0.103

func (op *DeployOperation) BuildWithPack(cwd string, appConfig *flyctl.AppConfig, buildArgs map[string]string) (*Image, error)

func (*DeployOperation) CleanDeploymentTags added in v0.0.103

func (op *DeployOperation) CleanDeploymentTags()

func (*DeployOperation) Deploy added in v0.0.103

func (op *DeployOperation) Deploy(image Image, strategy DeploymentStrategy) (*api.Release, error)

func (*DeployOperation) DeployImage

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

func (*DeployOperation) DockerAvailable

func (op *DeployOperation) DockerAvailable() bool

func (*DeployOperation) OptimizeImage added in v0.0.103

func (op *DeployOperation) OptimizeImage(image Image) error

func (*DeployOperation) PushImage added in v0.0.103

func (op *DeployOperation) PushImage(image Image) error

func (*DeployOperation) StartRemoteBuild

func (op *DeployOperation) StartRemoteBuild(cwd string, appConfig *flyctl.AppConfig, dockerfilePath string, buildArgs map[string]string) (*api.Build, error)

func (*DeployOperation) ValidateConfig

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

type DeploymentStrategy added in v0.0.110

type DeploymentStrategy string
const (
	CanaryDeploymentStrategy    DeploymentStrategy = "canary"
	RollingDeploymentStrategy   DeploymentStrategy = "rolling"
	ImmediateDeploymentStrategy DeploymentStrategy = "immediate"
	DefaultDeploymentStrategy   DeploymentStrategy = ""
)

func ParseDeploymentStrategy added in v0.0.110

func ParseDeploymentStrategy(val string) (DeploymentStrategy, 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) (*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 Image added in v0.0.103

type Image struct {
	ID   string
	Tag  string
	Size int64
}

Jump to

Keyboard shortcuts

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