package state
import "k8s.io/kubernetes/pkg/kubelet/cm/cpumanager/state"
Index ¶
Types ¶
type Reader ¶
type Reader interface { GetCPUSet(containerID string) (cpuset.CPUSet, bool) GetDefaultCPUSet() cpuset.CPUSet GetCPUSetOrDefault(containerID string) cpuset.CPUSet }
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 NewMemoryState ¶
func NewMemoryState() State
NewMemoryState creates new State for keeping track of cpu/pod assignment
Source Files ¶
state.go state_mem.go
- Version
- v1.8.1
- Published
- Oct 11, 2017
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 5 minutes ago –
Tools for package owners.