allocator

package
v0.0.0-...-c3af27a Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Allocator

type Allocator interface {
	Allocate(available []uint, required []uint, size int) ([]uint, error)
}

func New

func New(policy string, devs map[string]*cndev.Device) Allocator

func NewBoardAllocator

func NewBoardAllocator(policy string, devs map[string]*cndev.Device) Allocator

func NewDefaultAllocator

func NewDefaultAllocator(policy string, devs map[string]*cndev.Device) Allocator

func NewSpiderAllocator

func NewSpiderAllocator(policy string, devs map[string]*cndev.Device) Allocator

Jump to

Keyboard shortcuts

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