dockertest

package
v0.0.0-...-23a9210 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 9 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 {
	*dockertest.Resource
	// contains filtered or unexported fields
}

func NewContainer

func NewContainer(opts *dockertest.RunOptions, healthCheckFunc HealthCheckFunc) (*Container, error)

func (*Container) Delete

func (c *Container) Delete() error

func (*Container) TailLogs

func (c *Container) TailLogs(ctx context.Context, wr io.Writer, follow bool) error

type HealthCheckFunc

type HealthCheckFunc func(resource *dockertest.Resource, pool *dockertest.Pool) error

func HttpHealthcheck

func HttpHealthcheck(portIdentifier string, endpoint string, healthyStatusCode int) HealthCheckFunc

func LogHealthcheck

func LogHealthcheck(logLine string) HealthCheckFunc

Jump to

Keyboard shortcuts

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