Documentation
¶
Index ¶
Constants ¶
View Source
const ( PostgresImage = "postgres:18-alpine" MySQLImage = "mysql:lts" RedisImage = "redis:8-alpine" MinIOImage = "minio/minio:latest" )
Container images.
View Source
const ( TestDatabaseName = "testdb" TestUsername = "testuser" TestPassword = "testpass" )
Database credentials.
View Source
const ( TestMinIOAccessKey = "testadmin" TestMinIOSecretKey = "testadmin" TestMinioBucket = "testbucket" )
MinIO credentials.
View Source
const (
DefaultContainerTimeout = 30 * time.Second
)
Timeouts.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MinIOContainer ¶
type MinIOContainer struct {
MinIOConfig *config.MinIOConfig
// contains filtered or unexported fields
}
func NewMinIOContainer ¶
func NewMinIOContainer(ctx context.Context, s *suite.Suite) *MinIOContainer
type MySQLContainer ¶
type MySQLContainer struct {
DsConfig *config.DatasourceConfig
// contains filtered or unexported fields
}
func NewMySQLContainer ¶
func NewMySQLContainer(ctx context.Context, s *suite.Suite) *MySQLContainer
type PostgresContainer ¶
type PostgresContainer struct {
DsConfig *config.DatasourceConfig
// contains filtered or unexported fields
}
func NewPostgresContainer ¶
func NewPostgresContainer(ctx context.Context, s *suite.Suite) *PostgresContainer
type RedisContainer ¶
type RedisContainer struct {
RdsConfig *config.RedisConfig
// contains filtered or unexported fields
}
func NewRedisContainer ¶
func NewRedisContainer(ctx context.Context, s *suite.Suite) *RedisContainer
Click to show internal directories.
Click to hide internal directories.