Documentation
¶
Index ¶
- Variables
- func DeleteTenantStore(tenantName string) error
- func GetTenantIP(tenantList []string) netip.Prefix
- func ListSubnets(original string, newPrefix int) []string
- type Bridge
- type ContainerNetInfo
- type NodeData
- type NodeIPAM
- type NodeStore
- type PodData
- type PodIPAM
- type PodStore
- type TenantData
- type TenantIPAM
- func (tim *TenantIPAM) AllocateIP(id string, ifName string, netns string, pod_name string) (net.IP, error)
- func (tim *TenantIPAM) CheckIP(id string) (net.IP, error)
- func (tim *TenantIPAM) IPNet(ip net.IP) *net.IPNet
- func (tim *TenantIPAM) NextIP(ip net.IP) (net.IP, error)
- func (tim *TenantIPAM) ReleaseIP(id string) error
- type TenantStore
- func (t *TenantStore) Add(ip net.IP, id string, ifname string, netns string, pod_name string) error
- func (t *TenantStore) Contains(ip net.IP) bool
- func (t *TenantStore) Del(id string) error
- func (t *TenantStore) GetIPByID(id string) (net.IP, bool)
- func (t *TenantStore) Last() net.IP
- func (s *TenantStore) LoadTenantData() error
- func (s *TenantStore) StoreTenantData() error
- type Vxlan
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrIPOverflow = errors.New(" ip overflow")
)
Functions ¶
func DeleteTenantStore ¶
func GetTenantIP ¶
func ListSubnets ¶
Types ¶
type ContainerNetInfo ¶
type NodeIPAM ¶
func (*NodeIPAM) AllocateTenant ¶
Check if it is possible to create a tenantStore outside and pass it to the function only updating the tenantCIDR
func (*NodeIPAM) RemoveTenant ¶
type NodeStore ¶
func (*NodeStore) AddAvailableTenantList ¶
func (*NodeStore) AddNodeCIDR ¶
func (*NodeStore) LoadNodeData ¶
Load node data to a node store
func (*NodeStore) StoreNodeData ¶
Store node data to a json file
type TenantData ¶
type TenantIPAM ¶
type TenantIPAM struct { TenantName string TenantStore *TenantStore }
func NewTenantIPAM ¶
func NewTenantIPAM(store *TenantStore, tenantName string) (*TenantIPAM, error)
func (*TenantIPAM) AllocateIP ¶
func (*TenantIPAM) ReleaseIP ¶
func (tim *TenantIPAM) ReleaseIP(id string) error
type TenantStore ¶
type TenantStore struct { *filemutex.FileMutex Directory string Data *TenantData DataFile string }
func NewTenantStore ¶
func NewTenantStore(dataDir string, tenantName string) (*TenantStore, error)
func (*TenantStore) Del ¶
func (t *TenantStore) Del(id string) error
func (*TenantStore) Last ¶
func (t *TenantStore) Last() net.IP
func (*TenantStore) LoadTenantData ¶
func (s *TenantStore) LoadTenantData() error
Load tenant data to a tenant store
func (*TenantStore) StoreTenantData ¶
func (s *TenantStore) StoreTenantData() error
Store tenant data to a json file
Click to show internal directories.
Click to hide internal directories.