Documentation
¶
Index ¶
- Variables
- func AddInterface(iface Interface) error
- func AddPolicy(policy Policy) error
- func AddRule(rule Rule) error
- func AddSnat(snat Snat) error
- func AddZone(zone Zone) error
- func GetVersion() (string, error)
- func Reload() error
- func RemoveInterfaceByZone(zone string) error
- func RemovePolicy(policy Policy) error
- func RemoveRule(rule Rule) error
- func RemoveSnat(snat Snat) error
- func RemoveZone(zoneName string) error
- type Interface
- type Policy
- type Rule
- type Snat
- type Zone
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInterfaceAlreadyExists = errors.New("interface already exists") ErrInterfaceNotFound = errors.New("interface not found") )
View Source
var ( ErrPolicyAlreadyExists = errors.New("policy already exists") ErrPolicyNotFound = errors.New("policy not found") )
View Source
var ( ErrRuleAlreadyExists = errors.New("rule already exists") ErrRuleNotFound = errors.New("rule not found") )
View Source
var ( ErrSnatAlreadyExists = errors.New("snat rule already exists") ErrSnatNotFound = errors.New("snat rule not found") )
View Source
var ( ErrZoneAlreadyExists = errors.New("zone already exists") ErrZoneNotFound = errors.New("zone not found") )
Functions ¶
func AddInterface ¶
func GetVersion ¶
func RemoveInterfaceByZone ¶
func RemovePolicy ¶
func RemoveRule ¶
func RemoveSnat ¶
func RemoveZone ¶
Types ¶
type Interface ¶
func GetInterfaces ¶
type Policy ¶
func GetPolicies ¶
type Rule ¶
Click to show internal directories.
Click to hide internal directories.