Documentation
¶
Index ¶
- type DockerContainer
- type DockerContainerOptFn
- func AllocatePublicPortsFor(ports ...uint32) DockerContainerOptFn
- func WithContainerName(name string) DockerContainerOptFn
- func WithEnvVar(name, value string) DockerContainerOptFn
- func WithImage(image string) DockerContainerOptFn
- func WithNetwork(network string) DockerContainerOptFn
- func WithTestingT(t testing.TestingT) DockerContainerOptFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerContainer ¶
type DockerContainer struct {
// contains filtered or unexported fields
}
func NewDockerContainer ¶
func NewDockerContainer(fs ...DockerContainerOptFn) (*DockerContainer, error)
func (*DockerContainer) GetID ¶
func (d *DockerContainer) GetID() string
func (*DockerContainer) GetIP ¶
func (d *DockerContainer) GetIP() (string, error)
func (*DockerContainer) GetName ¶
func (d *DockerContainer) GetName() (string, error)
func (*DockerContainer) Run ¶
func (d *DockerContainer) Run() error
func (*DockerContainer) Stop ¶
func (d *DockerContainer) Stop() error
type DockerContainerOptFn ¶
type DockerContainerOptFn func(d *DockerContainer) error
func AllocatePublicPortsFor ¶
func AllocatePublicPortsFor(ports ...uint32) DockerContainerOptFn
func WithContainerName ¶
func WithContainerName(name string) DockerContainerOptFn
func WithEnvVar ¶
func WithEnvVar(name, value string) DockerContainerOptFn
func WithImage ¶
func WithImage(image string) DockerContainerOptFn
func WithNetwork ¶
func WithNetwork(network string) DockerContainerOptFn
func WithTestingT ¶
func WithTestingT(t testing.TestingT) DockerContainerOptFn
Click to show internal directories.
Click to hide internal directories.