Documentation
¶
Index ¶
- func SafeAttachWaitContainer(p DockerProvisioner, opts docker.AttachToContainerOptions) (int, error)
- type Container
- func (c *Container) Address() *url.URL
- func (c *Container) Available() bool
- func (c *Container) Create(args *CreateArgs) error
- func (c *Container) Exec(p DockerProvisioner, stdout, stderr io.Writer, cmd string, args ...string) error
- func (c *Container) Logs(p DockerProvisioner) error
- func (c *Container) NetworkInfo(p DockerProvisioner) (NetworkInfo, error)
- func (c *Container) Remove(p DockerProvisioner) error
- func (c *Container) SetMileStone(state utils.State) error
- func (c *Container) SetStatus(status utils.Status) error
- func (c *Container) Shell(p DockerProvisioner, stdin io.Reader, stdout, stderr io.Writer, pty Pty) error
- func (c *Container) ShortId() string
- func (c *Container) Start(args *StartArgs) error
- func (c *Container) Stop(p DockerProvisioner) error
- func (c *Container) UpdateContId() error
- type CreateArgs
- type DockerProvisioner
- type NetworkInfo
- type Pty
- type StartArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SafeAttachWaitContainer ¶
func SafeAttachWaitContainer(p DockerProvisioner, opts docker.AttachToContainerOptions) (int, error)
Types ¶
type Container ¶
type Container struct { Id string //container id. BoxId string AccountId string CartonId string Name string BoxName string Level provision.BoxLevel PublicIp string HostAddr string HostPort string PrivateKey string Version string Image string Status utils.Status State utils.State BuildingImage string LastStatusUpdate time.Time LastSuccessStatusUpdate time.Time LockedUntil time.Time Routable bool Region string // contains filtered or unexported fields }
func (*Container) Create ¶
func (c *Container) Create(args *CreateArgs) error
func (*Container) Logs ¶
func (c *Container) Logs(p DockerProvisioner) error
func (*Container) NetworkInfo ¶
func (c *Container) NetworkInfo(p DockerProvisioner) (NetworkInfo, error)
func (*Container) Remove ¶
func (c *Container) Remove(p DockerProvisioner) error
func (*Container) Stop ¶
func (c *Container) Stop(p DockerProvisioner) error
func (*Container) UpdateContId ¶
type CreateArgs ¶
type DockerProvisioner ¶
type NetworkInfo ¶
Click to show internal directories.
Click to hide internal directories.