Documentation
¶
Index ¶
- type Container
- func (c *Container) DotNetConnectionStringForNetwork(ctx context.Context, network string) (string, error)
- func (c *Container) GetLogs(ctx context.Context) (string, error)
- func (c *Container) GoConnectionString(ctx context.Context) (string, error)
- func (c *Container) Shutdown(ctx context.Context) error
- type ContainerRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
Container testcontainers.Container
// contains filtered or unexported fields
}
func CreateContainer ¶
func CreateContainer(ctx context.Context, req ContainerRequest) (*Container, error)
func (*Container) DotNetConnectionStringForNetwork ¶
func (*Container) GoConnectionString ¶
type ContainerRequest ¶
type ContainerRequest struct {
testcontainers.GenericContainerRequest
Username string
Password string
Image string
Logger *testcontainers.LogConsumer
}
func (ContainerRequest) WithNetworkAlias ¶
func (req ContainerRequest) WithNetworkAlias(network, alias string) ContainerRequest
Click to show internal directories.
Click to hide internal directories.