Help us shape the future of Go! Take the 2026 Go Developer Survey

docker

package
v0.0.90 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const BuildersRepo = "github.com/superfly/builders"

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")
View Source
var ErrUnknownBuilder = errors.New("unknown builder")

Functions

func ResolveNamedBuilderURL

func ResolveNamedBuilderURL(name string) (string, error)

Types

type DeployOperation

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

func NewDeployOperation

func NewDeployOperation(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) 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(tar io.Reader, tag string, buildArgs map[string]*string, out io.Writer, squash bool) (*types.ImageSummary, error)

func (*DockerClient) Check

func (c *DockerClient) Check() error

func (*DockerClient) DeleteDeploymentImages

func (c *DockerClient) DeleteDeploymentImages(appName string) error

func (*DockerClient) PullImage

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

func (*DockerClient) PushImage

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

func (*DockerClient) ResolveImage

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

func (*DockerClient) TagImage

func (c *DockerClient) TagImage(sourceRef, tag string) error

type DockerfileSource

type DockerfileSource uint
const (
	BuilderDockerfile DockerfileSource = iota
	CwdDockerfile
	NoDockerfile
)

Jump to

Keyboard shortcuts

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