docker

package
v0.0.0-...-50debf6 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerController

type ContainerController struct {
	RegistryData *RegistryData
	// contains filtered or unexported fields
}

func NewContainerController

func NewContainerController(registry *RegistryData) (c *ContainerController, err error)

func (*ContainerController) CleanContainersByImage

func (c *ContainerController) CleanContainersByImage(image string) (err error)

func (*ContainerController) ContainerById

func (c *ContainerController) ContainerById(containerId string) (container *types.Container, err error)

func (*ContainerController) ContainerLog

func (c *ContainerController) ContainerLog(id string) (result string, err error)

func (*ContainerController) ContainersByImage

func (c *ContainerController) ContainersByImage(image string) (containers []types.Container, err error)

func (*ContainerController) CopyFromContainer

func (c *ContainerController) CopyFromContainer(containerId string, src string) (stream io.ReadCloser, err error)

func (*ContainerController) EnsureImage

func (c *ContainerController) EnsureImage() (err error)

func (*ContainerController) RemoveContainerById

func (c *ContainerController) RemoveContainerById(containerId string) (err error)

func (*ContainerController) RunContainer

func (c *ContainerController) RunContainer(image string, command []string, volumes []VolumeMount) (containerId string, err error)

func (*ContainerController) WaitForContainer

func (c *ContainerController) WaitForContainer(containerId string, condition container.WaitCondition) (state int64, err error)

type DockerConfig

type DockerConfig struct {
	Auth           bool
	Username       string
	Password       string
	ContainerImage string
}

type RegistryData

type RegistryData struct {
	Image    string
	Username string
	Password string
	UseAuth  bool
}

type VolumeMount

type VolumeMount struct {
	HostPath string
	Volume   volume.Volume
}

Jump to

Keyboard shortcuts

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