dao

package
v0.0.0-...-43ed349 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker interface {
	Whoami() string
	ListContainer() ([]types.Container, error)
	NewContainer(imageName string, containerName string, env []string, portBinding map[nat.Port][]nat.PortBinding, pathBind []string) (containerId string, err error)
	StopContainer(containerId string) error
	StartContainer(containerId string) error
	RestartContainer(containerId string) error
	RemoveContainer(containerId string, options types.ContainerRemoveOptions) error
	ContainerInfo(containerId string) (types.ContainerJSON, error)
	ContainerLogs(containerId string, tail string) ([]byte, error)
	DockerInfo() (types.Info, error)
	VersionInfo() *Version
	Ping() (types.Ping, error)
	DiskUsage() (types.DiskUsage, error)
	ListImage() ([]types.ImageSummary, error)
	PullImage(refStr string) (io.ReadCloser, error)
	ImageInfo(imageId string) (types.ImageInspect, error)
	TagImage(source string, target string) error
	DeleteImage(imageId string, forge bool) error
	SaveImage(imageId string) (io.ReadCloser, error)
	ListNetwork() ([]types.NetworkResource, error)
	NetworkInfo(networkId string) (types.NetworkResource, error)
	CreateNetwork(networkName string, driver string) (types.NetworkCreateResponse, error)
	RemoveNetwork(networkName string) error
	ConnectNetwork(containerId string, networkId string) error
	DisconnectNetwork(containerId string, networkId string, force bool) error
	ListVolume() (volume.VolumeListOKBody, error)
	CreateVolume(name string, driver string, labels map[string]string) (types.Volume, error)
	VolumeInfo(volumeId string) (types.Volume, error)
	RemoveVolume(volumeId string, force bool) error
	PruneVolume() (types.VolumesPruneReport, error)
}

type Version

type Version struct {
	ClientVer string        `json:"client"`
	ServerVer types.Version `json:"server"`
}

Jump to

Keyboard shortcuts

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