Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPMasqAgent ¶
type IPMasqAgent struct {
// contains filtered or unexported fields
}
IPMasqAgent represents a state of the ip-masq-agent
func NewIPMasqAgent ¶
func NewIPMasqAgent(logger *slog.Logger, configPath string, ipMasqMap IPMasqMap) *IPMasqAgent
func (*IPMasqAgent) NonMasqCIDRsFromConfig ¶ added in v1.19.0
func (a *IPMasqAgent) NonMasqCIDRsFromConfig() []netip.Prefix
func (*IPMasqAgent) Start ¶
func (a *IPMasqAgent) Start() error
Start starts the ip-masq-agent goroutine which tracks the config file and updates the BPF map accordingly.
func (*IPMasqAgent) Stop ¶
func (a *IPMasqAgent) Stop()
Stop stops the ip-masq-agent goroutine and the watcher.
func (*IPMasqAgent) Update ¶
func (a *IPMasqAgent) Update() error
Click to show internal directories.
Click to hide internal directories.