genericapi

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 added in v0.0.3

func CreateContainer(ctx context.Context, req ContainerRequest) (*Container, error)

func (Container) BaseURL

func (c Container) BaseURL(ctx context.Context) (string, error)

type ContainerRequest

type ContainerRequest struct {
	testcontainers.GenericContainerRequest
	Image            string
	LivenessEndpoint string
	Port             nat.Port
}

func (ContainerRequest) WithNetworkAlias

func (req ContainerRequest) WithNetworkAlias(network, alias string) ContainerRequest

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL