Documentation
¶
Index ¶
- Variables
- func SafeAttachWaitContainer(client provision.BuilderDockerClient, opts docker.AttachToContainerOptions) (int, error)
- type Container
- func (c *Container) Address() *url.URL
- func (c *Container) Available() bool
- func (c *Container) Commit(client provision.BuilderDockerClient, writer io.Writer) (string, error)
- func (c *Container) Create(args *CreateContainerArgs) error
- func (c *Container) Logs(client provision.BuilderDockerClient, w io.Writer) (int, error)
- func (c *Container) Remove(client provision.BuilderDockerClient) error
- func (c *Container) SetStatus(status provision.Status, updateDB bool) error
- func (c *Container) ShortID() string
- func (c *Container) Start(args *StartArgs) error
- func (c *Container) Stop(client provision.BuilderDockerClient) error
- func (c *Container) ValidAddr() bool
- type CreateContainerArgs
- type Pty
- type StartArgs
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) Commit ¶
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
type CreateContainerArgs ¶
type StartArgs ¶
type StartArgs struct {
Client provision.BuilderDockerClient
}
Click to show internal directories.
Click to hide internal directories.