test

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerPool

type DockerPool struct {
	// contains filtered or unexported fields
}

DockerPool lets you manage docker containers.

func GetDockerPool

func GetDockerPool() *DockerPool

GetDockerPool get a docker pool.

func (*DockerPool) Purge

func (dp *DockerPool) Purge(resource *dockertest.Resource)

Purge removes Postgres container.

func (*DockerPool) RunPostgres

func (dp *DockerPool) RunPostgres() (db *sql.DB, resource *dockertest.Resource, uri string)

RunPostgres creates a Postgres container.

Jump to

Keyboard shortcuts

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