exec

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyConfig

func ApplyConfig(ctx context.Context, c *nftconfig.Config) error

ApplyConfig applies the given nftables config on the system. The system is expected to have the `nft` executable deployed and nftables enabled in the kernel.

func ApplyConfigEcho added in v0.4.0

func ApplyConfigEcho(ctx context.Context, c *nftconfig.Config) (*nftconfig.Config, error)

ApplyConfigEcho applies the given nftables config on the system, echoing back the added elements with their assigned handles The system is expected to have the `nft` executable deployed and nftables enabled in the kernel.

func ReadConfig

func ReadConfig(ctx context.Context, filterCommands ...string) (*nftconfig.Config, error)

ReadConfig loads the nftables configuration from the system and returns it as a nftables config structure. The system is expected to have the `nft` executable deployed and nftables enabled in the kernel.

Types

This section is empty.

Jump to

Keyboard shortcuts

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