gofn: github.com/gofn/gofn Index | Files | Directories

package gofn

import "github.com/gofn/gofn"

Index

Package Files

gofn.go

func Attach Uses

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 Uses

func DestroyContainer(ctx context.Context, client *docker.Client, container *docker.Container) error

DestroyContainer remove by force a container

func PrepareContainer Uses

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 Uses

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 Uses

func Run(ctx context.Context, buildOpts *provision.BuildOptions, containerOpts *provision.ContainerOptions) (stdout string, stderr string, err error)

Run runs the designed image

func RunWait Uses

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

Directories

PathSynopsis
examples/amazonec2
examples/concurrent
examples/customizing_iaas
examples/enviroment_vars
examples/google
examples/running_log
examples/tcp
iaas
iaas/amazonec2
iaas/digitalocean
iaas/google
iaas/tcp
provision

Package gofn imports 9 packages (graph) and is imported by 13 packages. Updated 2019-01-06. Refresh now. Tools for package owners.