Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	base.ClientFacade
	// contains filtered or unexported fields
}

Client allows access to the firewall rules API end point.

func NewClient

func NewClient(st base.APICallCloser) *Client

NewClient creates a new client for accessing the firewall rules api.

func (*Client) ListFirewallRules

func (c *Client) ListFirewallRules() ([]params.FirewallRule, error)

ListFirewallRules returns all the firewall rules.

func (*Client) SetFirewallRule

func (c *Client) SetFirewallRule(service string, whiteListCidrs []string) error

SetFirewallRule creates or updates a firewall rule.

Source Files