Versions in this module Expand all Collapse all v0 v0.44.0 Jun 29, 2023 Changes in this version + func Build(t testing.TestingT, path string, options *BuildOptions) + func BuildE(t testing.TestingT, path string, options *BuildOptions) error + func DeleteImage(t testing.TestingT, img string, logger *logger.Logger) + func DeleteImageE(t testing.TestingT, img string, logger *logger.Logger) error + func DoesImageExist(t testing.TestingT, imgLabel string, logger *logger.Logger) bool + func GetDockerHost() string + func GitCloneAndBuild(t testing.TestingT, repo string, ref string, path string, ...) + func GitCloneAndBuildE(t testing.TestingT, repo string, ref string, path string, ...) error + func Push(t testing.TestingT, logger *logger.Logger, tag string) + func PushE(t testing.TestingT, logger *logger.Logger, tag string) error + func Run(t testing.TestingT, image string, options *RunOptions) string + func RunAndGetID(t testing.TestingT, image string, options *RunOptions) string + func RunAndGetIDE(t testing.TestingT, image string, options *RunOptions) (string, error) + func RunDockerCompose(t testing.TestingT, options *Options, args ...string) string + func RunDockerComposeAndGetStdOut(t testing.TestingT, options *Options, args ...string) string + func RunDockerComposeE(t testing.TestingT, options *Options, args ...string) (string, error) + func RunE(t testing.TestingT, image string, options *RunOptions) (string, error) + func Stop(t testing.TestingT, containers []string, options *StopOptions) string + func StopE(t testing.TestingT, containers []string, options *StopOptions) (string, error) + type BuildOptions struct + Architectures []string + BuildArgs []string + EnableBuildKit bool + Env map[string]string + Load bool + Logger *logger.Logger + OtherOptions []string + Push bool + Tags []string + Target string + type ContainerInspect struct + Binds []VolumeBind + Created time.Time + Error string + ExitCode uint8 + Health HealthCheck + ID string + Name string + Ports []Port + Running bool + Status string + func Inspect(t *testing.T, id string) *ContainerInspect + func InspectE(t *testing.T, id string) (*ContainerInspect, error) + func (inspectOutput ContainerInspect) GetExposedHostPort(containerPort uint16) uint16 + type HealthCheck struct + FailingStreak uint8 + Log []HealthLog + Status string + type HealthLog struct + End string + ExitCode uint8 + Output string + Start string + type Image struct + Containers string + CreatedAt string + CreatedSince string + Digest string + ID string + Repository string + SharedSize string + Tag string + UniqueSize string + VirtualSize string + func ListImages(t testing.TestingT, logger *logger.Logger) []Image + func ListImagesE(t testing.TestingT, logger *logger.Logger) ([]Image, error) + func (image Image) String() string + type Options struct + EnableBuildKit bool + EnvVars map[string]string + Logger *logger.Logger + ProjectName string + WorkingDir string + type Port struct + ContainerPort uint16 + HostPort uint16 + Protocol string + type RunOptions struct + Command []string + Detach bool + Entrypoint string + EnvironmentVariables []string + Init bool + Logger *logger.Logger + Name string + OtherOptions []string + Privileged bool + Remove bool + Tty bool + User string + Volumes []string + type StopOptions struct + Logger *logger.Logger + Time int + type VolumeBind struct + Destination string + Source string