Documentation
¶
Index ¶
- func Bootstrap[S BackingService](id string, srv S) (S, error)
- func BootstrapService[S BackingService](id string, srv S, localTo T) (S, error)
- func GetGatewayIP() (net.IP, error)
- func GetNetwork() (*docker.Network, error)
- func Must(t T, err error, actionFormat string, a ...any)
- func PurgeBackingServices() error
- type BackingService
- type Minio
- func (m *Minio) Client() (*minio.Client, error)
- func (m *Minio) CreateBucket(t T, ctx context.Context, prefix string) string
- func (m *Minio) Environment() MinioEnvironment
- func (m *Minio) Purge(pool *dockertest.Pool) error
- func (m *Minio) SetUp(pool *dockertest.Pool, network *dockertest.Network) error
- type MinioEnvironment
- type OpenSearch
- type PGEnvironment
- type Postgres
- type T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bootstrap ¶
func Bootstrap[S BackingService](id string, srv S) (S, error)
func BootstrapService ¶ added in v0.2.0
func BootstrapService[S BackingService](id string, srv S, localTo T) (S, error)
func GetGatewayIP ¶ added in v0.2.0
func GetNetwork ¶ added in v0.2.0
func PurgeBackingServices ¶
func PurgeBackingServices() error
Types ¶
type BackingService ¶
type BackingService interface {
SetUp(pool *dockertest.Pool, network *dockertest.Network) error
Purge(pool *dockertest.Pool) error
}
type Minio ¶
type Minio struct {
// contains filtered or unexported fields
}
func (*Minio) CreateBucket ¶
CreateBucket with the given prefix and a suffix based on the test name.
func (*Minio) Environment ¶
func (m *Minio) Environment() MinioEnvironment
func (*Minio) SetUp ¶
func (m *Minio) SetUp(pool *dockertest.Pool, network *dockertest.Network) error
type MinioEnvironment ¶
type OpenSearch ¶ added in v0.2.0
type OpenSearch struct {
// contains filtered or unexported fields
}
func NewOpenSearch ¶ added in v0.2.0
func NewOpenSearch(t T, tag string) *OpenSearch
func (*OpenSearch) GetEndpoint ¶ added in v0.2.0
func (m *OpenSearch) GetEndpoint() string
func (*OpenSearch) Purge ¶ added in v0.2.0
func (m *OpenSearch) Purge(pool *dockertest.Pool) error
func (*OpenSearch) SetUp ¶ added in v0.2.0
func (m *OpenSearch) SetUp(pool *dockertest.Pool, network *dockertest.Network) error
type PGEnvironment ¶
type PGEnvironment struct {
PostgresURI string
// contains filtered or unexported fields
}
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
func NewPostgres ¶
func (*Postgres) SetUp ¶
func (pg *Postgres) SetUp(pool *dockertest.Pool, network *dockertest.Network) error
Click to show internal directories.
Click to hide internal directories.