Versions in this module Expand all Collapse all v1 v1.0.1 Jun 25, 2024 Changes in this version + const LockfilePath14x + const LockfilePath16x + const WaitIntervalString + const WaitIntervalUsecondsValue + const WaitSecondsValue + const WaitString + var MinCheckVersion = utilversion.MustParseGeneric("1.4.11") + var RandomFullyMinVersion = utilversion.MustParseGeneric("1.6.2") + var WaitIntervalMinVersion = utilversion.MustParseGeneric("1.6.1") + var WaitMinVersion = utilversion.MustParseGeneric("1.4.20") + var WaitRestoreMinVersion = utilversion.MustParseGeneric("1.6.2") + var WaitSecondsMinVersion = utilversion.MustParseGeneric("1.4.22") + func IsNotFoundError(err error) bool + func MakeChainLine(chain Chain) string + type Chain string + const ChainForward + const ChainInput + const ChainOutput + const ChainPostrouting + const ChainPrerouting + type FlushFlag bool + const FlushTables + const NoFlushTables + type Interface interface + ChainExists func(table Table, chain Chain) (bool, error) + DeleteChain func(table Table, chain Chain) error + DeleteRule func(table Table, chain Chain, args ...string) error + EnsureChain func(table Table, chain Chain) (bool, error) + EnsureRule func(position RulePosition, table Table, chain Chain, args ...string) (bool, error) + FlushChain func(table Table, chain Chain) error + HasRandomFully func() bool + IsIPv6 func() bool + Monitor func(canary Chain, tables []Table, reloadFunc func(), interval time.Duration, ...) + Present func() bool + Protocol func() Protocol + Restore func(table Table, data []byte, flush FlushFlag, counters RestoreCountersFlag) error + RestoreAll func(data []byte, flush FlushFlag, counters RestoreCountersFlag) error + SaveInto func(table Table, buffer *bytes.Buffer) error + func New(exec utilexec.Interface, protocol Protocol) Interface + type LineData struct + Data string + Line int + func ExtractLines(lines []byte, line, count int) []LineData + type ParseError interface + Error func() string + Line func() int + type Protocol string + const ProtocolIPv4 + const ProtocolIPv6 + type RestoreCountersFlag bool + const NoRestoreCounters + const RestoreCounters + type RulePosition string + const Append + const Prepend + type Table string + const TableFilter + const TableMangle + const TableNAT