Documentation ¶
Index ¶
- func AllocatePodIP(client *k8sclient.ClientInfo, name, namespace, podName string) (string, error)
- func ClearVIPConf(NADName, cmName, namespace, nodeUUID string, VIPs []string, ...)
- func CreateVIPCMName(NADName string) string
- func GetVIPConfForVxNet(NADName, namespace, IPStart, IPEnd, vxNet string) (map[string]string, error)
- func PrintErrReason(err error, desc string)
- func ReleasePodIP(client *k8sclient.ClientInfo, name, namespace, podName string) error
- func TryFreeVIP(NADName, namespace string, stopCh <-chan struct{}) error
- type VIPAllocMap
- func (v *VIPAllocMap) AddRefPodVIPInfo(podName string) (allocIP string, err error)
- func (v *VIPAllocMap) CheckFreeVIP() error
- func (v *VIPAllocMap) CreateCMData() string
- func (v *VIPAllocMap) GetPodCount() int
- func (v *VIPAllocMap) InitRefPodVIPInfo(VIPInfoMap map[string]*VIPInfo)
- func (v *VIPAllocMap) IsInitialized() bool
- func (v *VIPAllocMap) PrepareToDelete(nodeUUID string) []string
- func (v *VIPAllocMap) ReadyToDelete(nodeUUID string) bool
- func (v *VIPAllocMap) RemoveRefPodVIPInfo(podName string)
- type VIPInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllocatePodIP ¶
func AllocatePodIP(client *k8sclient.ClientInfo, name, namespace, podName string) (string, error)
func ClearVIPConf ¶
func CreateVIPCMName ¶
func GetVIPConfForVxNet ¶
func PrintErrReason ¶
func ReleasePodIP ¶
func ReleasePodIP(client *k8sclient.ClientInfo, name, namespace, podName string) error
Detach Pod Ref VIP info
func TryFreeVIP ¶
Types ¶
type VIPAllocMap ¶
type VIPAllocMap struct { TagToDelete bool IPStart string IPEnd string VIPDetailInfo map[string]*VIPInfo LastUpdateTime int64 NodeUUID string }
Data Field Value in ConfigMap
func (*VIPAllocMap) AddRefPodVIPInfo ¶
func (v *VIPAllocMap) AddRefPodVIPInfo(podName string) (allocIP string, err error)
func (*VIPAllocMap) CheckFreeVIP ¶
func (v *VIPAllocMap) CheckFreeVIP() error
func (*VIPAllocMap) CreateCMData ¶
func (v *VIPAllocMap) CreateCMData() string
func (*VIPAllocMap) GetPodCount ¶
func (v *VIPAllocMap) GetPodCount() int
func (*VIPAllocMap) InitRefPodVIPInfo ¶
func (v *VIPAllocMap) InitRefPodVIPInfo(VIPInfoMap map[string]*VIPInfo)
func (*VIPAllocMap) IsInitialized ¶
func (v *VIPAllocMap) IsInitialized() bool
func (*VIPAllocMap) PrepareToDelete ¶
func (v *VIPAllocMap) PrepareToDelete(nodeUUID string) []string
func (*VIPAllocMap) ReadyToDelete ¶
func (v *VIPAllocMap) ReadyToDelete(nodeUUID string) bool
func (*VIPAllocMap) RemoveRefPodVIPInfo ¶
func (v *VIPAllocMap) RemoveRefPodVIPInfo(podName string)
Click to show internal directories.
Click to hide internal directories.