stands

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MysqlStandName     = "mysql"
	LiquibaseStandName = "liquibase"
)
View Source
const (
	KafkaStandName = "kafka"
)
View Source
const (
	VaultStandName = "vault"
)

Variables

View Source
var Nop = nop{}

Functions

func Init added in v0.1.3

func Init(
	t *testing.T,
	si ...Interface,
) map[string]State

func Pool

func Pool(t *testing.T) *dockertest.Pool

Types

type Interface

type Interface interface {
	Up(t *testing.T) (created bool)
	Name() string
}

type Kafka

type Kafka struct {
	Topics   []KafkaTopic
	Replicas int
	SASL     bool
	SSL      bool
}

func (Kafka) Name

func (Kafka) Name() string

func (Kafka) SecurityProtocol

func (s Kafka) SecurityProtocol() string

func (Kafka) Up

func (s Kafka) Up(t *testing.T) bool

type KafkaTopic

type KafkaTopic struct {
	Name       string
	Partitions int
}

type Mysql

type Mysql struct {
	DB        string
	Liquibase string
	Replicas  int
}

func (Mysql) Name

func (Mysql) Name() string

func (Mysql) Up

func (s Mysql) Up(t *testing.T) bool

type State

type State struct {
	Created bool
}

type Vault

type Vault struct {
	Roles      map[uuid.UUID]uuid.UUID
	UserPasses map[string]string
	Replicas   int
}

func (Vault) Name

func (s Vault) Name() string

func (Vault) Up

func (s Vault) Up(t *testing.T) bool

Jump to

Keyboard shortcuts

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