Documentation ¶
Overview ¶
Package docker provides a module implementation for manipulating docker resources using Javascript
Index ¶
- type Containers
- func (d *Containers) Exec(containerID string, config types.ExecConfig) error
- func (d *Containers) Inspect(containerID string) (types.ContainerJSON, error)
- func (d *Containers) List(options types.ContainerListOptions) ([]types.Container, error)
- func (d *Containers) Logs(containerID string, options types.ContainerLogsOptions) (string, error)
- func (d *Containers) Pause(containerID string) error
- func (d *Containers) SetupClient()
- func (d *Containers) Start(containerID string) error
- func (d *Containers) Stop(containerID string) error
- func (d *Containers) Unpause(containerID string) error
- type Docker
- type Images
- func (d *Images) Inspect(imageID string) (types.ImageInspect, error)
- func (d *Images) List(options types.ImageListOptions) ([]types.ImageSummary, error)
- func (d *Images) Pull(refStr string, options types.ImagePullOptions) (string, error)
- func (d *Images) Remove(imageID string, options types.ImageRemoveOptions) ([]types.ImageDeleteResponseItem, error)
- func (d *Images) SetupClient()
- type Networks
- type Volumes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Containers ¶
Containers is a structure with all docker containers functions
func (*Containers) Exec ¶
func (d *Containers) Exec(containerID string, config types.ExecConfig) error
Exec works as Docker exec command
func (*Containers) Inspect ¶
func (d *Containers) Inspect(containerID string) (types.ContainerJSON, error)
Inspect works as Docker inspect command
func (*Containers) List ¶
func (d *Containers) List(options types.ContainerListOptions) ([]types.Container, error)
List works as Docker ps command
func (*Containers) Logs ¶
func (d *Containers) Logs(containerID string, options types.ContainerLogsOptions) (string, error)
Logs works as Docker logs command
func (*Containers) Pause ¶
func (d *Containers) Pause(containerID string) error
Pause works as Docker pause command
func (*Containers) SetupClient ¶
func (d *Containers) SetupClient()
SetupClient for filling in Docker client instance
func (*Containers) Start ¶
func (d *Containers) Start(containerID string) error
Start works as Docker start command
func (*Containers) Stop ¶
func (d *Containers) Stop(containerID string) error
Stop works as Docker stop command
func (*Containers) Unpause ¶
func (d *Containers) Unpause(containerID string) error
Unpause works as Docker unpause command
type Images ¶
Images is a structure with all docker Image functions
func (*Images) Inspect ¶
func (d *Images) Inspect(imageID string) (types.ImageInspect, error)
Inspect works as Docker image inspect
func (*Images) List ¶
func (d *Images) List(options types.ImageListOptions) ([]types.ImageSummary, error)
List works as Docker image ls command
func (*Images) Remove ¶
func (d *Images) Remove(imageID string, options types.ImageRemoveOptions) ([]types.ImageDeleteResponseItem, error)
Remove works as Docker image rm
func (*Images) SetupClient ¶
func (d *Images) SetupClient()
SetupClient for filling in Docker client instance
type Networks ¶
Networks is a structure with all docker Network functions
func (*Networks) Create ¶
func (nw *Networks) Create(name string, options types.NetworkCreate) (types.NetworkCreateResponse, error)
Create works as Docker network create
func (*Networks) List ¶
func (nw *Networks) List(options types.NetworkListOptions) ([]types.NetworkResource, error)
List works as Docker network ls
func (*Networks) SetupClient ¶
func (nw *Networks) SetupClient()
SetupClient for filling in Docker client instance
type Volumes ¶
Volumes is a structure with all docker Volume functions
func (*Volumes) Create ¶
func (v *Volumes) Create(options volumetypes.VolumeCreateBody) (types.Volume, error)
Create works as Docker volume create
func (*Volumes) List ¶
func (v *Volumes) List(filter filters.Args) (volumetypes.VolumeListOKBody, error)
List works as Docker volume ls
func (*Volumes) SetupClient ¶
func (v *Volumes) SetupClient()
SetupClient for filling in Docker client instance