package state
import "k8s.io/kubernetes/pkg/kubelet/cm/cpumanager/state"
Index ¶
Types ¶
type ContainerCPUAssignments ¶
ContainerCPUAssignments type used in cpu manger state
func (ContainerCPUAssignments) Clone ¶
func (as ContainerCPUAssignments) Clone() ContainerCPUAssignments
Clone returns a copy of ContainerCPUAssignments
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 ¶
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
Source Files ¶
state.go state_file.go state_mem.go
- Version
- v1.11.0
- Published
- Jun 27, 2018
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 3 minutes ago –
Tools for package owners.