docker

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

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

Runtime wraps dockertest functionality into a reusable component.

func NewRuntime

func NewRuntime(expiration time.Duration) (*Runtime, error)

NewRuntime constructor.

func (*Runtime) Expiration

func (b *Runtime) Expiration() time.Duration

Expiration getter.

func (*Runtime) Pool

func (b *Runtime) Pool() *dockertest.Pool

Pool getter.

func (*Runtime) Resources

func (b *Runtime) Resources() []*dockertest.Resource

Resources getter.

func (*Runtime) RunWithOptions

func (b *Runtime) RunWithOptions(ro *dockertest.RunOptions) (*dockertest.Resource, error)

RunWithOptions runs a resources provided with options.

func (*Runtime) Teardown

func (b *Runtime) Teardown() []error

Teardown all resources in the opposite order of their creation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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