policy

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CPU    Domain = "cpu"
	Memory Domain = "memory"

	AmountAbsent AmountKind = iota
	AmountQuantity
	AmountCPUSet

	PrefixCPUSet = "cpuset:"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Amount

type Amount string

func (Amount) ParseCPUSet

func (amount Amount) ParseCPUSet() (cpuset.CPUSet, error)

func (Amount) ParseQuantity

func (amount Amount) ParseQuantity() (resource.Quantity, error)

type AmountKind

type AmountKind int

type Constraints

type Constraints map[Domain]Amount

func (Constraints) Get

func (c Constraints) Get(d Domain) (Amount, AmountKind)

type Domain

type Domain string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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