docker

package
v0.55.1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package docker provides abstractions to help starting docker containers.

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
Package amqp provides a container environment for AMQP test.
Package amqp provides a container environment for AMQP test.
Package aws provides sql container environment.
Package aws provides sql container environment.
Package kafka provides kafka container environment.
Package kafka provides kafka container environment.
Package redis provides redis container environment.
Package redis provides redis container environment.
Package sql provides sql container environment.
Package sql provides sql container environment.

Jump to

Keyboard shortcuts

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