Versions in this module Expand all Collapse all v0 v0.12.0 Jul 28, 2026 Changes in this version + var ErrNoBackend = errors.New("no firewall backend available (nft or iptables)") + type Backend string + const BackendIPTables + const BackendNFTables + const BackendUnavailable + func Detect(ctx context.Context) Backend + type Manager interface + Apply func(ctx context.Context, rule Rule) error + Backend func() Backend + Close func() error + List func(ctx context.Context) ([]Rule, error) + Reload func(ctx context.Context) error + Remove func(ctx context.Context, rule Rule) error + func Open(ctx context.Context, opts Options) (Manager, error) + type Options struct + Family string + IPv6 bool + Preferred Backend + TableName string + type Rule struct + ContainerID string + ContainerIP string + ContainerPort uint16 + HostIP string + HostPort uint16 + Protocol string