Documentation ¶
Index ¶
- Constants
- func GetPredicates(predicatesKeys sets.String) (map[string]core.FitPredicate, error)
- func GetPriorityConfigs(priorityKeys sets.String) ([]core.PriorityConfig, error)
- func RegisterAlgorithmProvider(name string, predicatesKeys, priorityKeys sets.String) string
- func RegisterFitPredicate(name string, predicate core.FitPredicate) string
- func RegisterFitPredicateFactory(name string, predicateFactory FitPredicateFactory) string
- func RegisterPriority(name string, priority core.Priority, weight int) string
- type AlgorithmProviderConfig
- type FitPredicateFactory
- type PriorityConfigFactory
- type PriorityFunctionFactory
Constants ¶
View Source
const ( DefaultProvider = "DefaultProvider" BaremetalProvider = "BaremetalProvider" )
Variables ¶
This section is empty.
Functions ¶
func GetPredicates ¶
func GetPriorityConfigs ¶
func GetPriorityConfigs(priorityKeys sets.String) ([]core.PriorityConfig, error)
func RegisterAlgorithmProvider ¶
RegisterAlgorithmProvider registers a new algorithm provider with the algorithm registry. This shoud be called from the init function in a provider plugin.
func RegisterFitPredicate ¶
func RegisterFitPredicate(name string, predicate core.FitPredicate) string
RegisterFitPredicate registers a fit predicate with the algorithm registry. Returns the name with which the predicates was registerd.
func RegisterFitPredicateFactory ¶
func RegisterFitPredicateFactory(name string, predicateFactory FitPredicateFactory) string
RegisterFitPredicateFactory registers a fit predicate factory with the algorithm registry. Returns the name with which the predicate was registered.
Types ¶
type AlgorithmProviderConfig ¶
func GetAlgorithmProvider ¶
func GetAlgorithmProvider(name string) (*AlgorithmProviderConfig, error)
type FitPredicateFactory ¶
type FitPredicateFactory func() core.FitPredicate
type PriorityConfigFactory ¶
type PriorityConfigFactory struct { MapReduceFunction PriorityFunctionFactory Weight int }
type PriorityFunctionFactory ¶
type PriorityFunctionFactory func() (core.PriorityPreFunction, core.PriorityMapFunction, core.PriorityReduceFunction)
Click to show internal directories.
Click to hide internal directories.