database

package
v0.0.0-...-4354d50 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 11 Imported by: 2

Documentation

Index

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 (m *MySQLDatabaseClient) CheckDatabaseNameAvailability(ctx context.Context, databasename string) (bool, error)

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 (*MySQLDatabaseClient) DeleteDatabase

func (m *MySQLDatabaseClient) DeleteDatabase(ctx context.Context, databasename string, servername string, resourcegroup string) (status string, err error)

func (*MySQLDatabaseClient) Ensure

func (*MySQLDatabaseClient) GetDatabase

func (m *MySQLDatabaseClient) GetDatabase(ctx context.Context, resourcegroup string, servername string, databasename string) (db mysql.Database, err error)

func (*MySQLDatabaseClient) GetParents

func (*MySQLDatabaseClient) GetStatus

func (m *MySQLDatabaseClient) GetStatus(obj runtime.Object) (*v1alpha1.ASOStatus, 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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL