Documentation
¶
Index ¶
- Variables
- type DeployOperation
- func (op *DeployOperation) AppName() string
- func (op *DeployOperation) BuildAndDeploy(cwd string, appConfig *flyctl.AppConfig) (*api.Release, error)
- func (op *DeployOperation) DeployImage(imageRef string) (*api.Release, error)
- func (op *DeployOperation) DockerAvailable() bool
- func (op *DeployOperation) HasDockerfile(cwd string) bool
- func (op *DeployOperation) PackAndDeploy(cwd string, appConfig *flyctl.AppConfig) (*api.Release, error)
- func (op *DeployOperation) StartRemoteBuild(cwd string, appConfig *flyctl.AppConfig) (*api.Build, error)
- func (op *DeployOperation) ValidateConfig() (*api.AppConfig, error)
- type DockerClient
- func (c *DockerClient) BuildImage(ctx context.Context, tar io.Reader, tag string, buildArgs map[string]*string, ...) (*types.ImageSummary, error)
- func (c *DockerClient) Check(ctx context.Context) error
- func (c *DockerClient) DeleteDeploymentImages(ctx context.Context, appName string) error
- func (c *DockerClient) PullImage(ctx context.Context, imageName string, out io.Writer) error
- func (c *DockerClient) PushImage(ctx context.Context, imageName string, out io.Writer) error
- func (c *DockerClient) ResolveImage(ctx context.Context, imageName string) (*types.ImageSummary, error)
- func (c *DockerClient) TagImage(ctx context.Context, sourceRef, tag string) error
- type DockerfileSource
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 (*DeployOperation) AppName ¶
func (op *DeployOperation) AppName() string
func (*DeployOperation) BuildAndDeploy ¶
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 (*DeployOperation) StartRemoteBuild ¶
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 (*DockerClient) DeleteDeploymentImages ¶
func (c *DockerClient) DeleteDeploymentImages(ctx context.Context, appName string) error
func (*DockerClient) ResolveImage ¶
func (c *DockerClient) ResolveImage(ctx context.Context, imageName string) (*types.ImageSummary, error)
type DockerfileSource ¶
type DockerfileSource uint
const ( CwdDockerfile DockerfileSource = iota NoDockerfile )
Click to show internal directories.
Click to hide internal directories.