Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrProfileNotFound = fmt.Errorf("profile not found in discovery mode")
Functions ¶
func GetDiscoveryPerformanceProfile ¶
func GetDiscoveryPerformanceProfile(nodesSelector string) (*performancev2.PerformanceProfile, error)
GetDiscoveryPerformanceProfile returns an existing profile matching nodesSelector, if nodesSelector is set. Otherwise, it returns an existing profile with the most nodes using it. In case no profile exists - return nil
func GetFilteredDiscoveryPerformanceProfile ¶
func GetFilteredDiscoveryPerformanceProfile(iterator ConditionIterator) (*performancev2.PerformanceProfile, error)
GetFilteredDiscoveryPerformanceProfile returns an existing profile in the cluster with the most nodes using it from a a filtered profiles list by the filter function passed as an argument. In case no profile exists - return nil
Types ¶
type ConditionIterator ¶
type ConditionIterator func(performancev2.PerformanceProfile) bool
ConditionIterator is the function that accepts element of a PerformanceProfile and returns boolean
Click to show internal directories.
Click to hide internal directories.