Documentation ¶
Overview ¶
+groupName=maps
Index ¶
- Constants
- Variables
- func CreateMaps()
- func CreatePolicyMaps() error
- func CreateSIDMap() error
- func CreateVRFMaps() error
- func OpenPolicyMaps() error
- func OpenSIDMap() error
- func OpenStateMaps() error
- func OpenVRFMaps() error
- type PolicyKey
- type PolicyKey4
- type PolicyKey6
- type PolicyValue
- type SIDKey
- type SIDValue
- type SRv6PolicyIterateCallback
- type SRv6SIDIterateCallback
- type SRv6StateIterateCallback
- type SRv6VRFIterateCallback
- type StateKey
- type StateKey4
- type StateKey6
- type StateValue
- type VRFKey
- type VRFKey4
- type VRFKey6
- type VRFValue
Constants ¶
const ( PolicyMapName4 = "cilium_srv6_policy_v4" PolicyMapName6 = "cilium_srv6_policy_v6" MaxPolicyEntries = 16384 )
const ( SIDMapName = "cilium_srv6_sid" MaxSIDEntries = 16384 )
const ( StateMapName4 = "cilium_srv6_state_v4" StateMapName6 = "cilium_srv6_state_v6" MaxStateEntries = 16384 )
const ( VRFMapName4 = "cilium_srv6_vrf_v4" VRFMapName6 = "cilium_srv6_vrf_v6" MaxVRFEntries = 16384 )
Variables ¶
var ( SRv6PolicyMap4 *srv6PolicyMap SRv6PolicyMap6 *srv6PolicyMap )
var ( SRv6StateMap4 *srv6StateMap SRv6StateMap6 *srv6StateMap )
var ( SRv6VRFMap4 *srv6VRFMap SRv6VRFMap6 *srv6VRFMap )
var (
SRv6SIDMap *srv6SIDMap
)
Functions ¶
func CreateMaps ¶
func CreateMaps()
func CreatePolicyMaps ¶
func CreatePolicyMaps() error
func CreateSIDMap ¶
func CreateSIDMap() error
func CreateVRFMaps ¶
func CreateVRFMaps() error
func OpenPolicyMaps ¶
func OpenPolicyMaps() error
func OpenSIDMap ¶
func OpenSIDMap() error
func OpenStateMaps ¶
func OpenStateMaps() error
func OpenVRFMaps ¶
func OpenVRFMaps() error
Types ¶
type PolicyKey ¶
Generic policy key for IPv4 and IPv6.
type PolicyKey4 ¶
type PolicyKey6 ¶
type PolicyValue ¶
type SRv6PolicyIterateCallback ¶
type SRv6PolicyIterateCallback func(*PolicyKey, *PolicyValue)
SRv6PolicyIterateCallback represents the signature of the callback function expected by the IterateWithCallback method, which in turn is used to iterate all the keys/values of an SRv6 policy map.
type SRv6SIDIterateCallback ¶
SRv6SIDIterateCallback represents the signature of the callback function expected by the IterateWithCallback method, which in turn is used to iterate all the keys/values of an SRv6 SID map.
type SRv6StateIterateCallback ¶
type SRv6StateIterateCallback func(*StateKey, *StateValue)
SRv6StateIterateCallback represents the signature of the callback function expected by the IterateWithCallback method, which in turn is used to iterate all the keys/values of an SRv6 state map.
type SRv6VRFIterateCallback ¶
SRv6VRFIterateCallback represents the signature of the callback function expected by the IterateWithCallback method, which in turn is used to iterate all the keys/values of an SRv6 policy map.
type StateValue ¶
StateValue implements the bpf.MapValue interface. It contains the SRv6 outer IPs for the state maps.
func (*StateValue) String ¶
func (v *StateValue) String() string
String pretty prints the state outer IPs.
type VRFKey ¶
Generic VRF mapping key for IPv4 and IPv6.