docker

package
v0.0.0-...-9f300ed Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerCreateParam

type ContainerCreateParam struct {
	Name  string
	Image string
}

type DockerClient

type DockerClient struct {
	*client.Client
}

func New

func New(ops ...client.Opt) (*DockerClient, error)

func (*DockerClient) ContainerAttach

func (dc *DockerClient) ContainerAttach(containerID string) (types.HijackedResponse, error)

func (*DockerClient) ContainerCreate

func (dc *DockerClient) ContainerCreate(rq *ContainerCreateParam) (string, error)

func (*DockerClient) ContainerExecInteractive

func (dc *DockerClient) ContainerExecInteractive(containerID string, cmd []string) (types.HijackedResponse, error)

func (*DockerClient) ContainerInspect

func (dc *DockerClient) ContainerInspect(containerID string) (types.ContainerJSON, error)

func (*DockerClient) ContainerList

func (dc *DockerClient) ContainerList() ([]types.Container, error)

func (*DockerClient) ContainerLogs

func (dc *DockerClient) ContainerLogs(containerID string) (io.ReadCloser, error)

func (*DockerClient) ContainerRemove

func (dc *DockerClient) ContainerRemove(containerID string) error

func (*DockerClient) ContainerSearch

func (dc *DockerClient) ContainerSearch(containerName string) ([]types.Container, error)

func (*DockerClient) ContainerStart

func (dc *DockerClient) ContainerStart(containerID string) error

func (*DockerClient) ContainerStats

func (dc *DockerClient) ContainerStats(containerID string) (types.ContainerStats, error)

func (*DockerClient) ContainerStop

func (dc *DockerClient) ContainerStop(containerID string) error

func (*DockerClient) ContainerTop

func (dc *DockerClient) ContainerTop(containerID string) (container.ContainerTopOKBody, error)

func (*DockerClient) ImageHistory

func (dc *DockerClient) ImageHistory(imageName string) ([]image.HistoryResponseItem, error)

func (*DockerClient) ImageInspect

func (dc *DockerClient) ImageInspect(imageName string) (types.ImageInspect, error)

func (*DockerClient) ImageList

func (dc *DockerClient) ImageList() ([]types.ImageSummary, error)

func (*DockerClient) ImagePrune

func (dc *DockerClient) ImagePrune() error

func (*DockerClient) ImagePull

func (dc *DockerClient) ImagePull(rq *ImagePullParam) (io.ReadCloser, error)

func (*DockerClient) ImageRemove

func (dc *DockerClient) ImageRemove(imageName string) error

func (*DockerClient) ImageSearch

func (dc *DockerClient) ImageSearch(imageName string) ([]registry.SearchResult, error)

func (*DockerClient) ImageTag

func (dc *DockerClient) ImageTag(imageName, tag string) error

func (*DockerClient) NetworkConnect

func (dc *DockerClient) NetworkConnect(networkID, containerID string) error

func (*DockerClient) NetworkCreate

func (dc *DockerClient) NetworkCreate(name string, rq *types.NetworkCreate) (string, error)

func (*DockerClient) NetworkDisconnect

func (dc *DockerClient) NetworkDisconnect(networkID, containerID string) error

func (*DockerClient) NetworkInspect

func (dc *DockerClient) NetworkInspect(networkID string) (types.NetworkResource, error)

func (*DockerClient) NetworkList

func (dc *DockerClient) NetworkList() ([]types.NetworkResource, error)

func (*DockerClient) NetworkRemove

func (dc *DockerClient) NetworkRemove(networkID string) error

func (*DockerClient) NetworkSearch

func (dc *DockerClient) NetworkSearch(networkName string) ([]types.NetworkResource, error)

func (*DockerClient) NetworkSearchContainer

func (dc *DockerClient) NetworkSearchContainer(networkID string) ([]types.Container, error)

type ImagePullParam

type ImagePullParam struct {
	ImageName string
	Username  string
	Password  string
}

Jump to

Keyboard shortcuts

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