Documentation ¶
Index ¶
- type Container
- type Etcdcontainer
- type MySQLContainer
- type Option
- func DockerEnv(env []string) Option
- func HealthChecker(checker healthChecker) Option
- func ImageRepository(name string) Option
- func ImageTag(tag string) Option
- func Initializer(init func(*Container) error) Option
- func Name(name string) Option
- func Ports(ports ...int) Option
- func RunOptions(args []string) Option
- type RabbitMQContainer
- type RedisContainer
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 ¶
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 HealthChecker ¶
func HealthChecker(checker healthChecker) Option
func ImageRepository ¶
func Initializer ¶
func RunOptions ¶
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
Click to show internal directories.
Click to hide internal directories.