Documentation ¶
Index ¶
- func GetEth0Ip() ([]string, error)
- type Action
- type AuthIdentity
- type Config
- type Container
- type ContainerControl
- type Docker
- func (c *Docker) FindContainers(filter map[string][]string) ([]*Container, error)
- func (c *Docker) FindContainersByName(name string) ([]*Container, error)
- func (c *Docker) ListContainers() ([]*Container, error)
- func (c *Docker) PullImage(auth *AuthIdentity, image *Image) (<-chan error, error)
- func (c *Docker) RemoveContainer(auth *AuthIdentity, id string, removeVolumes, force bool) error
- func (c *Docker) RemoveImage(image string, force, prune bool) error
- func (c *Docker) StartContainer(auth *AuthIdentity, ct *ContainerControl) (*Container, error)
- func (c *Docker) StopContainer(auth *AuthIdentity, id string, timeout time.Duration) error
- func (c *Docker) WatchContainer(notify func(Action, *Container)) (chan<- bool, error)
- func (c *Docker) WatchContainerMatching(accept func(Action, *Container) bool, notify func(Action, *Container)) (chan<- bool, error)
- type Image
- type Port
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthIdentity ¶
type AuthIdentity struct {
_docker.AuthConfiguration
}
type Container ¶
type Container struct { Id string `json:"id"` Ip string `json:"ip"` Image string `json:"image"` ImageId string `json:"image_id"` Name string `json:"name"` Command string `json:"command"` Ports []Port `json:"ports"` Network _docker.NetworkSettings DockerData *_docker.Container `json:"docker_data"` // contains filtered or unexported fields }
type ContainerControl ¶
type Docker ¶
type Docker struct { Endpoint string Cert string Key string Ca string ContainerCreated func(*Container) ContainerStarted func(*Container) // contains filtered or unexported fields }
func NewTLSClient ¶
Endpoint and file paths
func (*Docker) FindContainers ¶
func (*Docker) FindContainersByName ¶
func (*Docker) ListContainers ¶
func (*Docker) PullImage ¶
func (c *Docker) PullImage(auth *AuthIdentity, image *Image) (<-chan error, error)
func (*Docker) RemoveContainer ¶
func (c *Docker) RemoveContainer(auth *AuthIdentity, id string, removeVolumes, force bool) error
func (*Docker) StartContainer ¶
func (c *Docker) StartContainer(auth *AuthIdentity, ct *ContainerControl) (*Container, error)
func (*Docker) StopContainer ¶
func (*Docker) WatchContainer ¶
type Image ¶
type Image struct { Registry string `json:"registry"` Repository string `json:"repository"` Tag string `json:"tag"` }
func ParseImageUrl ¶
func (Image) ImageString ¶
Click to show internal directories.
Click to hide internal directories.