Versions in this module Expand all Collapse all v0 v0.2.1 Aug 19, 2020 v0.2.0 Jul 30, 2020 Changes in this version + var ErrDied = errors.New("died") + var ErrUnhealthy = errors.New("went unhealthy") + type Builder struct + func (builder *Builder) AddEnv(key string, value string) *Builder + func (builder *Builder) AddLabel(key string, value string) *Builder + func (builder *Builder) Env(env map[string]string) *Builder + func (builder *Builder) Labels(labels map[string]string) *Builder + func (builder *Builder) Memory(limit int64) *Builder + func (builder *Builder) Mount(source string, dest string) *Builder + func (builder *Builder) Mounts(mounts map[string]string) *Builder + func (builder *Builder) Network(networkName string, aliasses ...string) *Builder + func (builder *Builder) Port(port string) *Builder + func (builder *Builder) Ports(ports []string) *Builder + func (builder *Builder) Pull() *Builder + func (builder *Builder) Start(ctx context.Context) (string, error) + func (builder *Builder) WaitForHealthy() *Builder + func (builder *Builder) WithName(containerName string) *Builder + type Client struct + func New() (*Client, error) + func (client *Client) Close() error + func (client *Client) ContainerListByLabels(ctx context.Context, all bool, containerLabels map[string]string) ([]types.Container, error) + func (client *Client) ContainerListByNames(ctx context.Context, all bool, containerNames ...string) ([]types.Container, error) + func (client *Client) ContainerRemoveByIDs(ctx context.Context, containerIDs ...string) error + func (client *Client) ContainerRemoveByLabels(ctx context.Context, containerLabels map[string]string) error + func (client *Client) ContainerRemoveByNames(ctx context.Context, containerNames ...string) error + func (client *Client) ContainerStopByIDs(ctx context.Context, timeout time.Duration, containerIDs ...string) error + func (client *Client) ContainerStopByLabels(ctx context.Context, timeout time.Duration, containerLabels map[string]string) error + func (client *Client) ContainerStopByNames(ctx context.Context, timeout time.Duration, containerNames ...string) error + func (client *Client) GetWatcher() *Watcher + func (client *Client) NetworkListByLabels(ctx context.Context, networkLabels map[string]string) ([]types.NetworkResource, error) + func (client *Client) NetworkListByNames(ctx context.Context, networkNames ...string) ([]types.NetworkResource, error) + func (client *Client) NetworkRemoveByIDs(ctx context.Context, containerIDs ...string) error + func (client *Client) NetworkRemoveByLabels(ctx context.Context, containerLabels map[string]string) error + func (client *Client) NetworkRemoveByNames(ctx context.Context, networkNames ...string) error + func (client *Client) NewBuilder(image string) *Builder + func (client *Client) Pull(ctx context.Context, image string, w io.Writer) error + func (client *Client) PullQuiet(ctx context.Context, image string) error + func (client *Client) VolumeListByLabels(ctx context.Context, volumeLabels map[string]string) (volume.VolumesListOKBody, error) + func (client *Client) VolumeListByNames(ctx context.Context, volumeNames ...string) (volume.VolumesListOKBody, error) + func (client *Client) VolumeRemoveByLabels(ctx context.Context, volumeLabels map[string]string) error + func (client *Client) VolumeRemoveByNames(ctx context.Context, volumeNames ...string) error + type ErrorMapper func(error) error + type Watcher struct + func (watcher *Watcher) AddListener(containerID string, errorChannel chan<- error, doneChannel chan<- struct{}) error + func (watcher *Watcher) AddListenerWithErrorMapper(containerID string, errorChannel chan<- error, doneChannel chan<- struct{}, ...) error