docker

package
v0.0.0-...-d15f779 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrImageNotTagged = errors.New("image not tagged")
)

Functions

This section is empty.

Types

type Binding

type Binding struct {
	HostIp   string
	HostPort string
}

type Container

type Container struct {
	Id              string
	Image           string
	Name            string
	Config          *ContainerConfig
	NetworkSettings *NetworkSettings
	State           State
}

type ContainerConfig

type ContainerConfig struct {
	Hostname string
	Image    string
	Env      []string
}

type Docker

type Docker interface {
	FetchAllContainers() ([]*Container, error)
	FetchContainer(name, image string) (*Container, error)
	GetEvents() chan *Event
}

func NewClient

func NewClient(path string) (Docker, error)

type Event

type Event struct {
	ContainerId string `json:"id"`
	Status      string `json:"status"`
	Image       string `json:"from"`
}

type NetworkSettings

type NetworkSettings struct {
	IpAddress string
	Ports     map[string][]Binding
}

type State

type State struct {
	Running bool
}

Jump to

Keyboard shortcuts

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