test

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2018 License: Apache-2.0 Imports: 13 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 {
	// contains filtered or unexported fields
}

func NewDockerContainer

func NewDockerContainer(opts ...Option) *Container

func (*Container) Start

func (c *Container) Start() error

func (*Container) Stop

func (c *Container) Stop() error

func (*Container) Suspend

func (c *Container) Suspend() error

func (*Container) Wait

func (c *Container) Wait() error

type Etcdcontainer

type Etcdcontainer struct {
	URL string
	// contains filtered or unexported fields
}

func NewEtcdContainer

func NewEtcdContainer() (*Etcdcontainer, error)

func (*Etcdcontainer) Start

func (container *Etcdcontainer) Start() error

func (*Etcdcontainer) Stop

func (container *Etcdcontainer) Stop() error

func (*Etcdcontainer) Suspend

func (container *Etcdcontainer) Suspend() error

type MySQLContainer

type MySQLContainer struct {
	URL string
	// contains filtered or unexported fields
}

func NewMySQLContainer

func NewMySQLContainer(migrationRepository string) (*MySQLContainer, error)

func (*MySQLContainer) Start

func (container *MySQLContainer) Start() error

func (*MySQLContainer) Stop

func (container *MySQLContainer) Stop() error

func (*MySQLContainer) Suspend

func (container *MySQLContainer) Suspend() error

type Option

type Option func(*Container)

func DockerEnv

func DockerEnv(env []string) Option

func HealthChecker

func HealthChecker(checker healthChecker) Option

func ImageRepository

func ImageRepository(name string) Option

func ImageTag

func ImageTag(tag string) Option

func Initializer

func Initializer(init func(*Container) error) Option

func Name

func Name(name string) Option

func Ports

func Ports(ports ...int) Option

func RunOptions

func RunOptions(args []string) Option

type RabbitMQContainer

type RabbitMQContainer struct {
	URL string
	// contains filtered or unexported fields
}

func NewRabbitMQContainer

func NewRabbitMQContainer() (*RabbitMQContainer, error)

func (*RabbitMQContainer) Start

func (container *RabbitMQContainer) Start() error

func (*RabbitMQContainer) Stop

func (container *RabbitMQContainer) Stop() error

func (*RabbitMQContainer) Suspend

func (container *RabbitMQContainer) Suspend() error

type RedisContainer

type RedisContainer struct {
	URL string
	// contains filtered or unexported fields
}

func NewRedisContainer

func NewRedisContainer() (*RedisContainer, error)

func (*RedisContainer) Start

func (container *RedisContainer) Start() error

func (*RedisContainer) Stop

func (container *RedisContainer) Stop() error

func (*RedisContainer) Suspend

func (container *RedisContainer) Suspend() error

Jump to

Keyboard shortcuts

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