Documentation ¶
Index ¶
- func BuildDockerTLSConfig(dockerCertPath string) *tls.Config
- func CreateAndStartContainer(docker *dockerclient.DockerClient, ctx *ContainerContext) string
- func GetAcceptanceTestContainerInfo(docker *dockerclient.DockerClient, containerType string) *dockerclient.ContainerInfo
- func ReadDockerEnv() (string, string)
- type ContainerContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDockerTLSConfig ¶
BuildDockerTLSConfig builds the docker TLS configuration needed by the API
func CreateAndStartContainer ¶
func CreateAndStartContainer(docker *dockerclient.DockerClient, ctx *ContainerContext) string
CreateAndStartContainer creates abd starts the container given the context specifying the desired container properties
func GetAcceptanceTestContainerInfo ¶
func GetAcceptanceTestContainerInfo(docker *dockerclient.DockerClient, containerType string) *dockerclient.ContainerInfo
GetAcceptanceTestContainerInfo returns information about the specified container type
func ReadDockerEnv ¶
ReadDockerEnv reads docker environment variables needed by the docker APIs
Types ¶
type ContainerContext ¶
type ContainerContext struct { ImageName string Labels map[string]string //PortContext has a container port/proto key and a host port value, //with a convention that the container port/proto is an exposed port //from the container, and a host port it is mapped to is specified //in the map. We further restrict things by assuming a single host //mapping for an exposed port. PortContext map[string]string Links []string }
ContainerContext defines context relevant to creating containers via this package
Click to show internal directories.
Click to hide internal directories.