Documentation ¶
Index ¶
- func EagerlyEnsureRemoteBuilder(ctx context.Context, apiClient *api.Client, orgSlug string)
- func NewDeploymentTag(appName string, label string) string
- func NewLocalDockerClient() (*dockerclient.Client, error)
- type DeploymentImage
- type DockerDaemonType
- func (t DockerDaemonType) AllowLocal() bool
- func (t DockerDaemonType) AllowNone() bool
- func (t DockerDaemonType) AllowRemote() bool
- func (t DockerDaemonType) IsAvailable() bool
- func (t DockerDaemonType) IsLocal() bool
- func (t DockerDaemonType) IsNone() bool
- func (t DockerDaemonType) IsRemote() bool
- func (t DockerDaemonType) PrefersLocal() bool
- type ImageOptions
- type RefOptions
- type RegistryUnauthorizedError
- type Resolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EagerlyEnsureRemoteBuilder ¶ added in v0.0.217
func NewDeploymentTag ¶ added in v0.0.302
NewDeploymentTag generates a Docker image reference including the current registry, the app name, and a timestamp: registry.fly.io/appname:deployment-$timestamp
func NewLocalDockerClient ¶ added in v0.0.286
func NewLocalDockerClient() (*dockerclient.Client, error)
Types ¶
type DeploymentImage ¶
type DockerDaemonType ¶
type DockerDaemonType int
const ( DockerDaemonTypeLocal DockerDaemonType = 1 << iota DockerDaemonTypeRemote DockerDaemonTypeNone DockerDaemonTypePrefersLocal )
func NewDockerDaemonType ¶
func NewDockerDaemonType(allowLocal, allowRemote, prefersLocal bool) DockerDaemonType
func (DockerDaemonType) AllowLocal ¶
func (t DockerDaemonType) AllowLocal() bool
func (DockerDaemonType) AllowNone ¶
func (t DockerDaemonType) AllowNone() bool
func (DockerDaemonType) AllowRemote ¶
func (t DockerDaemonType) AllowRemote() bool
func (DockerDaemonType) IsAvailable ¶
func (t DockerDaemonType) IsAvailable() bool
func (DockerDaemonType) IsLocal ¶
func (t DockerDaemonType) IsLocal() bool
func (DockerDaemonType) IsNone ¶
func (t DockerDaemonType) IsNone() bool
func (DockerDaemonType) IsRemote ¶
func (t DockerDaemonType) IsRemote() bool
func (DockerDaemonType) PrefersLocal ¶ added in v0.0.354
func (t DockerDaemonType) PrefersLocal() bool
type ImageOptions ¶
type ImageOptions struct { AppName string WorkingDir string DockerfilePath string ImageRef string BuildArgs map[string]string ExtraBuildArgs map[string]string BuildSecrets map[string]string ImageLabel string Publish bool Tag string Target string NoCache bool BuiltIn string BuiltInSettings map[string]interface{} Builder string Buildpacks []string }
type RefOptions ¶ added in v0.0.198
type RegistryUnauthorizedError ¶
type RegistryUnauthorizedError struct {
}func (*RegistryUnauthorizedError) Error ¶
func (err *RegistryUnauthorizedError) Error() string
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func NewResolver ¶
func (*Resolver) BuildImage ¶ added in v0.0.198
func (r *Resolver) BuildImage(ctx context.Context, streams *iostreams.IOStreams, opts ImageOptions) (img *DeploymentImage, err error)
BuildImage converts source code to an image using a Dockerfile, buildpacks, or builtins.
func (*Resolver) ResolveReference ¶ added in v0.0.198
func (r *Resolver) ResolveReference(ctx context.Context, streams *iostreams.IOStreams, opts RefOptions) (img *DeploymentImage, err error)
ResolveReference returns an Image give an reference using either the local docker daemon or remote registry
Source Files ¶
Click to show internal directories.
Click to hide internal directories.