Documentation ¶
Index ¶
- Constants
- func CleanupNFTables()
- func DeleteNFTElements(elements []*knftables.Element) error
- func GetNFTablesHelper() (knftables.Interface, error)
- func MatchNFTRules(expected, actual string) error
- func SetFakeNFTablesHelper() *knftables.Fake
- func UpdateNFTElements(elements []*knftables.Element) error
Constants ¶
const OVNKubernetesNFTablesName = "ovn-kubernetes"
Variables ¶
This section is empty.
Functions ¶
func CleanupNFTables ¶
func CleanupNFTables()
CleanupNFTables cleans up all ovn-kubernetes NFTables data, on ovnkube-node daemonset deletion.
func DeleteNFTElements ¶
DeleteNFTElements deletes the given nftables set/map elements. The set or map must exist, but if the elements aren't already in the set/map, no error is returned.
func GetNFTablesHelper ¶
GetNFTablesHelper returns a knftables.Interface. If SetFakeNFTablesHelper has not been called, it will create a "real" knftables.Interface
func MatchNFTRules ¶
MatchNFTRules checks that the expected nftables rules match the actual ones, ignoring order.
func SetFakeNFTablesHelper ¶
SetFakeNFTablesHelper creates a fake knftables.Interface
func UpdateNFTElements ¶
UpdateNFTElements adds/updates the given nftables set/map elements. The set or map must already exist.
Types ¶
This section is empty.