Documentation
¶
Index ¶
- func Attach(ctx context.Context, client *docker.Client, container *docker.Container, ...) (docker.CloseWaiter, error)
- func DestroyContainer(ctx context.Context, client *docker.Client, container *docker.Container) error
- func PrepareContainer(ctx context.Context, client *docker.Client, buildOpts *provision.BuildOptions, ...) (container *docker.Container, err error)
- func ProvideMachine(ctx context.Context, service iaas.Iaas) (client *docker.Client, machine *iaas.Machine, err error)
- func Run(ctx context.Context, buildOpts *provision.BuildOptions, ...) (stdout string, stderr string, err error)
- func RunWait(ctx context.Context, client *docker.Client, container *docker.Container) (errors chan error, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Attach ¶
func Attach(ctx context.Context, client *docker.Client, container *docker.Container, stdin io.Reader, stdout io.Writer, stderr io.Writer) (docker.CloseWaiter, error)
Attach allow to connect into a running container and interact using stdout, stderr and stdin
func DestroyContainer ¶
func DestroyContainer(ctx context.Context, client *docker.Client, container *docker.Container) error
DestroyContainer remove by force a container
func PrepareContainer ¶
func PrepareContainer(ctx context.Context, client *docker.Client, buildOpts *provision.BuildOptions, containerOpts *provision.ContainerOptions) (container *docker.Container, err error)
PrepareContainer build an image if necessary and run the container
func ProvideMachine ¶
func ProvideMachine(ctx context.Context, service iaas.Iaas) (client *docker.Client, machine *iaas.Machine, err error)
ProvideMachine provisioning a machine in the cloud
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
amazonec2
command
|
|
|
concurrent
command
|
|
|
customizing_iaas
command
|
|
|
enviroment_vars
command
|
|
|
google
command
|
|
|
running_log
command
|
|
|
tcp
command
|
|
Click to show internal directories.
Click to hide internal directories.