docker

package
Version: v0.0.0-...-aa28a4b Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Duration

func Duration(d time.Duration) *time.Duration

Types

type Client

type Client struct {
	Client *client.Client
}

func NewEnvClient

func NewEnvClient() (*Client, error)

func (*Client) ContainerCreate

func (c *Client) ContainerCreate(config *container.Config, hostconfig *container.HostConfig) (string, error)

func (*Client) ContainerExec

func (c *Client) ContainerExec(id string, cmd []string) (int, []byte, error)

func (*Client) ContainerInspect

func (c *Client) ContainerInspect(id string) (string, error)

func (*Client) ContainerList

func (c *Client) ContainerList() ([]types.Container, error)

func (*Client) ContainerLogs

func (c *Client) ContainerLogs(id string) ([]byte, error)

func (*Client) ContainerRemove

func (c *Client) ContainerRemove(id string) error

func (*Client) ContainerStart

func (c *Client) ContainerStart(id string) error

func (*Client) ContainerStop

func (c *Client) ContainerStop(id string, timeout *time.Duration) error

func (*Client) ContainerStopAndRemove

func (c *Client) ContainerStopAndRemove(id string, timeout *time.Duration) error

func (*Client) ContainerWait

func (c *Client) ContainerWait(id string) (int, error)

func (*Client) ExecInActiveContainers

func (c *Client) ExecInActiveContainers(w io.Writer, ctx context.Context, cmd []string)

func (*Client) ImageRemove

func (c *Client) ImageRemove(name string) error

func (*Client) InspectActiveContainers

func (c *Client) InspectActiveContainers(w io.Writer, ctx context.Context)

func (*Client) VolumeCreate

func (c *Client) VolumeCreate() (string, error)

func (*Client) VolumeRemove

func (c *Client) VolumeRemove(name string) error

Source Files

Jump to

Keyboard shortcuts

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