Documentation ¶
Index ¶
- type AzureSqlDbManager
- func (m *AzureSqlDbManager) AddLongTermRetention(ctx context.Context, subscriptionID string, resourceGroupName string, ...) (*sql.BackupLongTermRetentionPoliciesCreateOrUpdateFuture, error)
- func (m *AzureSqlDbManager) AddShortTermRetention(ctx context.Context, subscriptionID string, resourceGroupName string, ...) (*sql.BackupShortTermRetentionPoliciesCreateOrUpdateFuture, error)
- func (m *AzureSqlDbManager) CreateOrUpdateDB(ctx context.Context, subscriptionID string, resourceGroupName string, ...) (string, *sql.Database, error)
- func (db *AzureSqlDbManager) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (m *AzureSqlDbManager) DeleteDB(ctx context.Context, subscriptionID string, resourceGroupName string, ...) (future *sql.DatabasesDeleteFuture, err error)
- func (db *AzureSqlDbManager) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (m *AzureSqlDbManager) GetDB(ctx context.Context, subscriptionID string, resourceGroupName string, ...) (sql.Database, error)
- func (db *AzureSqlDbManager) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
- func (m *AzureSqlDbManager) GetServer(ctx context.Context, subscriptionID string, resourceGroupName string, ...) (result sql.Server, err error)
- func (g *AzureSqlDbManager) GetStatus(obj runtime.Object) (*azurev1alpha1.ASOStatus, error)
- type SqlDbManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureSqlDbManager ¶
type AzureSqlDbManager struct {
// contains filtered or unexported fields
}
func NewAzureSqlDbManager ¶
func NewAzureSqlDbManager(creds config.Credentials) *AzureSqlDbManager
func (*AzureSqlDbManager) AddLongTermRetention ¶
func (m *AzureSqlDbManager) AddLongTermRetention( ctx context.Context, subscriptionID string, resourceGroupName string, serverName string, databaseName string, policy azuresqlshared.SQLDatabaseBackupLongTermRetentionPolicy) (*sql.BackupLongTermRetentionPoliciesCreateOrUpdateFuture, error)
AddLongTermRetention enables / disables long term retention
func (*AzureSqlDbManager) AddShortTermRetention ¶
func (m *AzureSqlDbManager) AddShortTermRetention( ctx context.Context, subscriptionID string, resourceGroupName string, serverName string, databaseName string, policy *v1beta1.SQLDatabaseShortTermRetentionPolicy) (*sql.BackupShortTermRetentionPoliciesCreateOrUpdateFuture, error)
func (*AzureSqlDbManager) CreateOrUpdateDB ¶
func (m *AzureSqlDbManager) CreateOrUpdateDB( ctx context.Context, subscriptionID string, resourceGroupName string, location string, serverName string, tags map[string]*string, properties azuresqlshared.SQLDatabaseProperties) (string, *sql.Database, error)
CreateOrUpdateDB creates or updates a DB in Azure
func (*AzureSqlDbManager) Delete ¶
func (db *AzureSqlDbManager) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
Delete drops a AzureSqlDb
func (*AzureSqlDbManager) DeleteDB ¶
func (m *AzureSqlDbManager) DeleteDB( ctx context.Context, subscriptionID string, resourceGroupName string, serverName string, databaseName string) (future *sql.DatabasesDeleteFuture, err error)
DeleteDB deletes a DB
func (*AzureSqlDbManager) Ensure ¶
func (db *AzureSqlDbManager) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
Ensure creates an AzureSqlDb
func (*AzureSqlDbManager) GetDB ¶
func (m *AzureSqlDbManager) GetDB(ctx context.Context, subscriptionID string, resourceGroupName string, serverName string, databaseName string) (sql.Database, error)
GetDB retrieves a database
func (*AzureSqlDbManager) GetParents ¶
func (db *AzureSqlDbManager) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
GetParents returns the parents of AzureSqlDatabase
func (*AzureSqlDbManager) GetServer ¶
func (m *AzureSqlDbManager) GetServer(ctx context.Context, subscriptionID string, resourceGroupName string, serverName string) (result sql.Server, err error)
GetServer returns a SQL server
func (*AzureSqlDbManager) GetStatus ¶
func (g *AzureSqlDbManager) GetStatus(obj runtime.Object) (*azurev1alpha1.ASOStatus, error)
type SqlDbManager ¶
type SqlDbManager interface { CreateOrUpdateDB(ctx context.Context, subscriptionID string, resourceGroupName string, location string, serverName string, tags map[string]*string, properties azuresqlshared.SQLDatabaseProperties) (pollingUrl string, db *sql.Database, err error) DeleteDB(ctx context.Context, subscriptionID string, resourceGroupName string, serverName string, databaseName string) (future *sql.DatabasesDeleteFuture, err error) GetDB(ctx context.Context, subscriptionID string, resourceGroupName string, serverName string, databaseName string) (sql.Database, error) GetServer(ctx context.Context, subscriptionID string, resourceGroupName string, serverName string) (result sql.Server, err error) AddLongTermRetention(ctx context.Context, subscriptionID string, resourceGroupName string, serverName string, databaseName string, policy azuresqlshared.SQLDatabaseBackupLongTermRetentionPolicy) (*sql.BackupLongTermRetentionPoliciesCreateOrUpdateFuture, error) resourcemanager.ARMClient }
SqlDbManager is the client for the resource manager for SQL databases
Click to show internal directories.
Click to hide internal directories.