package nodeinfo
import "k8s.io/kubernetes/pkg/scheduler/nodeinfo/snapshot"
Index ¶
Types ¶
type Snapshot ¶
type Snapshot struct { // NodeInfoMap a map of node name to a snapshot of its NodeInfo. NodeInfoMap map[string]*schedulernodeinfo.NodeInfo // NodeInfoList is the list of nodes as ordered in the cache's nodeTree. NodeInfoList []*schedulernodeinfo.NodeInfo Generation int64 }
Snapshot is a snapshot of cache NodeInfo and NodeTree order. The scheduler takes a snapshot at the beginning of each scheduling cycle and uses it for its operations in that cycle.
func NewEmptySnapshot ¶
func NewEmptySnapshot() *Snapshot
NewEmptySnapshot initializes a Snapshot struct and returns it.
func NewSnapshot ¶
NewSnapshot initializes a Snapshot struct and returns it.
func (*Snapshot) ListNodes ¶
ListNodes returns the list of nodes in the snapshot.
func (*Snapshot) NodeInfos ¶
func (s *Snapshot) NodeInfos() schedulerlisters.NodeInfoLister
NodeInfos returns a NodeInfoLister.
func (*Snapshot) Pods ¶
func (s *Snapshot) Pods() schedulerlisters.PodLister
Pods returns a PodLister
Source Files ¶
snapshot.go
- Version
- v1.17.0-beta.0
- Published
- Oct 29, 2019
- Platform
- windows/amd64
- Imports
- 5 packages
- Last checked
- 1 minute ago –
Tools for package owners.