Documentation ¶
Index ¶
- func CheckNameAvailability(ctx context.Context, creds config.Credentials, serverName string) (result sql.CheckNameAvailabilityResponse, err error)
- func NewSecret(serverName string) (map[string][]byte, error)
- type AzureSqlServerManager
- func (m *AzureSqlServerManager) CreateOrUpdateSQLServer(ctx context.Context, subscriptionID string, resourceGroupName string, ...) (pollingURL string, result sql.Server, err error)
- func (s *AzureSqlServerManager) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (m *AzureSqlServerManager) DeleteSQLServer(ctx context.Context, subscriptionID string, resourceGroupName string, ...) (result autorest.Response, err error)
- func (s *AzureSqlServerManager) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (s *AzureSqlServerManager) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
- func (m *AzureSqlServerManager) GetServer(ctx context.Context, subscriptionID string, resourceGroupName string, ...) (result sql.Server, err error)
- func (g *AzureSqlServerManager) GetStatus(obj runtime.Object) (*v1alpha1.ASOStatus, error)
- type SqlServerManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckNameAvailability ¶
func CheckNameAvailability(ctx context.Context, creds config.Credentials, serverName string) (result sql.CheckNameAvailabilityResponse, err error)
Types ¶
type AzureSqlServerManager ¶
type AzureSqlServerManager struct { Creds config.Credentials SecretClient secrets.SecretClient Scheme *runtime.Scheme }
func NewAzureSqlServerManager ¶
func NewAzureSqlServerManager(creds config.Credentials, secretClient secrets.SecretClient, scheme *runtime.Scheme) *AzureSqlServerManager
func (*AzureSqlServerManager) CreateOrUpdateSQLServer ¶
func (m *AzureSqlServerManager) CreateOrUpdateSQLServer( ctx context.Context, subscriptionID string, resourceGroupName string, location string, serverName string, tags map[string]*string, properties azuresqlshared.SQLServerProperties, forceUpdate bool, ) (pollingURL string, result sql.Server, err error)
CreateOrUpdateSQLServer creates a SQL server in Azure
func (*AzureSqlServerManager) Delete ¶
func (s *AzureSqlServerManager) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
Delete handles idempotent deletion of a sql server
func (*AzureSqlServerManager) DeleteSQLServer ¶
func (m *AzureSqlServerManager) DeleteSQLServer(ctx context.Context, subscriptionID string, resourceGroupName string, serverName string) (result autorest.Response, err error)
DeleteSQLServer deletes a SQL server
func (*AzureSqlServerManager) Ensure ¶
func (s *AzureSqlServerManager) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
Ensure creates an AzureSqlServer
func (*AzureSqlServerManager) GetParents ¶
func (s *AzureSqlServerManager) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
GetParents returns the parents of AzureSqlDatabase
type SqlServerManager ¶
type SqlServerManager interface { CreateOrUpdateSQLServer(ctx context.Context, resourceGroupName string, location string, serverName string, tags map[string]*string, properties azuresqlshared.SQLServerProperties, forceUpdate bool) (pollingURL string, result sql.Server, err error) DeleteSQLServer(ctx context.Context, resourceGroupName string, serverName string) (result autorest.Response, err error) GetServer(ctx context.Context, resourceGroupName string, serverName string) (result sql.Server, err error) resourcemanager.ARMClient }
Click to show internal directories.
Click to hide internal directories.