policymap

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2017 License: Apache-2.0 Imports: 4 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 OpenGlobalMap added in v0.9.0

func OpenGlobalMap(path string) (*PolicyMap, error)

func OpenMap

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

func (*PolicyMap) AllowConsumer

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

func (*PolicyMap) Close added in v0.9.0

func (pm *PolicyMap) Close() error

Close closes the FD of the given PolicyMap

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