Documentation ¶
Index ¶
- type AzureSqlActionManager
- func (s *AzureSqlActionManager) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (s *AzureSqlActionManager) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (s *AzureSqlActionManager) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
- func (g *AzureSqlActionManager) GetStatus(obj runtime.Object) (*v1alpha1.ASOStatus, error)
- func (s *AzureSqlActionManager) UpdateAdminPassword(ctx context.Context, subscriptionID string, groupName string, ...) error
- func (s *AzureSqlActionManager) UpdateUserPassword(ctx context.Context, groupName string, serverName string, dbUser string, ...) error
- type SqlActionManager
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 ¶
func (s *AzureSqlActionManager) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
Delete removes an AzureSqlAction
func (*AzureSqlActionManager) Ensure ¶
func (s *AzureSqlActionManager) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
Ensure creates an AzureSqlAction
func (*AzureSqlActionManager) GetParents ¶
func (s *AzureSqlActionManager) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
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 }
Click to show internal directories.
Click to hide internal directories.