Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerCPUAssignments ¶ added in v1.9.0
type ContainerCPUAssignments map[string]cpuset.CPUSet
ContainerCPUAssignments type used in cpu manger state
type Reader ¶
type Reader interface {
GetCPUSet(containerID string) (cpuset.CPUSet, bool)
GetDefaultCPUSet() cpuset.CPUSet
GetCPUSetOrDefault(containerID string) cpuset.CPUSet
GetCPUAssignments() ContainerCPUAssignments
}
Reader interface used to read current cpu/pod assignment state
type State ¶
type State interface {
Reader
// contains filtered or unexported methods
}
State interface provides methods for tracking and setting cpu/pod assignment
func NewFileState ¶ added in v1.9.0
func NewFileState(filePath string, policyName string) State
NewFileState creates new State for keeping track of cpu/pod assignment with file backend
func NewMemoryState ¶
func NewMemoryState() State
NewMemoryState creates new State for keeping track of cpu/pod assignment
Click to show internal directories.
Click to hide internal directories.