Documentation
¶
Index ¶
- Variables
- func CheckManifest(ctx context.Context, imageRef string, token string) (*dockerparser.Reference, error)
- func RegistryAuth(token string) types.AuthConfig
- func ResolveDockerfile(cwd string) string
- type DeployOperation
- func (op *DeployOperation) AppName() string
- func (op *DeployOperation) BuildWithDocker(commandContext *cmdctx.CmdContext, dockerfilePath string, ...) (*Image, error)
- func (op *DeployOperation) BuildWithPack(commandContext *cmdctx.CmdContext, buildArgs map[string]string) (*Image, error)
- func (op *DeployOperation) CleanDeploymentTags()
- func (op *DeployOperation) Deploy(image Image, strategy DeploymentStrategy) (*api.Release, error)
- func (op *DeployOperation) DockerAvailable() bool
- func (op *DeployOperation) LocalOnly() bool
- func (op *DeployOperation) OptimizeImage(image Image) error
- func (op *DeployOperation) PushImage(image Image) error
- func (op *DeployOperation) RemoteOnly() bool
- func (op *DeployOperation) ResolveImage(ctx context.Context, commandContext *cmdctx.CmdContext, imageRef string) (*Image, error)
- func (op *DeployOperation) StartRemoteBuild(cwd string, appConfig *flyctl.AppConfig, dockerfilePath string, ...) (*api.Build, error)
- func (op *DeployOperation) ValidateConfig() (*api.AppConfig, error)
- type DeploymentStrategy
- 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) Client() *client.Client
- func (c *DockerClient) DeleteDeploymentImages(ctx context.Context, tag 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 Image
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDockerDaemon = errors.New("Docker daemon must be running to perform this action")
ErrDockerDaemon - Docker daemon needs to be running error
View Source
var ErrNoBuildpackBuilder = errors.New("No buildpack builder")
ErrNoBuildpackBuilder - Unable to find Buildpack builder
View Source
var ErrNoDockerfile = errors.New("Project does not contain a Dockerfile and has not set a CNB builder, builtin builder or selected an image")
ErrNoDockerfile - No dockerfile or builder or builtin or image specified error
Functions ¶
func CheckManifest ¶ added in v0.0.117
func RegistryAuth ¶ added in v0.0.117
func RegistryAuth(token string) types.AuthConfig
func ResolveDockerfile ¶ added in v0.0.110
ResolveDockerfile - Resolve the location of the dockerfile, allowing for upper and lowercase naming
Types ¶
type DeployOperation ¶
type DeployOperation struct {
// contains filtered or unexported fields
}
func NewDeployOperation ¶
func NewDeployOperation(ctx context.Context, cmdContext *cmdctx.CmdContext) (*DeployOperation, error)
func (*DeployOperation) AppName ¶
func (op *DeployOperation) AppName() string
func (*DeployOperation) BuildWithDocker ¶ added in v0.0.103
func (op *DeployOperation) BuildWithDocker(commandContext *cmdctx.CmdContext, dockerfilePath string, buildArgs map[string]string) (*Image, error)
BuildWithDocker - Run a Docker Build operation reporting back via the command context
func (*DeployOperation) BuildWithPack ¶ added in v0.0.103
func (op *DeployOperation) BuildWithPack(commandContext *cmdctx.CmdContext, buildArgs map[string]string) (*Image, error)
BuildWithPack - Perform a Docker build using a Buildpack (buildpack.io)
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) DockerAvailable ¶
func (op *DeployOperation) DockerAvailable() bool
func (*DeployOperation) LocalOnly ¶ added in v0.0.138
func (op *DeployOperation) LocalOnly() bool
func (*DeployOperation) OptimizeImage ¶ added in v0.0.103
func (op *DeployOperation) OptimizeImage(image Image) error
OptimizeImage - Optimize the Image for deployment
func (*DeployOperation) PushImage ¶ added in v0.0.103
func (op *DeployOperation) PushImage(image Image) error
PushImage - Push the Image (where?)
func (*DeployOperation) RemoteOnly ¶ added in v0.0.138
func (op *DeployOperation) RemoteOnly() bool
func (*DeployOperation) ResolveImage ¶ added in v0.0.117
func (op *DeployOperation) ResolveImage(ctx context.Context, commandContext *cmdctx.CmdContext, imageRef string) (*Image, error)
func (*DeployOperation) StartRemoteBuild ¶
func (op *DeployOperation) StartRemoteBuild(cwd string, appConfig *flyctl.AppConfig, dockerfilePath string, buildArgs map[string]string) (*api.Build, error)
StartRemoteBuild - Start a remote build and track its progress
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 (*DockerClient) Client ¶ added in v0.0.117
func (c *DockerClient) Client() *client.Client
func (*DockerClient) DeleteDeploymentImages ¶
func (c *DockerClient) DeleteDeploymentImages(ctx context.Context, tag string) error
func (*DockerClient) ResolveImage ¶
func (c *DockerClient) ResolveImage(ctx context.Context, imageName string) (*types.ImageSummary, error)
Click to show internal directories.
Click to hide internal directories.