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, prefix cmtypes.AddrCluster, endpoint net.IP) error
- func (m *Map) SilentDeleteTunnelEndpoint(prefix cmtypes.AddrCluster) error
- type TunnelIP
- type TunnelKey
- type TunnelValue
Constants ¶
View Source
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, 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
type TunnelValue ¶ added in v0.15.7
func (*TunnelValue) New ¶ added in v0.15.7
func (k *TunnelValue) New() bpf.MapValue
func (TunnelValue) String ¶ added in v0.15.7
func (k TunnelValue) String() string
String provides a string representation of the TunnelValue.
Click to show internal directories.
Click to hide internal directories.