Documentation ¶
Index ¶
- type Action
- type Cli
- func (c *Cli) Containers() chan ContainerSpec
- func (c *Cli) ListContainers() error
- func (c *Cli) PullImage(ctx context.Context, image string) error
- func (c *Cli) ReCreate(ctx context.Context, cid string) error
- func (c *Cli) WatchEvents() error
- func (c *Cli) WatchImageChange(ctx context.Context, image string) (<-chan string, error)
- type Config
- type ContainerSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cli ¶
type Cli struct {
// contains filtered or unexported fields
}
Cli with docker
func (*Cli) ListContainers ¶
ListContainers and put into container channel
type Config ¶
type Config struct { Path string // docker sock path Filters map[string]string // docker ls filters }
Config ...
type ContainerSpec ¶
ContainerSpec the infomation of the container
Click to show internal directories.
Click to hide internal directories.