Documentation
¶
Index ¶
- func SetupAllocator(conf conf.PoolConf)
- type Allocator
- func (a *Allocator) AllocHostNic(args *rpc.PodInfo) (*rpc.HostNic, error)
- func (a *Allocator) CleanDeletingMark(nicID string)
- func (a *Allocator) CreateVIPs(vxNetID, IPStart, IPEnd, namespace, NADName string) error
- func (a *Allocator) FreeHostNic(args *rpc.PodInfo, vxNetID string) (*rpc.HostNic, error)
- func (a *Allocator) GetCurrentNodePods() map[string]bool
- func (a *Allocator) GetNicStat(args *rpc.NicStatMessage) int32
- func (a *Allocator) IsDeleting(nicID string) bool
- func (a *Allocator) MarkToDelete(nicID string)
- func (a *Allocator) Start(stopCh <-chan struct{}) error
- func (a *Allocator) SyncHostNic(node bool)
- func (a *Allocator) TryToFreeVxNetVIPs(NADName, namespace string)
- type VipJobInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupAllocator ¶
Types ¶
type Allocator ¶
type Allocator struct { StopCh <-chan struct{} // contains filtered or unexported fields }
var (
Alloc *Allocator
)
func (*Allocator) AllocHostNic ¶
func (*Allocator) CleanDeletingMark ¶
func (*Allocator) CreateVIPs ¶
func (*Allocator) FreeHostNic ¶
func (*Allocator) GetCurrentNodePods ¶
func (*Allocator) GetNicStat ¶
func (a *Allocator) GetNicStat(args *rpc.NicStatMessage) int32
func (*Allocator) IsDeleting ¶
func (*Allocator) MarkToDelete ¶
func (*Allocator) SyncHostNic ¶
func (*Allocator) TryToFreeVxNetVIPs ¶
Click to show internal directories.
Click to hide internal directories.