allocator

package
v1.0.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNicKey

func GetNicKey(nic *rpc.HostNic) string

func SetupAllocator

func SetupAllocator(conf conf.PoolConf)

Types

type Allocator

type Allocator struct {
	// contains filtered or unexported fields
}
var (
	Alloc *Allocator
)

func (*Allocator) AllocHostNic

func (a *Allocator) AllocHostNic(args *rpc.PodInfo) (*rpc.HostNic, error)

func (*Allocator) ClearFreeHostnic

func (a *Allocator) ClearFreeHostnic(force bool) error

func (*Allocator) FreeHostNic

func (a *Allocator) FreeHostNic(args *rpc.PodInfo, peek bool) (*rpc.HostNic, string, error)

func (*Allocator) GetNics

func (a *Allocator) GetNics() map[string]*nicStatus

func (*Allocator) HostNicCheck

func (a *Allocator) HostNicCheck()

func (*Allocator) IPAddrReNew added in v1.0.5

func (a *Allocator) IPAddrReNew()

func (*Allocator) Start

func (a *Allocator) Start(stopCh <-chan struct{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL