lisp_types

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package lisp_types contains generated bindings for API file lisp_types.api.

Contents:

2 enums
5 structs
1 union

Index

Constants

View Source
const (
	APIFile    = "lisp_types"
	APIVersion = "1.0.0"
	VersionCrc = 0xf05d92a6
)

Variables

View Source
var (
	EidType_name = map[uint8]string{
		0: "EID_TYPE_API_PREFIX",
		1: "EID_TYPE_API_MAC",
		2: "EID_TYPE_API_NSH",
	}
	EidType_value = map[string]uint8{
		"EID_TYPE_API_PREFIX": 0,
		"EID_TYPE_API_MAC":    1,
		"EID_TYPE_API_NSH":    2,
	}
)
View Source
var (
	HmacKeyID_name = map[uint8]string{
		0: "KEY_ID_API_HMAC_NO_KEY",
		1: "KEY_ID_API_HMAC_SHA_1_96",
		2: "KEY_ID_API_HMAC_SHA_256_128",
	}
	HmacKeyID_value = map[string]uint8{
		"KEY_ID_API_HMAC_NO_KEY":      0,
		"KEY_ID_API_HMAC_SHA_1_96":    1,
		"KEY_ID_API_HMAC_SHA_256_128": 2,
	}
)

Functions

This section is empty.

Types

type Eid

type Eid struct {
	Type    EidType         `binapi:"eid_type,name=type" json:"type,omitempty"`
	Address EidAddressUnion `binapi:"eid_address,name=address" json:"address,omitempty"`
}

Eid defines type 'eid'.

type EidAddressUnion

type EidAddressUnion struct {
	// EidAddressUnion can be one of:
	// - Prefix *ip_types.Prefix
	// - Mac *ethernet_types.MacAddress
	// - Nsh *Nsh
	XXX_UnionData [18]byte
}

EidAddressUnion defines union 'eid_address'.

func EidAddressUnionMac

func EidAddressUnionMac(a ethernet_types.MacAddress) (u EidAddressUnion)

func EidAddressUnionNsh

func EidAddressUnionNsh(a Nsh) (u EidAddressUnion)

func EidAddressUnionPrefix

func EidAddressUnionPrefix(a ip_types.Prefix) (u EidAddressUnion)

func (*EidAddressUnion) GetMac

func (u *EidAddressUnion) GetMac() (a ethernet_types.MacAddress)

func (*EidAddressUnion) GetNsh

func (u *EidAddressUnion) GetNsh() (a Nsh)

func (*EidAddressUnion) GetPrefix

func (u *EidAddressUnion) GetPrefix() (a ip_types.Prefix)

func (*EidAddressUnion) SetMac

func (*EidAddressUnion) SetNsh

func (u *EidAddressUnion) SetNsh(a Nsh)

func (*EidAddressUnion) SetPrefix

func (u *EidAddressUnion) SetPrefix(a ip_types.Prefix)

type EidType

type EidType uint8

EidType defines enum 'eid_type'.

const (
	EID_TYPE_API_PREFIX EidType = 0
	EID_TYPE_API_MAC    EidType = 1
	EID_TYPE_API_NSH    EidType = 2
)

func (EidType) String

func (x EidType) String() string

type HmacKey

type HmacKey struct {
	ID  HmacKeyID `binapi:"hmac_key_id,name=id" json:"id,omitempty"`
	Key []byte    `binapi:"u8[64],name=key" json:"key,omitempty"`
}

HmacKey defines type 'hmac_key'.

type HmacKeyID

type HmacKeyID uint8

HmacKeyID defines enum 'hmac_key_id'.

const (
	KEY_ID_API_HMAC_NO_KEY      HmacKeyID = 0
	KEY_ID_API_HMAC_SHA_1_96    HmacKeyID = 1
	KEY_ID_API_HMAC_SHA_256_128 HmacKeyID = 2
)

func (HmacKeyID) String

func (x HmacKeyID) String() string

type LocalLocator

type LocalLocator struct {
	SwIfIndex interface_types.InterfaceIndex `binapi:"interface_index,name=sw_if_index" json:"sw_if_index,omitempty"`
	Priority  uint8                          `binapi:"u8,name=priority" json:"priority,omitempty"`
	Weight    uint8                          `binapi:"u8,name=weight" json:"weight,omitempty"`
}

LocalLocator defines type 'local_locator'.

type Nsh

type Nsh struct {
	Spi uint32 `binapi:"u32,name=spi" json:"spi,omitempty"`
	Si  uint8  `binapi:"u8,name=si" json:"si,omitempty"`
}

Nsh defines type 'nsh'.

type RemoteLocator

type RemoteLocator struct {
	Priority  uint8            `binapi:"u8,name=priority" json:"priority,omitempty"`
	Weight    uint8            `binapi:"u8,name=weight" json:"weight,omitempty"`
	IPAddress ip_types.Address `binapi:"address,name=ip_address" json:"ip_address,omitempty"`
}

RemoteLocator defines type 'remote_locator'.

Jump to

Keyboard shortcuts

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