searcher

package
v2.0.2-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Condition security domain key
	ConditionSecurityDomain = "security_domain"

	// Condition IDC key
	ConditionIDC = "idc"

	// Condition netTopology key
	ConditionNetTopology = "net_topology"

	// Condition location key
	ConditionLocation = "location"
)

Variables

This section is empty.

Functions

func Evaluate added in v2.0.1

func Evaluate(conditions map[string]string, scopes Scopes) float64

Evaluate the degree of matching between scheduler cluster and dfdaemon

Types

type Scopes

type Scopes struct {
	IDC         string `mapstructure:"idc"`
	Location    string `mapstructure:"location"`
	NetTopology string `mapstructure:"net_topology"`
}

type Searcher

type Searcher interface {
	FindSchedulerCluster(context.Context, []model.SchedulerCluster, *manager.ListSchedulersRequest) (model.SchedulerCluster, error)
}

func LoadPlugin

func LoadPlugin(dir string) (Searcher, error)

func New

func New(pluginDir string) Searcher

Jump to

Keyboard shortcuts

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