genericapi

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 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

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

func (Container) URL added in v0.0.5

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

func (Container) URLForNetwork added in v0.0.5

func (c Container) URLForNetwork(ctx context.Context, network string) (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