Documentation ¶
Index ¶
- func CreateOrUpdateFirewallRule(ctx context.Context, fwrClient pg.FirewallRulesClient, ...) error
- func CreateServer(ctx context.Context, serversClient pg.ServersClient, serverName string, ...) (server pg.Server, err error)
- func DeleteServer(ctx context.Context, serversClient pg.ServersClient, serverName string) (resp autorest.Response, err error)
- func GetConfiguration(ctx context.Context, configClient pg.ConfigurationsClient, serverName string, ...) (pg.Configuration, error)
- func GetConfigurationsClient() pg.ConfigurationsClient
- func GetFwRulesClient() pg.FirewallRulesClient
- func GetServersClient() pg.ServersClient
- func UpdateConfiguration(ctx context.Context, configClient pg.ConfigurationsClient, serverName string, ...) (updatedConfig pg.Configuration, err error)
- func UpdateServerStorageCapacity(ctx context.Context, serversClient pg.ServersClient, serverName string, ...) (server pg.Server, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrUpdateFirewallRule ¶
func CreateOrUpdateFirewallRule(ctx context.Context, fwrClient pg.FirewallRulesClient, serverName, firewallRuleName, startIPAddr, endIPAddr string) error
CreateOrUpdateFirewallRule given the firewallname and new properties it updates the firewall rule.
func CreateServer ¶
func CreateServer(ctx context.Context, serversClient pg.ServersClient, serverName string, dbLogin string, dbPassword string) (server pg.Server, err error)
CreateServer creates a new PostgreSQL Server
func DeleteServer ¶
func DeleteServer(ctx context.Context, serversClient pg.ServersClient, serverName string) (resp autorest.Response, err error)
DeleteServer deletes the PostgreSQL server.
func GetConfiguration ¶
func GetConfiguration(ctx context.Context, configClient pg.ConfigurationsClient, serverName string, configurationName string) (pg.Configuration, error)
GetConfiguration given the server name and configuration name it returns the configuration.
func GetConfigurationsClient ¶
func GetConfigurationsClient() pg.ConfigurationsClient
GetConfigurationsClient creates and returns the configuration client for the server.
func GetFwRulesClient ¶
func GetFwRulesClient() pg.FirewallRulesClient
GetFwRulesClient returns the FirewallClient
func UpdateConfiguration ¶
func UpdateConfiguration(ctx context.Context, configClient pg.ConfigurationsClient, serverName string, configurationName string, configuration pg.Configuration) (updatedConfig pg.Configuration, err error)
UpdateConfiguration given the name of the configuation and the configuration object it updates the configuration for the given server.
func UpdateServerStorageCapacity ¶
func UpdateServerStorageCapacity(ctx context.Context, serversClient pg.ServersClient, serverName string, storageCapacity int32) (server pg.Server, err error)
UpdateServerStorageCapacity given the server name and the new storage capacity it updates the server's storage capacity.
Types ¶
This section is empty.