Versions in this module Expand all Collapse all v3 v3.5.5 Feb 14, 2020 Changes in this version + type BuildOptions struct + ContextDir string + Dockerfile string + type Pool struct + Client *dc.Client + MaxWait time.Duration + func NewPool(endpoint string) (*Pool, error) + func NewTLSPool(endpoint, certpath string) (*Pool, error) + func (d *Pool) BuildAndRun(name, dockerfilePath string, env []string) (*Resource, error) + func (d *Pool) BuildAndRunWithBuildOptions(buildOpts *BuildOptions, runOpts *RunOptions, hcOpts ...func(*dc.HostConfig)) (*Resource, error) + func (d *Pool) BuildAndRunWithOptions(dockerfilePath string, opts *RunOptions, hcOpts ...func(*dc.HostConfig)) (*Resource, error) + func (d *Pool) ContainerByName(containerName string) (*Resource, bool) + func (d *Pool) Purge(r *Resource) error + func (d *Pool) RemoveContainerByName(containerName string) error + func (d *Pool) Retry(op func() error) error + func (d *Pool) Run(repository, tag string, env []string) (*Resource, error) + func (d *Pool) RunWithOptions(opts *RunOptions, hcOpts ...func(*dc.HostConfig)) (*Resource, error) + type Resource struct + Container *dc.Container + func (r *Resource) Close() error + func (r *Resource) Expire(seconds uint) error + func (r *Resource) GetBoundIP(id string) string + func (r *Resource) GetHostPort(portID string) string + func (r *Resource) GetPort(id string) string + type RunOptions struct + Auth dc.AuthConfiguration + CapAdd []string + Cmd []string + DNS []string + Entrypoint []string + Env []string + ExposedPorts []string + ExtraHosts []string + Hostname string + Labels map[string]string + Links []string + Mounts []string + Name string + NetworkID string + PortBindings map[dc.Port][]dc.PortBinding + Privileged bool + Repository string + SecurityOpt []string + Tag string + WorkingDir string Other modules containing this package github.com/figuerascarlos/dockertest