baseload

package
v0.4.16-0rc1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Load

type Load struct {
	Name      string
	Resources corev1.ResourceList
}

func FromPods

func FromPods(nodeName string, pods []corev1.Pod) Load

func (Load) Apply

func (nl Load) Apply(res corev1.ResourceList)

Apply adjust the given ResourceList with the current node load by mutating the parameter in place

func (Load) CPU

func (nl Load) CPU() resource.Quantity

func (Load) Deduct

func (nl Load) Deduct(res corev1.ResourceList) error

Deduct subtract the current node load from the given ResourceList by mutating the parameter in place

func (Load) Memory

func (nl Load) Memory() resource.Quantity

func (Load) Round

func (nl Load) Round() Load

func (Load) String

func (nl Load) String() string

Jump to

Keyboard shortcuts

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