azuresqlaction

package
v0.0.0-...-08b58c2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureSqlActionManager

type AzureSqlActionManager struct {
	Creds        config.Credentials
	SecretClient secrets.SecretClient
	Scheme       *runtime.Scheme
}

func NewAzureSqlActionManager

func NewAzureSqlActionManager(creds config.Credentials, secretClient secrets.SecretClient, scheme *runtime.Scheme) *AzureSqlActionManager

func (*AzureSqlActionManager) Delete

Delete removes an AzureSqlAction

func (*AzureSqlActionManager) Ensure

Ensure creates an AzureSqlAction

func (*AzureSqlActionManager) GetParents

GetParents returns the parents of AzureSqlAction

func (*AzureSqlActionManager) GetStatus

GetStatus gets the Status object of the AzureSqlAction instance

func (*AzureSqlActionManager) UpdateAdminPassword

func (s *AzureSqlActionManager) UpdateAdminPassword(
	ctx context.Context,
	subscriptionID string,
	groupName string,
	serverName string,
	secretKey secrets.SecretKey,
	secretClient secrets.SecretClient,
) error

UpdateAdminPassword gets the server instance from Azure, updates the admin password for the server and stores the new password in the secret

func (*AzureSqlActionManager) UpdateUserPassword

func (s *AzureSqlActionManager) UpdateUserPassword(
	ctx context.Context,
	groupName string,
	serverName string,
	dbUser string,
	dbName string,
	adminSecretKey secrets.SecretKey,
	adminSecretClient secrets.SecretClient,
	userSecretClient secrets.SecretClient) error

type SqlActionManager

type SqlActionManager interface {
	UpdateAdminPassword(ctx context.Context, groupName string, serverName string, secretKey types.NamespacedName, secretClient secrets.SecretClient) error
	resourcemanager.ARMClient
}

Jump to

Keyboard shortcuts

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