internal

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetalnetCache

type MetalnetCache struct {
	// contains filtered or unexported fields
}

func NewMetalnetCache

func NewMetalnetCache(log *logr.Logger) *MetalnetCache

func (*MetalnetCache) AddLoadBalancerServer

func (c *MetalnetCache) AddLoadBalancerServer(vni uint32, ip string, uid types.UID) error

func (*MetalnetCache) AddVniToPeerVnis

func (c *MetalnetCache) AddVniToPeerVnis(vni, peeredVNI uint32) error

func (*MetalnetCache) GetLoadBalancerServer

func (c *MetalnetCache) GetLoadBalancerServer(vni uint32, ip string) (types.UID, bool)

func (*MetalnetCache) GetPeerVnis

func (c *MetalnetCache) GetPeerVnis(vni uint32) (sets.Set[uint32], bool)

func (*MetalnetCache) GetPeeredPrefixes

func (c *MetalnetCache) GetPeeredPrefixes(vni uint32) (map[uint32][]netip.Prefix, bool)

func (*MetalnetCache) IsVniPeered

func (c *MetalnetCache) IsVniPeered(vni uint32) bool

func (*MetalnetCache) RemoveLoadBalancerServer

func (c *MetalnetCache) RemoveLoadBalancerServer(ip string, uid types.UID) error

func (*MetalnetCache) RemoveVniFromPeerVnis

func (c *MetalnetCache) RemoveVniFromPeerVnis(vni, peeredVNI uint32) error

func (*MetalnetCache) SetPeeredPrefixes

func (c *MetalnetCache) SetPeeredPrefixes(vni uint32, peeredPrefixes map[uint32][]netip.Prefix)

Jump to

Keyboard shortcuts

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