Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadPingStatus ¶
func LoadPingStatus() string
func UpdatePingStatus ¶
Types ¶
type FilterClient ¶
type FilterClient interface {
Name() string // ufw firewalld iptables
Start() error
Stop() error
Restart() error
Reload() error
Status() (bool, error)
Version() (string, error)
ListPort() ([]client.FireInfo, error)
ListAddress() ([]client.FireInfo, error)
Port(port client.FireInfo, operation string) error
RichRules(rule client.FireInfo, operation string) error
}
FilterClient is the filter capability surface; port forwarding lives in its own adapter and is no longer reachable from here.
func NewFirewallClient ¶
func NewFirewallClient() (FilterClient, error)
Click to show internal directories.
Click to hide internal directories.