Documentation
¶
Index ¶
- func ContainerExists(name string) (bool, error)
- func CreateNetwork(request testcontainers.NetworkRequest, timeoutMin time.Duration) (net testcontainers.Network, err error)
- func DockerExists() bool
- func DropContainerIfExists(containerName string)
- func DropContainers(containerNames []string)
- func DropNetwork(networkName string)
- func MergeOptions(c interface{}, override interface{})
- func MergeRequest(c *testcontainers.ContainerRequest, override *testcontainers.ContainerRequest)
- func PruneNetwork()
- func UniqueID() string
- type CmdOutput
- type ContainerConfig
- type ContainerOptions
- type LogCollector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerExists ¶
func CreateNetwork ¶
func CreateNetwork(request testcontainers.NetworkRequest, timeoutMin time.Duration) (net testcontainers.Network, err error)
CreateNetwork creates a docker container network
func DockerExists ¶
func DockerExists() bool
func DropContainerIfExists ¶
func DropContainerIfExists(containerName string)
func DropContainers ¶
func DropContainers(containerNames []string)
func DropNetwork ¶
func DropNetwork(networkName string)
func MergeOptions ¶
func MergeOptions(c interface{}, override interface{})
MergeOptions can merge generic options
func MergeRequest ¶
func MergeRequest(c *testcontainers.ContainerRequest, override *testcontainers.ContainerRequest)
MergeRequest ...
func PruneNetwork ¶ added in v0.2.5
func PruneNetwork()
Types ¶
type CmdOutput ¶
CmdOutput holds decoded output of a command executed in a container
type ContainerOptions ¶
ContainerOptions ...
type LogCollector ¶
type LogCollector struct { LogChan chan testcontainers.Log // contains filtered or unexported fields }
LogCollector ...
func StartLogger ¶
func StartLogger(ctx context.Context, c testcontainers.Container) (LogCollector, error)
StartLogger ...
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
examples
|
|
customlogger
command
|
|
highlevelapi/kafka
command
|
|
highlevelapi/mongo
command
|
|
highlevelapi/mongoreplicaset
command
|
|
highlevelapi/redis
command
|
|
highlevelapi/sets
command
|
|
kafka
command
|
|
minio
command
|
|
mongo
command
|
|
rabbitmq
command
|
|
redis
command
|
|
Click to show internal directories.
Click to hide internal directories.