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

policymap

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_KEYS = 1024
)
View Source
const (
	MapName = "cilium_policy_"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PolicyEntry

type PolicyEntry struct {
	Action  uint32
	Pad     uint32
	Packets uint64
	Bytes   uint64
}

func (*PolicyEntry) Add

func (pe *PolicyEntry) Add(oPe PolicyEntry)

func (*PolicyEntry) String

func (pe *PolicyEntry) String() string

type PolicyEntryDump

type PolicyEntryDump struct {
	PolicyEntry
	ID uint32
}

type PolicyMap

type PolicyMap struct {
	Fd int
	// contains filtered or unexported fields
}

func OpenMap

func OpenMap(path string) (*PolicyMap, bool, error)

func (*PolicyMap) AllowConsumer

func (pm *PolicyMap) AllowConsumer(id uint32) error

func (*PolicyMap) ConsumerExists

func (pm *PolicyMap) ConsumerExists(id uint32) bool

func (*PolicyMap) DeepCopy

func (pm *PolicyMap) DeepCopy() *PolicyMap

func (*PolicyMap) DeleteConsumer

func (pm *PolicyMap) DeleteConsumer(id uint32) error

func (*PolicyMap) Dump

func (pm *PolicyMap) Dump() (string, error)

func (*PolicyMap) DumpToSlice

func (pm *PolicyMap) DumpToSlice() ([]PolicyEntryDump, error)

func (*PolicyMap) String

func (pm *PolicyMap) String() string

Jump to

Keyboard shortcuts

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