framework

package
v0.0.0-...-2758cc9 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Framework

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

Framework is used in the execution of e2e tests.

func NewFramework

func NewFramework() *Framework

NewFramework constructs a new e2e test Framework with default options.

func (*Framework) AfterEach

func (fw *Framework) AfterEach()

AfterEach cleans up resources after a test.

func (*Framework) BeforeEach

func (fw *Framework) BeforeEach()

BeforeEach creates resources before a test.

type MongoDB

type MongoDB struct {
	Image         string
	HostPort      int
	ContainerPort int
	// contains filtered or unexported fields
}

MongoDB defines a containerized MongoDB instance.

func NewMongoDB

func NewMongoDB(client *client.Client) *MongoDB

NewMongoDB creates a manageable containerized MongoDB instance.

func (*MongoDB) Clean

func (mdb *MongoDB) Clean() error

Clean removes the specified MongoDB container resources.

func (*MongoDB) Create

func (mdb *MongoDB) Create() (*MongoDB, error)

Create a new MongoDB instance.

func (*MongoDB) Stop

func (mdb *MongoDB) Stop() error

Stop the specified MongoDB.

Jump to

Keyboard shortcuts

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