Versions in this module Expand all Collapse all v0 v0.1.0 Sep 13, 2023 Changes in this version + type Config struct + DatabaseName string + Host string + Password string + Port int + User string + func NewConfig(host string, port int, user, pass, dbname, usersHostname string) *Config + func (c *Config) ConnString() (string, error) + func (c *Config) UsersHostname() string + type Mysql struct + func NewMysql(conn connection.Connection, config *Config, logger logr.Logger) *Mysql + func (m *Mysql) ApplyPrivileges(ctx context.Context, username string, privileges []v1alpha1.PrivilegeSpec) error + func (m *Mysql) Close(ctx context.Context) error + func (m *Mysql) Connect(ctx context.Context) error + func (m *Mysql) CreateUser(ctx context.Context, username, password string) (map[string]string, error) + func (m *Mysql) DeleteUser(ctx context.Context, username string) error + func (m *Mysql) RevokePrivileges(ctx context.Context, username string, privileges []v1alpha1.PrivilegeSpec) error