imgsrc

package
v0.0.192 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentImage

type DeploymentImage struct {
	ID   string
	Tag  string
	Size int64
}

type DockerDaemonType

type DockerDaemonType int
const (
	DockerDaemonTypeLocal DockerDaemonType = 1 << iota
	DockerDaemonTypeRemote
	DockerDaemonTypeNone
)

func NewDockerDaemonType

func NewDockerDaemonType(allowLocal, allowRemote 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

type ImageOptions

type ImageOptions struct {
	AppName        string
	WorkingDir     string
	DockerfilePath string
	ImageRef       string
	AppConfig      *flyctl.AppConfig
	ExtraBuildArgs map[string]string
	ImageLabel     string
	Publish        bool
	Tag            string
}

type RegistryUnauthorizedError

type RegistryUnauthorizedError struct {
	Tag string
}

func (*RegistryUnauthorizedError) Error

func (err *RegistryUnauthorizedError) Error() string

type Resolver

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

func NewResolver

func NewResolver(daemonType DockerDaemonType, apiClient *api.Client, appName string, iostreams *iostreams.IOStreams) *Resolver

func (*Resolver) Resolve

func (r *Resolver) Resolve(ctx context.Context, streams *iostreams.IOStreams, opts ImageOptions) (img *DeploymentImage, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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