Documentation ¶
Index ¶
- type AzureSqlFirewallRuleManager
- func (m *AzureSqlFirewallRuleManager) CreateOrUpdateSQLFirewallRule(ctx context.Context, subscriptionID string, resourceGroupName string, ...) (result bool, err error)
- func (fw *AzureSqlFirewallRuleManager) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (m *AzureSqlFirewallRuleManager) DeleteSQLFirewallRule(ctx context.Context, subscriptionID string, resourceGroupName string, ...) (err error)
- func (fw *AzureSqlFirewallRuleManager) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (fw *AzureSqlFirewallRuleManager) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
- func (m *AzureSqlFirewallRuleManager) GetSQLFirewallRule(ctx context.Context, subscriptionID string, resourceGroupName string, ...) (result sql.FirewallRule, err error)
- func (m *AzureSqlFirewallRuleManager) GetServer(ctx context.Context, subscriptionID string, resourceGroupName string, ...) (result sql.Server, err error)
- func (g *AzureSqlFirewallRuleManager) GetStatus(obj runtime.Object) (*azurev1alpha1.ASOStatus, error)
- type SqlFirewallRuleManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureSqlFirewallRuleManager ¶
type AzureSqlFirewallRuleManager struct {
// contains filtered or unexported fields
}
func NewAzureSqlFirewallRuleManager ¶
func NewAzureSqlFirewallRuleManager(creds config.Credentials) *AzureSqlFirewallRuleManager
func (*AzureSqlFirewallRuleManager) CreateOrUpdateSQLFirewallRule ¶
func (m *AzureSqlFirewallRuleManager) CreateOrUpdateSQLFirewallRule( ctx context.Context, subscriptionID string, resourceGroupName string, serverName string, ruleName string, startIP string, endIP string, ) (result bool, err error)
CreateOrUpdateSQLFirewallRule creates or updates a firewall rule based on code from: https://github.com/Azure-Samples/azure-m-for-go-samples/blob/master/sql/sql.go#L111 to allow allow Azure services to connect example: https://docs.microsoft.com/en-us/azure/sql-database/sql-database-firewall-configure#manage-firewall-rules-using-azure-cli
func (*AzureSqlFirewallRuleManager) Delete ¶
func (fw *AzureSqlFirewallRuleManager) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
Delete drops a sqlfirewallrule
func (*AzureSqlFirewallRuleManager) DeleteSQLFirewallRule ¶
func (m *AzureSqlFirewallRuleManager) DeleteSQLFirewallRule(ctx context.Context, subscriptionID string, resourceGroupName string, serverName string, ruleName string) (err error)
DeleteSQLFirewallRule deletes a firewall rule
func (*AzureSqlFirewallRuleManager) Ensure ¶
func (fw *AzureSqlFirewallRuleManager) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
Ensure creates a sqlfirewallrule
func (*AzureSqlFirewallRuleManager) GetParents ¶
func (fw *AzureSqlFirewallRuleManager) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
GetParents returns the parents of sqlfirewallrule
func (*AzureSqlFirewallRuleManager) GetSQLFirewallRule ¶
func (m *AzureSqlFirewallRuleManager) GetSQLFirewallRule(ctx context.Context, subscriptionID string, resourceGroupName string, serverName string, ruleName string) (result sql.FirewallRule, err error)
GetSQLFirewallRule returns a firewall rule
func (*AzureSqlFirewallRuleManager) GetServer ¶
func (m *AzureSqlFirewallRuleManager) GetServer(ctx context.Context, subscriptionID string, resourceGroupName string, serverName string) (result sql.Server, err error)
GetServer returns a SQL server
func (*AzureSqlFirewallRuleManager) GetStatus ¶
func (g *AzureSqlFirewallRuleManager) GetStatus(obj runtime.Object) (*azurev1alpha1.ASOStatus, error)
type SqlFirewallRuleManager ¶
type SqlFirewallRuleManager interface { CreateOrUpdateSQLFirewallRule(ctx context.Context, resourceGroupName string, serverName string, ruleName string, startIP string, endIP string) (result bool, err error) DeleteSQLFirewallRule(ctx context.Context, resourceGroupName string, serverName string, ruleName string) (err error) GetSQLFirewallRule(ctx context.Context, resourceGroupName string, serverName string, ruleName string) (result sql.FirewallRule, 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.