Documentation ¶
Index ¶
- Constants
- Variables
- func Connect(port, retryCount int) (*sqlx.DB, error)
- func CreateNetwork() error
- func InitializeMySQL(port int) error
- func InitializeMySQLAsExternalDonor(port int) error
- func PrepareTestData(port int) error
- func RemoveNetwork() error
- func ResetMaster(port int) error
- func SetValidDonorList(port int, donorHost string, donorPort int) error
- func StartMySQLD(name string, port int, serverID int) error
- func StartSlaveWithInvalidSettings(port int) error
- func StopAndRemoveMySQLD(name string) error
Constants ¶
View Source
const ( Host = "localhost" RootUser = "root" RootUserPassword = "rootpassword" // Dummy user and password for clone from external. ExternalDonorUser = "external-donor-user" ExternalDonorUserPassword = "externaldonorpassword" ExternalInitUser = "external-init-user" ExternalInitUserPassword = "externalinitpassword" // Dummy password for MySQL users which are managed by MOCO. OperatorUserPassword = "userpassword" OperatorAdminUserPassword = "adminpassword" ReplicationUserPassword = "replpassword" CloneDonorUserPassword = "clonepassword" MiscUserPassword = "miscpassword" )
Variables ¶
View Source
var MySQLVersion = os.Getenv("MYSQL_VERSION")
Functions ¶
func CreateNetwork ¶
func CreateNetwork() error
func InitializeMySQL ¶
func InitializeMySQLAsExternalDonor ¶ added in v0.4.0
func PrepareTestData ¶
func RemoveNetwork ¶
func RemoveNetwork() error
func ResetMaster ¶
func StopAndRemoveMySQLD ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.