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

iptm

package
v1.7.21 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewFakeIptOperationShim

func NewFakeIptOperationShim() *fakeIptOperationShim

TODO: we can use this method down the road for testing iptables restore

func NewIptOperationShim

func NewIptOperationShim() *iptOperationShim

Types

type IptEntry

type IptEntry struct {
	Command               string
	Name                  string
	Chain                 string
	Flag                  string
	LockWaitTimeInSeconds string
	Specs                 []string
}

IptEntry represents an iptables rule.

type IptablesManager

type IptablesManager struct {
	OperationFlag string
	// contains filtered or unexported fields
}

IptablesManager stores iptables entries.

func NewIptablesManager

func NewIptablesManager(exec utilexec.Interface, io ioshim, placeAzureChainFirst bool) *IptablesManager

NewIptablesManager creates a new instance for IptablesManager object.

func (*IptablesManager) Add

func (iptMgr *IptablesManager) Add(entry *IptEntry) error

Add adds a rule in iptables.

func (*IptablesManager) Delete

func (iptMgr *IptablesManager) Delete(entry *IptEntry) error

Delete removes a rule in iptables.

func (*IptablesManager) InitNpmChains

func (iptMgr *IptablesManager) InitNpmChains() error

InitNpmChains initializes Azure NPM chains in iptables.

func (*IptablesManager) ReconcileIPTables

func (iptMgr *IptablesManager) ReconcileIPTables(stopCh <-chan struct{})

func (*IptablesManager) UninitNpmChains

func (iptMgr *IptablesManager) UninitNpmChains() error

UninitNpmChains uninitializes Azure NPM chains in iptables.

Jump to

Keyboard shortcuts

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