v2

package
v1.11.0-cni-plu...-8f3027a Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	KeySize   = 16
	ValueSize = 64
)

Variables

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