utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cont

type Cont interface {
	GetActiveContainerList() (*[]types.Container, error)
	GetImageList() (*[]types.ImageSummary, error)
}

type Docker

type Docker struct {
	Client *client.Client
}

func NewDockerClient

func NewDockerClient(connect *client.Client) Docker

func (*Docker) ContainerExecStart

func (d *Docker) ContainerExecStart(containerID string, startCheck types.ExecStartCheck) error

func (*Docker) ContainerInspect

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

func (*Docker) ContainerStart

func (d *Docker) ContainerStart(containerID string, option types.ContainerStartOptions) error

func (*Docker) ContainerStop

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

func (*Docker) GetActiveContainerList

func (d *Docker) GetActiveContainerList() (*[]types.Container, error)

func (*Docker) GetImageList

func (d *Docker) GetImageList() (*[]types.ImageSummary, error)

Jump to

Keyboard shortcuts

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