allocator

package
v1.0.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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) FreeHostNic

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

func (*Allocator) SetCachedVxnet

func (a *Allocator) SetCachedVxnet(vxnet string) error

func (*Allocator) Start

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

func (*Allocator) SyncHostNic

func (a *Allocator) SyncHostNic(node bool)

Jump to

Keyboard shortcuts

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