v4

package
v0.0.0-...-21cfbab Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeySize   = 32
	ValueSize = 80
)

Variables

View Source
var MockMapParams = maps.MapParameters{
	Type:         "hash",
	KeySize:      32,
	ValueSize:    80,
	MaxEntries:   1024,
	Name:         "cali_mock",
	Flags:        unix.BPF_F_NO_PREALLOC,
	Version:      4,
	UpdatedByBPF: true,
}

Functions

This section is empty.

Types

type Key

type Key [KeySize]byte

func NewKey

func NewKey(k uint32) Key

func (Key) AsBytes

func (k Key) AsBytes() []byte

func (Key) Upgrade

func (k Key) Upgrade() maps.Upgradable

type Value

type Value [ValueSize]byte

func NewValue

func NewValue(v uint32) Value

func (Value) AsBytes

func (v Value) AsBytes() []byte

func (Value) Upgrade

func (v Value) Upgrade() maps.Upgradable

Jump to

Keyboard shortcuts

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