docker

package
v0.0.0-...-1445020 Latest Latest
Warning

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

Go to latest
Published: May 30, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(c Config) (*client, error)

Types

type AuthConfig

type AuthConfig struct {
	Username      string `yaml:"username"`
	Password      string `yaml:"password"`
	Email         string `yaml:"email"`
	ServerAddress string `yaml:"server_address"`
}

type Client

type Client interface {
	CreateConteiner(image string, options CreateContainerOptions) (*Container, error)
	RemoveContainer(containerID string) error
	ListContainers() ([]Container, error)
}

type Config

type Config struct {
	Endpoint    string     `yaml:"endpoint"`
	Binds       []string   `yaml:"binds"`
	TlsCertPath string     `yaml:"tls_cert_path"`
	Auth        AuthConfig `yaml:"auth"`
}

type Container

type Container struct {
	Name      string
	IPAddress string
	CreatedAt time.Time
	// contains filtered or unexported fields
}

func (*Container) Destroy

func (c *Container) Destroy() error

func (*Container) ID

func (c *Container) ID() string

func (*Container) Output

func (c *Container) Output() string

func (*Container) RunCmd

func (c *Container) RunCmd(cmd string) error

type CreateContainerOptions

type CreateContainerOptions struct {
	Env        []string
	Binds      []string
	WorkingDir string
	Entrypoint []string
}

Jump to

Keyboard shortcuts

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