Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Condition security domain key. ConditionSecurityDomain = "security_domain" // Condition IDC key. ConditionIDC = "idc" // Condition location key. ConditionLocation = "location" )
Variables ¶
This section is empty.
Functions ¶
func Evaluate ¶ added in v2.0.1
Evaluate the degree of matching between scheduler cluster and dfdaemon.
func FilterSchedulerClusters ¶ added in v2.0.2
func FilterSchedulerClusters(conditions map[string]string, schedulerClusters []model.SchedulerCluster) []model.SchedulerCluster
Filter the scheduler clusters that dfdaemon can be used.
Types ¶
type Searcher ¶
type Searcher interface { // FindSchedulerClusters finds scheduler clusters that best matches the evaluation. FindSchedulerClusters(ctx context.Context, schedulerClusters []model.SchedulerCluster, hostname, ip string, conditions map[string]string) ([]model.SchedulerCluster, error) }
func LoadPlugin ¶
Click to show internal directories.
Click to hide internal directories.