dockersdk

package
v0.0.0-...-e22e833 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerConfig

type ContainerConfig struct {
	Name        string
	Image       string
	Env         []string
	Cmd         []string
	Volumes     map[string]string
	PortMap     map[int]int
	NetworkName string
	Alias       []string
}

func (ContainerConfig) Build

func (t ContainerConfig) Build() (config container.Config, hostConfig container.HostConfig, networkingConfig network.NetworkingConfig)

type Docker

type Docker struct {
	// contains filtered or unexported fields
}

func GetClient

func GetClient() Docker

func (Docker) ContainerCreate

func (docker Docker) ContainerCreate(config ContainerConfig) string

func (Docker) ContainerList

func (docker Docker) ContainerList() []types.Container

func (Docker) ContainerRemove

func (docker Docker) ContainerRemove(container string)

func (Docker) ContainerRemoveIfExist

func (docker Docker) ContainerRemoveIfExist(container string)

func (Docker) ContainerStart

func (docker Docker) ContainerStart(containerID string)

func (Docker) ContainerStartExt

func (docker Docker) ContainerStartExt(config ContainerConfig, force bool)

func (Docker) ImageExist

func (docker Docker) ImageExist(imageID string) (exist bool)

func (Docker) ImageInspect

func (docker Docker) ImageInspect(imageID string) types.ImageInspect

func (Docker) ImageList

func (docker Docker) ImageList() []types.ImageSummary

func (Docker) ImagePrune

func (docker Docker) ImagePrune() types.ImagesPruneReport

func (Docker) ImagePull

func (docker Docker) ImagePull(imageName string, force bool)

Jump to

Keyboard shortcuts

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