local

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Repository    string = "quay.io/vektorcloud/mesos:latest"
	ContainerName string = "mesos_cli"
)

Variables

This section is empty.

Functions

func Down

func Down(fn func() *Client) func(cmd *cli.Cmd)

func Remove

func Remove(fn func() *Client) func(cmd *cli.Cmd)

func Status

func Status(fn func() *Client) func(cmd *cli.Cmd)

func Up

func Up(fn func() *Client) func(cmd *cli.Cmd)

Types

type Client

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

Client is a simple high level client for managing the quay.io/vektorcloud/mesos container.

func (Client) CreateContainer

func (c Client) CreateContainer(name string, image string, envs []string) (*types.Container, error)

func (Client) FindContainer

func (c Client) FindContainer(name, id string) (*types.Container, error)

func (Client) FindImage

func (c Client) FindImage(name string) (*types.ImageSummary, error)

func (Client) PullImage

func (c Client) PullImage(ref string) error

func (Client) RemoveContainer

func (c Client) RemoveContainer(id string, force bool) error

func (Client) StartContainer

func (c Client) StartContainer(id string) error

func (Client) StopContainer

func (c Client) StopContainer(id string) error

type Local

type Local struct{}

func (Local) Desc

func (_ Local) Desc() string

func (Local) Init

func (_ Local) Init(profile config.ProfileFn) func(*cli.Cmd)

func (Local) Name

func (_ Local) Name() string

Jump to

Keyboard shortcuts

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