fake

package
v0.18.0-m1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PacketFilter

type PacketFilter struct {
	// contains filtered or unexported fields
}

func New

func New() *PacketFilter

func (*PacketFilter) AddFailOnAddEntryMatchers

func (i *PacketFilter) AddFailOnAddEntryMatchers(stringOrMatcher interface{})

func (*PacketFilter) AddFailOnAppendRuleMatcher

func (i *PacketFilter) AddFailOnAppendRuleMatcher(stringOrMatcher interface{})

func (*PacketFilter) AddFailOnCreateSetMatchers

func (i *PacketFilter) AddFailOnCreateSetMatchers(stringOrMatcher interface{})

func (*PacketFilter) AddFailOnDelEntryMatchers

func (i *PacketFilter) AddFailOnDelEntryMatchers(stringOrMatcher interface{})

func (*PacketFilter) AddFailOnDeleteRuleMatcher

func (i *PacketFilter) AddFailOnDeleteRuleMatcher(stringOrMatcher interface{})

func (*PacketFilter) AddFailOnDestroySetMatchers

func (i *PacketFilter) AddFailOnDestroySetMatchers(stringOrMatcher interface{})

func (*PacketFilter) Append

func (i *PacketFilter) Append(table packetfilter.TableType, chain string, rule *packetfilter.Rule) error

func (*PacketFilter) AppendUnique

func (i *PacketFilter) AppendUnique(table packetfilter.TableType, chain string, rule *packetfilter.Rule) error

func (*PacketFilter) AwaitChain

func (i *PacketFilter) AwaitChain(table packetfilter.TableType, stringOrMatcher interface{})

func (*PacketFilter) AwaitEntry

func (i *PacketFilter) AwaitEntry(setName string, stringOrMatcher interface{})

func (*PacketFilter) AwaitEntryDeleted

func (i *PacketFilter) AwaitEntryDeleted(setName string, stringOrMatcher interface{})

func (*PacketFilter) AwaitNoChain

func (i *PacketFilter) AwaitNoChain(table packetfilter.TableType, stringOrMatcher interface{})

func (*PacketFilter) AwaitNoEntry

func (i *PacketFilter) AwaitNoEntry(setName string, stringOrMatcher interface{})

func (*PacketFilter) AwaitNoRule

func (i *PacketFilter) AwaitNoRule(table packetfilter.TableType, chain string, stringOrMatcher interface{})

func (*PacketFilter) AwaitNoRules

func (i *PacketFilter) AwaitNoRules(table packetfilter.TableType, chain string)

func (*PacketFilter) AwaitOneSet

func (i *PacketFilter) AwaitOneSet(stringOrMatcher interface{}) string

func (*PacketFilter) AwaitRule

func (i *PacketFilter) AwaitRule(table packetfilter.TableType, chain string, stringOrMatcher interface{})

func (*PacketFilter) AwaitSet

func (i *PacketFilter) AwaitSet(stringOrMatcher interface{})

func (*PacketFilter) AwaitSetDeleted

func (i *PacketFilter) AwaitSetDeleted(setName string)

func (*PacketFilter) ChainExists

func (i *PacketFilter) ChainExists(table packetfilter.TableType, chain string) (bool, error)

func (*PacketFilter) ClearChain

func (i *PacketFilter) ClearChain(table packetfilter.TableType, chain string) error

func (*PacketFilter) CreateChainIfNotExists

func (i *PacketFilter) CreateChainIfNotExists(table packetfilter.TableType, chain *packetfilter.Chain) error

func (*PacketFilter) CreateIPHookChainIfNotExists

func (i *PacketFilter) CreateIPHookChainIfNotExists(chain *packetfilter.ChainIPHook) error

func (*PacketFilter) Delete

func (i *PacketFilter) Delete(table packetfilter.TableType, chain string, rule *packetfilter.Rule) error

func (*PacketFilter) DeleteChain

func (i *PacketFilter) DeleteChain(table packetfilter.TableType, chain string) error

func (*PacketFilter) DeleteIPHookChain

func (i *PacketFilter) DeleteIPHookChain(chain *packetfilter.ChainIPHook) error

func (*PacketFilter) DestroySets

func (i *PacketFilter) DestroySets(nameFilter func(string) bool) error

func (*PacketFilter) Insert

func (i *PacketFilter) Insert(table packetfilter.TableType, chain string, _ int, rule *packetfilter.Rule) error

func (*PacketFilter) List

func (i *PacketFilter) List(table packetfilter.TableType, chain string) ([]*packetfilter.Rule, error)

func (*PacketFilter) NewNamedSet

func (i *PacketFilter) NewNamedSet(setInfo *packetfilter.SetInfo) packetfilter.NamedSet

Jump to

Keyboard shortcuts

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