Documentation ¶
Index ¶
- type ContainerController
- func (c *ContainerController) CleanContainersByImage(image string) (err error)
- func (c *ContainerController) ContainerById(containerId string) (container *types.Container, err error)
- func (c *ContainerController) ContainerLog(id string) (result string, err error)
- func (c *ContainerController) ContainersByImage(image string) (containers []types.Container, err error)
- func (c *ContainerController) CopyFromContainer(containerId string, src string) (stream io.ReadCloser, err error)
- func (c *ContainerController) EnsureImage() (err error)
- func (c *ContainerController) RemoveContainerById(containerId string) (err error)
- func (c *ContainerController) RunContainer(image string, command []string, volumes []VolumeMount) (containerId string, err error)
- func (c *ContainerController) WaitForContainer(containerId string, condition container.WaitCondition) (state int64, err error)
- type DockerConfig
- type RegistryData
- type VolumeMount
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 RegistryData ¶
type VolumeMount ¶
Click to show internal directories.
Click to hide internal directories.