Help us shape the future of Go! Take the 2026 Go Developer Survey

fake

package
v1.20.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
}

func NewManager

func NewManager() *Manager

NewManager returns a new fake IptablesManager

func (*Manager) AddNoTrackHostPorts

func (m *Manager) AddNoTrackHostPorts(namespace, name string, ports []string)

func (*Manager) GetProxyPorts

func (m *Manager) GetProxyPorts() map[string]uint16

func (*Manager) InstallNoTrackRules

func (m *Manager) InstallNoTrackRules(ip netip.Addr, port uint16)

func (*Manager) InstallProxyRules

func (f *Manager) InstallProxyRules(uint16, string)

func (*Manager) RemoveNoTrackHostPorts

func (m *Manager) RemoveNoTrackHostPorts(namespace, name string)

func (*Manager) RemoveNoTrackRules

func (m *Manager) RemoveNoTrackRules(ip netip.Addr, port uint16)

func (*Manager) SupportsOriginalSourceAddr

func (f *Manager) SupportsOriginalSourceAddr() bool

Jump to

Keyboard shortcuts

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