discovery

package
v0.0.0-...-d55e5f6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrProfileNotFound = fmt.Errorf("profile not found in discovery mode")

Functions

func Enabled

func Enabled() bool

Enabled indicates whether test discovery mode is enabled.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL