Documentation ¶
Index ¶
Constants ¶
View Source
const ( MySQLUsername = "root" MySQLPassword = "root" PostgresUsername = "docker" // set up by the dockerfile of postgresImage PostgresPassword = "docker" // set up by the dockerfile of postgresImage )
Variables ¶
This section is empty.
Functions ¶
func KillContainer ¶
Types ¶
type ContainerID ¶
type ContainerID string
func StartMongoContainer ¶ added in v0.4.0
func StartMongoContainer() (c ContainerID, ip string)
StartMongoContainer
func StartMySQLContainer ¶ added in v0.4.0
func StartMySQLContainer(dbname string) (c ContainerID, ip string)
StartMySQLContainer sets up a real MySQL instance for testing purposes,
func StartPostgreSQLContainer ¶ added in v0.4.0
func StartPostgreSQLContainer(dbname string) (c ContainerID, ip string)
StartPostgreSQLContainer sets up a real PostgreSQL instance for testing purposes,
func (ContainerID) IP ¶
func (c ContainerID) IP() (string, error)
func (ContainerID) Kill ¶
func (c ContainerID) Kill() error
func (ContainerID) KillRemove ¶
func (c ContainerID) KillRemove()
KillRemove calls Kill on the container, and then Remove if there was no error. It logs any error to t.
func (ContainerID) Remove ¶
func (c ContainerID) Remove() error
Remove runs "docker rm" on the container
Click to show internal directories.
Click to hide internal directories.