package nft
import "github.com/Kajmany/rapidrule/nft"
Interface to nft system utility - unlike other execs that could be more portable our app should use this interface which is also made to be scriptable
Index
- func EnsureDisabled() tea.Cmd
- func EnsureEnabled() tea.Cmd
- func WriteRule(ruleset string) tea.Cmd
- type NFTErr
- type NFTMsg
Functions
func EnsureDisabled
func EnsureDisabled() tea.Cmd
EnsureDisabled removes the include line from nftables.conf
func EnsureEnabled
func EnsureEnabled() tea.Cmd
EnsureEnabled makes sure the include line exists in nftables.conf the systemd unit is responsible for actually loading this in
func WriteRule
func WriteRule(ruleset string) tea.Cmd
WriteRule writes the ruleset to the include file and loads it
Types
type NFTErr
type NFTErr struct { Err error }
type NFTMsg
type NFTMsg struct { // TODO: What else matters here? v0v we'll find out Changed bool Output string }