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 ¶
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 ¶
MarshalJSON implements the marshaller function for "encoding/json"
func (*Tristate) UnmarshalJSON ¶
UnmarshalJSON implements the unmarshaller function for "encoding/json"
Click to show internal directories.
Click to hide internal directories.