Documentation ¶
Overview ¶
Provides utility methods for working with Docker.
Index ¶
- Variables
- type DockerClient
- func (d *DockerClient) ChildProcessForContainer(container *gdocker.Container) (int, error)
- func (d *DockerClient) ForceCleanContainer(ID string) error
- func (d *DockerClient) GetContainerIPs(ids []string) (map[string]string, error)
- func (d *DockerClient) GetImage(imageName string) (*gdocker.Image, error)
- func (d *DockerClient) InspectContainer(containerName string) (*gdocker.Container, error)
- func (d *DockerClient) ListContainers() ([]gdocker.APIContainers, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoSuchContainer = errors.New("can't find container")
Functions ¶
This section is empty.
Types ¶
type DockerClient ¶
type DockerClient struct {
// contains filtered or unexported fields
}
func GetConnection ¶
func GetConnection(dockerSocket string) (*DockerClient, error)
func (*DockerClient) ChildProcessForContainer ¶
func (d *DockerClient) ChildProcessForContainer(container *gdocker.Container) (int, error)
func (*DockerClient) ForceCleanContainer ¶
func (d *DockerClient) ForceCleanContainer(ID string) error
func (*DockerClient) GetContainerIPs ¶
func (d *DockerClient) GetContainerIPs(ids []string) (map[string]string, error)
func (*DockerClient) GetImage ¶
func (d *DockerClient) GetImage(imageName string) (*gdocker.Image, error)
func (*DockerClient) InspectContainer ¶
func (d *DockerClient) InspectContainer(containerName string) (*gdocker.Container, error)
func (*DockerClient) ListContainers ¶
func (d *DockerClient) ListContainers() ([]gdocker.APIContainers, error)
Click to show internal directories.
Click to hide internal directories.