server

package
v0.0.0-...-c112795 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PSQLFirewallRuleClient

type PSQLFirewallRuleClient struct {
	// contains filtered or unexported fields
}

func NewPSQLFirewallRuleClient

func NewPSQLFirewallRuleClient(creds config.Credentials) *PSQLFirewallRuleClient

func (*PSQLFirewallRuleClient) CreateFirewallRule

func (c *PSQLFirewallRuleClient) CreateFirewallRule(ctx context.Context, resourcegroup string, servername string, firewallrulename string, startip string, endip string) (*http.Response, error)

func (*PSQLFirewallRuleClient) Delete

Delete removes a Postgres firewall rule

func (*PSQLFirewallRuleClient) DeleteFirewallRule

func (c *PSQLFirewallRuleClient) DeleteFirewallRule(ctx context.Context, resourcegroup string, servername string, firewallrulename string) (status string, err error)

func (*PSQLFirewallRuleClient) Ensure

Ensure makes sure a Postgres firewall rule exists

func (*PSQLFirewallRuleClient) GetFirewallRule

func (c *PSQLFirewallRuleClient) GetFirewallRule(ctx context.Context, resourcegroup string, servername string, firewallrulename string) (firewall psql.FirewallRule, err error)

func (*PSQLFirewallRuleClient) GetParents

GetParents gets the parents

func (*PSQLFirewallRuleClient) GetStatus

GetStatus retrieves the status

type PostgreSQLFirewallRuleManager

type PostgreSQLFirewallRuleManager interface {
	CreateFirewallRule(ctx context.Context,
		resourcegroup string,
		servername string,
		firewallrulename string,
		startip string,
		endip string) (*http.Response, error)

	GetFirewallRule(ctx context.Context,
		resourcegroup string,
		servername string,
		firewallrulename string) (psql.FirewallRule, error)

	DeleteFirewallRule(ctx context.Context,
		resourcegroup string,
		servername string,
		firewallrulename string) (string, error)

	// also embed async client methods
	resourcemanager.ARMClient
}

Jump to

Keyboard shortcuts

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