Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NftablesClient ¶
type NftablesClient struct {
// contains filtered or unexported fields
}
NftablesClient is a client for nftables.
func NewNftablesClient ¶
func NewNftablesClient(bridgeName string) (*NftablesClient, error)
NewNftablesClient returns a new NftablesClient.
func (*NftablesClient) DeleteForwardingRules ¶
func (c *NftablesClient) DeleteForwardingRules() error
DeleteForwardingRules deletes the forwarding rules.
func (*NftablesClient) InstallForwardingRules ¶
func (c *NftablesClient) InstallForwardingRules() error
InstallForwardingRules installs the forwarding rules.
func (*NftablesClient) Name ¶
func (*NftablesClient) Name() string
Name returns the name of the firewall client.
Click to show internal directories.
Click to hide internal directories.