static

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// TristateOff is unconditional boolean false
	TristateOff = iota
	// TristateOn is unconditional boolean true
	TristateOn
	// TristateAuto indicates boolean value should be inferred using other data.
	TristateAuto
)
View Source
const (
	// PolicyName is the name used to activate this policy implementation.
	PolicyName = "static"
	// PolicyDescription is a short description of this policy.
	PolicyDescription = "A reimplementation of the static CPU Manager policy."
	// PolicyPath is the path of this policy in the configuration hierarchy.
	PolicyPath = "policy." + PolicyName
)

Variables

This section is empty.

Functions

func NewStaticPolicy

func NewStaticPolicy(opts *policy.BackendOptions) policy.Backend

NewStaticPolicy creates a new policy instance.

Types

type ContainerCPUAssignments

type ContainerCPUAssignments map[string]cpuset.CPUSet

ContainerCPUAssignments assigns CPU sets per container id.

type Tristate

type Tristate int

Tristate is boolean-like value with 3 states: on, off, automatically-determined.

func (Tristate) MarshalJSON

func (t Tristate) MarshalJSON() ([]byte, error)

MarshalJSON implements the marshaller function for "encoding/json"

func (*Tristate) String

func (t *Tristate) String() string

String returns the value of Tristate as a string

func (*Tristate) UnmarshalJSON

func (t *Tristate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the unmarshaller function for "encoding/json"

Jump to

Keyboard shortcuts

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