Documentation ¶
Index ¶
- func CheckContainerConfig(cfg *ContainerCfg) error
- type BuildCfg
- type ContainerCfg
- type DockerCliCfg
- type DockerCliWrapper
- func (cli *DockerCliWrapper) BuildImage(cfg *BuildCfg) error
- func (cli *DockerCliWrapper) Close() error
- func (cli *DockerCliWrapper) IsContainerRunning(name string) bool
- func (cli *DockerCliWrapper) PushImage(cfg *PushCfg) error
- func (cli *DockerCliWrapper) RemoveContainer(containername string) error
- func (cli *DockerCliWrapper) StartContainer(cfg *ContainerCfg) error
- type PushCfg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckContainerConfig ¶
func CheckContainerConfig(cfg *ContainerCfg) error
Types ¶
type ContainerCfg ¶
type ContainerCfg struct { Image string `json:"image" yml:"image"` ContainerName string `json:"container_name" yml:"container_name"` Hostname string `json:"hostname" yml:"hostname"` Networks []string `json:"networks" yml:"networks"` Volumes []string `json:"volumes" yml:"volumes"` Environment []string `json:"environment" yml:"environment"` Restart string `json:"restart" yml:"restart"` }
type DockerCliCfg ¶
type DockerCliWrapper ¶
type DockerCliWrapper struct { DockerCli *dockerclient.Client DockerCliCfg DockerCliCfg }
func NewClient ¶
func NewClient(dockerCliCfg *DockerCliCfg) (*DockerCliWrapper, error)
func (*DockerCliWrapper) BuildImage ¶
func (cli *DockerCliWrapper) BuildImage(cfg *BuildCfg) error
func (*DockerCliWrapper) Close ¶
func (cli *DockerCliWrapper) Close() error
func (*DockerCliWrapper) IsContainerRunning ¶
func (cli *DockerCliWrapper) IsContainerRunning(name string) bool
func (*DockerCliWrapper) PushImage ¶
func (cli *DockerCliWrapper) PushImage(cfg *PushCfg) error
func (*DockerCliWrapper) RemoveContainer ¶
func (cli *DockerCliWrapper) RemoveContainer(containername string) error
func (*DockerCliWrapper) StartContainer ¶
func (cli *DockerCliWrapper) StartContainer(cfg *ContainerCfg) error
Click to show internal directories.
Click to hide internal directories.