azuresqlserver

package
v0.0.0-...-d6384ac Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

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)

func NewSecret

func NewSecret(serverName string) (map[string][]byte, error)

NewSecret generates a new sqlserver secret

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

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

Ensure creates an AzureSqlServer

func (*AzureSqlServerManager) GetParents

GetParents returns the parents of AzureSqlDatabase

func (*AzureSqlServerManager) GetServer

func (m *AzureSqlServerManager) GetServer(ctx context.Context, subscriptionID string, resourceGroupName string, serverName string) (result sql.Server, err error)

GetServer returns a SQL server

func (*AzureSqlServerManager) GetStatus

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
}

Jump to

Keyboard shortcuts

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