nftables

package
v0.0.0-...-c6fb7fd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

func DeleteNFTElements(elements []*knftables.Element) error

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

func GetNFTablesHelper() (knftables.Interface, error)

GetNFTablesHelper returns a knftables.Interface. If SetFakeNFTablesHelper has not been called, it will create a "real" knftables.Interface

func MatchNFTRules

func MatchNFTRules(expected, actual string) error

MatchNFTRules checks that the expected nftables rules match the actual ones, ignoring order.

func SetFakeNFTablesHelper

func SetFakeNFTablesHelper() *knftables.Fake

SetFakeNFTablesHelper creates a fake knftables.Interface

func UpdateNFTElements

func UpdateNFTElements(elements []*knftables.Element) error

UpdateNFTElements adds/updates the given nftables set/map elements. The set or map must already exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL