Documentation ¶
Overview ¶
Package profile holds the definition of a scheduling Profile.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FrameworkFactory ¶
type FrameworkFactory func(config.KubeSchedulerProfile) (framework.Framework, error)
FrameworkFactory builds a Framework for a given profile configuration.
type Map ¶
Map holds profiles indexed by scheduler name.
func NewMap ¶
func NewMap(cfgs []config.KubeSchedulerProfile, frameworkFact FrameworkFactory, recorderFact RecorderFactory) (Map, error)
NewMap builds the profiles given by the configuration, indexed by name.
func (Map) HandlesSchedulerName ¶
HandlesSchedulerName returns whether a profile handles the given scheduler name.
type Profile ¶
type Profile struct { framework.Framework Recorder events.EventRecorder }
Profile is a scheduling profile.
func NewProfile ¶
func NewProfile(cfg config.KubeSchedulerProfile, frameworkFact FrameworkFactory, recorderFact RecorderFactory) (*Profile, error)
NewProfile builds a Profile for the given configuration.
type RecorderFactory ¶
type RecorderFactory func(string) events.EventRecorder
RecorderFactory builds an EventRecorder for a given scheduler name.
func NewRecorderFactory ¶
func NewRecorderFactory(b events.EventBroadcaster) RecorderFactory
NewRecorderFactory returns a RecorderFactory for the broadcaster.
Click to show internal directories.
Click to hide internal directories.