docker

package
v0.0.0-...-cbfbdd4 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dockerd

type Dockerd struct {
	// contains filtered or unexported fields
}

Dockerd is a wrapper client for docker daemon.

func NewDockerd

func NewDockerd() (*Dockerd, error)

NewDockerd creates a docker client.

func (*Dockerd) ContainerInspect

func (d *Dockerd) ContainerInspect(containerID string) (types.ContainerJSON, error)

ContainerInspect returns the container information.

func (*Dockerd) ContainerList

func (d *Dockerd) ContainerList() ([]types.Container, error)

ContainerList lists all containers on host.

func (*Dockerd) ContainerStart

func (d *Dockerd) ContainerStart(containerID string) error

ContainerStart starts a container.

func (*Dockerd) ContainerStop

func (d *Dockerd) ContainerStop(containerID string, timeout *time.Duration) error

ContainerStop stops a container.

func (*Dockerd) ImageInspect

func (d *Dockerd) ImageInspect(imageID string) (types.ImageInspect, error)

ImageInspect returns the image information.

func (*Dockerd) Info

func (d *Dockerd) Info() (types.Info, error)

Info returns dockerd information.

func (*Dockerd) VolumeInspect

func (d *Dockerd) VolumeInspect(volumeID string) (types.Volume, error)

VolumeInspect get a volume info

func (*Dockerd) VolumeList

func (d *Dockerd) VolumeList() ([]*types.Volume, error)

VolumeList lists all volumes on host

Jump to

Keyboard shortcuts

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