Documentation ¶
Index ¶
- func BuildImage(t *testing.T, path string, tag string) error
- func ClearTestSession(t *testing.T, uid string)
- func CloseWrap(args ...io.Closer) error
- func DaemonAddr() string
- func DaemonProto() string
- func DeisServiceTest(t *testing.T, container string, port string, protocol string)
- func GetImageID(t *testing.T, repo string) string
- func GetInspectData(t *testing.T, format string, container string) string
- func GetNewClient() (cli *client.DockerCli, stdout *io.PipeReader, stdoutPipe *io.PipeWriter)
- func PrintToStdout(t *testing.T, stdout *io.PipeReader, stdoutPipe *io.PipeWriter, stoptag string) string
- func PullImage(t *testing.T, cli *client.DockerCli, args ...string)
- func RunContainer(cli *client.DockerCli, args ...string) error
- func RunDeisDataTest(t *testing.T, args ...string)
- func RunEtcdTest(t *testing.T, uid string, port string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildImage ¶
BuildImage builds and tags a docker image from a Dockerfile.
func ClearTestSession ¶
ClearTestSession cleans up after a typical test session.
func DaemonAddr ¶
func DaemonAddr() string
DaemonAddr returns the docker server address for testing.
func DaemonProto ¶
func DaemonProto() string
DaemonProto returns the docker server protocol for testing.
func DeisServiceTest ¶
DeisServiceTest tries to connect to a container and port using the specified protocol.
func GetImageID ¶
GetImageID returns the ID of a docker image.
func GetInspectData ¶
GetInspectData prints and returns `docker inspect` data for a container.
func GetNewClient ¶
func GetNewClient() ( cli *client.DockerCli, stdout *io.PipeReader, stdoutPipe *io.PipeWriter)
GetNewClient returns a new docker test client.
func PrintToStdout ¶
func PrintToStdout(t *testing.T, stdout *io.PipeReader, stdoutPipe *io.PipeWriter, stoptag string) string
PrintToStdout prints a string to stdout.
func RunContainer ¶
RunContainer runs a docker image with the given arguments.
func RunDeisDataTest ¶
RunDeisDataTest starts a data container as a prerequisite for a service.
Types ¶
This section is empty.