import "github.com/gofn/gofn"
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(ctx context.Context, client *docker.Client, container *docker.Container) error
DestroyContainer remove by force a container
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(ctx context.Context, service iaas.Iaas) (client *docker.Client, machine *iaas.Machine, err error)
ProvideMachine provisioning a machine in the cloud
func Run(ctx context.Context, buildOpts *provision.BuildOptions, containerOpts *provision.ContainerOptions) (stdout string, stderr string, err error)
Run runs the designed image
func RunWait(ctx context.Context, client *docker.Client, container *docker.Container) (errors chan error, err error)
RunWait runs the conainer returning channels to control your status
Package gofn imports 9 packages (graph) and is imported by 13 packages. Updated 2019-01-06. Refresh now. Tools for package owners.