Documentation ¶
Index ¶
- type Config
- type 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Host string Port int User string Password string DatabaseName string // contains filtered or unexported fields }
func (*Config) ConnString ¶
func (*Config) UsersHostname ¶
type Mysql ¶
type Mysql struct {
// contains filtered or unexported fields
}
func NewMysql ¶
func NewMysql(conn connection.Connection, config *Config, logger logr.Logger) *Mysql
func (*Mysql) ApplyPrivileges ¶
func (*Mysql) CreateUser ¶
func (*Mysql) RevokePrivileges ¶
Click to show internal directories.
Click to hide internal directories.