Documentation ¶
Index ¶
- type MetalnetCache
- func (c *MetalnetCache) AddLoadBalancerServer(vni uint32, ip string, uid types.UID) error
- func (c *MetalnetCache) AddVniToPeerVnis(vni, peeredVNI uint32) error
- func (c *MetalnetCache) GetLoadBalancerServer(vni uint32, ip string) (types.UID, bool)
- func (c *MetalnetCache) GetPeerVnis(vni uint32) (sets.Set[uint32], bool)
- func (c *MetalnetCache) GetPeeredPrefixes(vni uint32) (map[uint32][]netip.Prefix, bool)
- func (c *MetalnetCache) IsVniPeered(vni uint32) bool
- func (c *MetalnetCache) RemoveLoadBalancerServer(ip string, uid types.UID) error
- func (c *MetalnetCache) RemoveVniFromPeerVnis(vni, peeredVNI uint32) error
- func (c *MetalnetCache) SetPeeredPrefixes(vni uint32, peeredPrefixes map[uint32][]netip.Prefix)
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 (*MetalnetCache) AddVniToPeerVnis ¶
func (c *MetalnetCache) AddVniToPeerVnis(vni, peeredVNI uint32) error
func (*MetalnetCache) GetLoadBalancerServer ¶
func (*MetalnetCache) GetPeerVnis ¶
func (*MetalnetCache) GetPeeredPrefixes ¶
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)
Click to show internal directories.
Click to hide internal directories.