v3

package
v1.11.0-cni-plu...-ddfc3b1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeySize   = 24
	ValueSize = 72
)

Variables

View Source
var MockMapParams = maps.MapParameters{
	Type:         "hash",
	KeySize:      24,
	ValueSize:    72,
	MaxEntries:   1024,
	Name:         "cali_mock",
	Flags:        unix.BPF_F_NO_PREALLOC,
	Version:      3,
	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