Documentation ¶
Index ¶
- func FindDockerImage(imageName string) (bool, error)
- func GetContainerIP(containerID string) (string, error)
- func PullImage(imageName string) error
- func StartContainer(containerName string, containerConfig *container.Config, ...) (string, error)
- func StartEtcdContainer(imageName string, containerName string) (string, error)
- func StartRedisContainer(imageName string, containerName string) (string, error)
- func StartZkContainer(imageName string, containerName string) (string, error)
- type ComposeConf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindDockerImage ¶
FindDockerImage returns whether an image name was found in the local registry
func GetContainerIP ¶
GetContainerIP inspects the container and returns its IP address
func StartContainer ¶
func StartContainer(containerName string, containerConfig *container.Config, hostConfig *container.HostConfig) (string, error)
StartContainer with given image, name and configuration
func StartEtcdContainer ¶
StartEtcdContainer starts an Etcd container and waits for the healthcheck
func StartRedisContainer ¶
StartRedisContainer starts a Redis container and waits for the healthcheck
Types ¶
type ComposeConf ¶
func (*ComposeConf) ListContainers ¶
func (c *ComposeConf) ListContainers() ([]string, error)
ListContainers lists the running container IDs
func (*ComposeConf) Start ¶
func (c *ComposeConf) Start() ([]byte, error)
Start runs a docker-compose configuration
func (*ComposeConf) Stop ¶
func (c *ComposeConf) Stop() ([]byte, error)
Stop stops a running docker-compose configuration
Click to show internal directories.
Click to hide internal directories.