Documentation
¶
Index ¶
- func GetNicKey(nic *rpc.HostNic) string
- func SetupAllocator(conf conf.PoolConf)
- type Allocator
- func (a *Allocator) AllocHostNic(args *rpc.PodInfo) (*rpc.HostNic, error)
- func (a *Allocator) ClearFreeHostnic(force bool) error
- func (a *Allocator) FreeHostNic(args *rpc.PodInfo, peek bool) (*rpc.HostNic, string, error)
- func (a *Allocator) GetNics() map[string]*nicStatus
- func (a *Allocator) HostNicCheck()
- func (a *Allocator) IPAddrReNew()
- func (a *Allocator) Start(stopCh <-chan struct{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupAllocator ¶
Types ¶
type Allocator ¶
type Allocator struct {
// contains filtered or unexported fields
}
var (
Alloc *Allocator
)
func (*Allocator) AllocHostNic ¶
func (*Allocator) ClearFreeHostnic ¶
func (*Allocator) FreeHostNic ¶
func (*Allocator) HostNicCheck ¶
func (a *Allocator) HostNicCheck()
func (*Allocator) IPAddrReNew ¶ added in v1.0.5
func (a *Allocator) IPAddrReNew()
Click to show internal directories.
Click to hide internal directories.