docker

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Database

func Database(containerType ContainerType, num int) []testing.DatabaseDriver

func Mysql

func Mysql() testing.DatabaseDriver

func Mysqls

func Mysqls(num int) []testing.DatabaseDriver

func Postgres

func Postgres() testing.DatabaseDriver

func Postgreses

func Postgreses(num int) []testing.DatabaseDriver

func Sqlite

func Sqlite() testing.DatabaseDriver

func Sqlites

func Sqlites(num int) []testing.DatabaseDriver

func Sqlserver

func Sqlserver() testing.DatabaseDriver

func Sqlservers

func Sqlservers(num int) []testing.DatabaseDriver

func Stop

func Stop() error

Types

type ContainerType

type ContainerType string
const (
	ContainerTypeMysql     ContainerType = "mysql"
	ContainerTypePostgres  ContainerType = "postgres"
	ContainerTypeSqlite    ContainerType = "sqlite"
	ContainerTypeSqlserver ContainerType = "sqlserver"
	ContainerTypeRedis     ContainerType = "redis"
)

type MysqlImpl

type MysqlImpl struct {
	// contains filtered or unexported fields
}

func NewMysqlImpl

func NewMysqlImpl(database, username, password string) *MysqlImpl

func (*MysqlImpl) Build

func (receiver *MysqlImpl) Build() error

func (*MysqlImpl) Config

func (receiver *MysqlImpl) Config() testing.DatabaseConfig

func (*MysqlImpl) Fresh

func (receiver *MysqlImpl) Fresh() error

func (*MysqlImpl) Image

func (receiver *MysqlImpl) Image(image testing.Image)

func (*MysqlImpl) Name

func (receiver *MysqlImpl) Name() orm.Driver

func (*MysqlImpl) Stop

func (receiver *MysqlImpl) Stop() error

type PostgresImpl

type PostgresImpl struct {
	// contains filtered or unexported fields
}

func NewPostgresImpl

func NewPostgresImpl(database, username, password string) *PostgresImpl

func (*PostgresImpl) Build

func (receiver *PostgresImpl) Build() error

func (*PostgresImpl) Config

func (receiver *PostgresImpl) Config() testing.DatabaseConfig

func (*PostgresImpl) Fresh

func (receiver *PostgresImpl) Fresh() error

func (*PostgresImpl) Image

func (receiver *PostgresImpl) Image(image testing.Image)

func (*PostgresImpl) Name

func (receiver *PostgresImpl) Name() orm.Driver

func (*PostgresImpl) Stop

func (receiver *PostgresImpl) Stop() error

type Redis

type Redis struct {
	// contains filtered or unexported fields
}

func NewRedis

func NewRedis() *Redis

func (*Redis) Build

func (receiver *Redis) Build() error

func (*Redis) Config

func (receiver *Redis) Config() RedisConfig

func (*Redis) Stop

func (receiver *Redis) Stop() error

type RedisConfig

type RedisConfig struct {
	Port int
}

type SqliteImpl

type SqliteImpl struct {
	// contains filtered or unexported fields
}

func NewSqliteImpl

func NewSqliteImpl(database string) *SqliteImpl

func (*SqliteImpl) Build

func (receiver *SqliteImpl) Build() error

func (*SqliteImpl) Config

func (receiver *SqliteImpl) Config() testing.DatabaseConfig

func (*SqliteImpl) Fresh

func (receiver *SqliteImpl) Fresh() error

func (*SqliteImpl) Image

func (receiver *SqliteImpl) Image(image testing.Image)

func (*SqliteImpl) Name

func (receiver *SqliteImpl) Name() orm.Driver

func (*SqliteImpl) Stop

func (receiver *SqliteImpl) Stop() error

type SqlserverImpl

type SqlserverImpl struct {
	// contains filtered or unexported fields
}

func NewSqlserverImpl

func NewSqlserverImpl(database, username, password string) *SqlserverImpl

func (*SqlserverImpl) Build

func (receiver *SqlserverImpl) Build() error

func (*SqlserverImpl) Config

func (receiver *SqlserverImpl) Config() testing.DatabaseConfig

func (*SqlserverImpl) Fresh

func (receiver *SqlserverImpl) Fresh() error

func (*SqlserverImpl) Image

func (receiver *SqlserverImpl) Image(image testing.Image)

func (*SqlserverImpl) Name

func (receiver *SqlserverImpl) Name() orm.Driver

func (*SqlserverImpl) Stop

func (receiver *SqlserverImpl) Stop() error

Jump to

Keyboard shortcuts

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