Versions in this module Expand all Collapse all v0 v0.4.2 Oct 29, 2014 v0.4.1 Oct 17, 2014 Changes in this version + func MapPodsToMachines(lister PodLister) (map[string][]api.Pod, error) + func PodFitsPorts(pod api.Pod, existingPods []api.Pod, node string) (bool, error) + type ClientNodeInfo struct + func (nodes ClientNodeInfo) GetNodeInfo(nodeID string) (*api.Minion, error) + type FakeMinionLister api.MinionList + func (f FakeMinionLister) List() (api.MinionList, error) + type FakePodLister []api.Pod + func (f FakePodLister) ListPods(s labels.Selector) (selected []api.Pod, err error) + type FitPredicate func(pod api.Pod, existingPods []api.Pod, node string) (bool, error) + func NewResourceFitPredicate(info NodeInfo) FitPredicate + type HostPriority struct + type HostPriorityList []HostPriority + func CalculateSpreadPriority(pod api.Pod, podLister PodLister, minionLister MinionLister) (HostPriorityList, error) + func EqualPriority(pod api.Pod, podLister PodLister, minionLister MinionLister) (HostPriorityList, error) + func LeastRequestedPriority(pod api.Pod, podLister PodLister, minionLister MinionLister) (HostPriorityList, error) + func (h HostPriorityList) Len() int + func (h HostPriorityList) Less(i, j int) bool + func (h HostPriorityList) Swap(i, j int) + type MinionLister interface + List func() (list api.MinionList, err error) + type NodeInfo interface + GetNodeInfo func(nodeID string) (*api.Minion, error) + type PodLister interface + ListPods func(labels.Selector) ([]api.Pod, error) + type PriorityFunction func(pod api.Pod, podLister PodLister, minionLister MinionLister) (HostPriorityList, error) + type ResourceFit struct + func (r *ResourceFit) PodFitsResources(pod api.Pod, existingPods []api.Pod, node string) (bool, error) + type Scheduler interface + Schedule func(api.Pod, MinionLister) (selectedMachine string, err error) + func NewGenericScheduler(predicates []FitPredicate, prioritizer PriorityFunction, pods PodLister, ...) Scheduler + func NewSpreadingScheduler(podLister PodLister, minionLister MinionLister, predicates []FitPredicate, ...) Scheduler + type StaticNodeInfo struct + func (nodes StaticNodeInfo) GetNodeInfo(nodeID string) (*api.Minion, error)