docker

package
v0.0.0-...-1b7c243 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2017 License: BSD-3-Clause Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDeployCanceled = errors.New("deploy canceled by user action")

Functions

func SafeAttachWaitContainer

func SafeAttachWaitContainer(client provision.BuilderDockerClient, opts docker.AttachToContainerOptions) (int, error)

Types

type Container

type Container struct {
	ID                      string
	AppName                 string
	ProcessName             string
	Type                    string
	IP                      string
	HostAddr                string
	HostPort                string
	PrivateKey              string
	Status                  string
	StatusBeforeError       string
	Version                 string
	Image                   string
	Name                    string
	User                    string
	BuildingImage           string
	LastStatusUpdate        time.Time
	LastSuccessStatusUpdate time.Time
	LockedUntil             time.Time
	Routable                bool `bson:"-"`
	ExposedPort             string
}

func (*Container) Address

func (c *Container) Address() *url.URL

func (*Container) Available

func (c *Container) Available() bool

func (*Container) Commit

func (c *Container) Commit(client provision.BuilderDockerClient, writer io.Writer) (string, error)

Commits commits the container, creating an image in Docker. It then returns the image identifier for usage in future container creation.

func (*Container) Create

func (c *Container) Create(args *CreateContainerArgs) error

func (*Container) Logs

func (c *Container) Logs(client provision.BuilderDockerClient, w io.Writer) (int, error)

func (*Container) Remove

func (c *Container) Remove(client provision.BuilderDockerClient) error

func (*Container) SetStatus

func (c *Container) SetStatus(status provision.Status, updateDB bool) error

func (*Container) ShortID

func (c *Container) ShortID() string

func (*Container) Start

func (c *Container) Start(args *StartArgs) error

func (*Container) Stop

func (c *Container) Stop(client provision.BuilderDockerClient) error

func (*Container) ValidAddr

func (c *Container) ValidAddr() bool

type CreateContainerArgs

type CreateContainerArgs struct {
	ImageID          string
	Commands         []string
	App              provision.App
	Client           provision.BuilderDockerClient
	DestinationHosts []string
	ProcessName      string
	Deploy           bool
	Building         bool
}

type Pty

type Pty struct {
	Width  int
	Height int
	Term   string
}

type StartArgs

type StartArgs struct {
	Client provision.BuilderDockerClient
}

Jump to

Keyboard shortcuts

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