Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API provides the firewallrules facade APIs for v1.
func NewAPI ¶
func NewAPI( backend Backend, authorizer facade.Authorizer, blockChecker BlockChecker, ) (*API, error)
NewAPI returns a new firewallrules API facade.
func (*API) ListFirewallRules ¶
func (api *API) ListFirewallRules() (params.ListFirewallRulesResults, error)
ListFirewallRules returns all the firewall rules.
func (*API) SetFirewallRules ¶
func (api *API) SetFirewallRules(args params.FirewallRuleArgs) (params.ErrorResults, error)
SetFirewallRules creates or updates the specified firewall rules.
type Backend ¶
type Backend interface { ModelTag() names.ModelTag SaveFirewallRule(state.FirewallRule) error ListFirewallRules() ([]*state.FirewallRule, error) }
Backend defines the state functionality required by the firewallrules facade. For details on the methods, see the methods on state.State with the same names.
type BlockChecker ¶
type BlockChecker interface {
ChangeAllowed() error
}
BlockChecker defines the block-checking functionality required by the firewallrules facade. This is implemented by apiserver/common.BlockChecker.
Click to show internal directories.
Click to hide internal directories.