xtest

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PostgresContainer = func() *psql.XPostgresContainer {
		return &psql.XPostgresContainer{
			Context: context.Background(),
		}
	}()
)

Functions

This section is empty.

Types

type Container added in v0.0.2

type Container struct {
	Advanced d.Container
	Context  context.Context
}

func NewContainer added in v0.0.2

func NewContainer(c *ContainerRequest) (*Container, error)

func (*Container) Endpoint added in v0.0.2

func (c *Container) Endpoint(port ...string) (string, error)

func (*Container) Start added in v0.0.2

func (c *Container) Start()

func (*Container) Terminate added in v0.0.2

func (c *Container) Terminate()

type ContainerRequest added in v0.0.2

type ContainerRequest struct {
	ContainerName string
	Image         string
	ExposedPorts  []string
	Env           map[string]string
	Cmd           []string
	Labels        map[string]string
	WaitingFor    wait.Strategy
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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