docker

package
v6.1.3+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for Docker

func NewClient

func NewClient() (Client, error)

NewClient builds and returns a docker Client

func (Client) ContainerKill

func (c Client) ContainerKill(ID string) error

ContainerKill kills the given container

func (Client) ContainerStart

func (c Client) ContainerStart(image string, cmd ...string) (string, error)

ContainerStart pulls and starts the given container

func (Client) ContainerWait

func (c Client) ContainerWait(ID string) error

ContainerWait waits for a container to finish

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL