Discover Packages
github.com/ConnorDoyle/kubernetes
plugin
pkg
scheduler
schedulercache
package
Version:
v1.2.0-alpha.8
Opens a new window with list of versions in this module.
Published: Feb 19, 2016
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types CreateNodeNameToInfoMap(pods) type NodeInfo type Resource NewNodeInfo(pods) (n) Pods() (n) RequestedResource() (n) String()
Documentation
¶
CreateNodeNameToInfoMap obtains a list of pods and pivots that list into a map where the keys are node names
and the values are the aggregated information for that node.
NodeInfo is node level aggregated information.
NewNodeInfo returns a ready to use empty NodeInfo object.
If any pods are given in arguments, their information will be aggregated in
the returned object.
Pods return all pods scheduled (including assumed to be) on this node.
RequestedResource returns aggregated resource request of pods on this node.
String returns representation of human readable format of this NodeInfo.
type Resource struct {
MilliCPU int64
Memory int64
}
Resource is a collection of compute resource.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.