Documentation ¶
Overview ¶
+groupName=maps
Index ¶
- Constants
- func SetTunnelMap(m *Map)
- type Map
- func (m *Map) DeleteTunnelEndpoint(prefix cmtypes.AddrCluster) error
- func (m *Map) GetTunnelEndpoint(prefix cmtypes.AddrCluster) (net.IP, error)
- func (m *Map) SetTunnelEndpoint(encryptKey uint8, nodeID uint16, prefix cmtypes.AddrCluster, endpoint net.IP) error
- func (m *Map) SilentDeleteTunnelEndpoint(prefix cmtypes.AddrCluster) error
- type TunnelIP
- type TunnelKey
- type TunnelValue
Constants ¶
const ( MapName = "cilium_tunnel_map" // MaxEntries is the maximum entries in the tunnel endpoint map MaxEntries = 65536 )
Variables ¶
This section is empty.
Functions ¶
func SetTunnelMap ¶ added in v0.15.7
func SetTunnelMap(m *Map)
SetTunnelMap sets the tunnel map. Only used for testing.
Types ¶
type Map ¶ added in v0.15.7
Map implements tunnel connectivity configuration in the BPF datapath.
func NewTunnelMap ¶ added in v0.15.7
NewTunnelMap returns a new tunnel map.
func (*Map) DeleteTunnelEndpoint ¶ added in v0.15.7
func (m *Map) DeleteTunnelEndpoint(prefix cmtypes.AddrCluster) error
DeleteTunnelEndpoint removes a prefix => tunnel-endpoint mapping
func (*Map) GetTunnelEndpoint ¶ added in v0.15.7
GetTunnelEndpoint retrieves a prefix => tunnel-endpoint mapping
func (*Map) SetTunnelEndpoint ¶ added in v0.15.7
func (m *Map) SetTunnelEndpoint(encryptKey uint8, nodeID uint16, prefix cmtypes.AddrCluster, endpoint net.IP) error
SetTunnelEndpoint adds/replaces a prefix => tunnel-endpoint mapping
func (*Map) SilentDeleteTunnelEndpoint ¶ added in v0.15.7
func (m *Map) SilentDeleteTunnelEndpoint(prefix cmtypes.AddrCluster) error
SilentDeleteTunnelEndpoint removes a prefix => tunnel-endpoint mapping. If the prefix is not found no error is returned.
type TunnelIP ¶ added in v0.15.7
type TunnelIP struct { // represents both IPv6 and IPv4 (in the lowest four bytes) IP types.IPv6 `align:"$union0"` Family uint8 `align:"family"` }
+k8s:deepcopy-gen=true
func (*TunnelIP) DeepCopy ¶ added in v0.15.7
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TunnelIP.
func (*TunnelIP) DeepCopyInto ¶ added in v0.15.7
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TunnelKey ¶ added in v0.15.7
+k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=github.com/cilium/cilium/pkg/bpf.MapKey
func (*TunnelKey) DeepCopy ¶ added in v1.11.14
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TunnelKey.
func (*TunnelKey) DeepCopyInto ¶ added in v1.11.14
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TunnelKey) DeepCopyMapKey ¶ added in v1.11.14
DeepCopyMapKey is an autogenerated deepcopy function, copying the receiver, creating a new bpf.MapKey.
type TunnelValue ¶ added in v0.15.7
+k8s:deepcopy-gen=true +k8s:deepcopy-gen:interfaces=github.com/cilium/cilium/pkg/bpf.MapValue
func (*TunnelValue) DeepCopy ¶ added in v1.11.14
func (in *TunnelValue) DeepCopy() *TunnelValue
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TunnelValue.
func (*TunnelValue) DeepCopyInto ¶ added in v1.11.14
func (in *TunnelValue) DeepCopyInto(out *TunnelValue)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TunnelValue) DeepCopyMapValue ¶ added in v1.11.14
func (in *TunnelValue) DeepCopyMapValue() bpf.MapValue
DeepCopyMapValue is an autogenerated deepcopy function, copying the receiver, creating a new bpf.MapValue.
func (*TunnelValue) GetValuePtr ¶ added in v1.11.14
func (k *TunnelValue) GetValuePtr() unsafe.Pointer
GetValuePtr returns the unsafe pointer to the BPF key for users that use TunnelValue as a value in bpf maps
func (TunnelValue) NewValue ¶ added in v1.11.14
func (v TunnelValue) NewValue() bpf.MapValue
func (TunnelValue) String ¶ added in v0.15.7
func (k TunnelValue) String() string
String provides a string representation of the TunnelValue.