iptm

package
v1.15.22 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 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