Documentation ¶
Index ¶
- func GetMySQLDatabasesClient(creds config.Credentials) mysql.DatabasesClient
- type MySQLDatabaseClient
- func (m *MySQLDatabaseClient) CheckDatabaseNameAvailability(ctx context.Context, databasename string) (bool, error)
- func (m *MySQLDatabaseClient) CreateDatabaseIfValid(ctx context.Context, databasename string, servername string, ...) (future mysql.DatabasesCreateOrUpdateFuture, err error)
- func (m *MySQLDatabaseClient) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (m *MySQLDatabaseClient) DeleteDatabase(ctx context.Context, databasename string, servername string, ...) (status string, err error)
- func (m *MySQLDatabaseClient) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (m *MySQLDatabaseClient) GetDatabase(ctx context.Context, resourcegroup string, servername string, ...) (db mysql.Database, err error)
- func (m *MySQLDatabaseClient) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
- func (m *MySQLDatabaseClient) GetStatus(obj runtime.Object) (*v1alpha1.ASOStatus, error)
- type MySQLDatabaseManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMySQLDatabasesClient ¶
func GetMySQLDatabasesClient(creds config.Credentials) mysql.DatabasesClient
GetMySQLDatabasesClient return the mysqldatabaseclient
Types ¶
type MySQLDatabaseClient ¶
type MySQLDatabaseClient struct {
// contains filtered or unexported fields
}
MySQLDatabaseClient struct
func NewMySQLDatabaseClient ¶
func NewMySQLDatabaseClient(creds config.Credentials) *MySQLDatabaseClient
NewMySQLDatabaseClient create a new MySQLDatabaseClient
func (*MySQLDatabaseClient) CheckDatabaseNameAvailability ¶
func (*MySQLDatabaseClient) CreateDatabaseIfValid ¶
func (m *MySQLDatabaseClient) CreateDatabaseIfValid(ctx context.Context, databasename string, servername string, resourcegroup string) (future mysql.DatabasesCreateOrUpdateFuture, err error)
func (*MySQLDatabaseClient) Delete ¶
func (m *MySQLDatabaseClient) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
func (*MySQLDatabaseClient) DeleteDatabase ¶
func (*MySQLDatabaseClient) Ensure ¶
func (m *MySQLDatabaseClient) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
func (*MySQLDatabaseClient) GetDatabase ¶
func (*MySQLDatabaseClient) GetParents ¶
func (m *MySQLDatabaseClient) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
type MySQLDatabaseManager ¶
type MySQLDatabaseManager interface { //CheckDatabaseNameAvailability(ctx context.Context, databasename string) (bool, error) CreateDatabaseIfValid(ctx context.Context, databasename string, servername string, resourcegroup string) (mysql.DatabasesCreateOrUpdateFuture, error) DeleteDatabase(ctx context.Context, databasename string, servername string, resourcegroup string) (string, error) GetDatabase(ctx context.Context, resourcegroup string, servername string, database string) (mysql.Database, error) // also embed async client methods resourcemanager.ARMClient }
Click to show internal directories.
Click to hide internal directories.