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)
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 ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.