calculateResourceScore
Callable
Parameters
selector: Map<string, string | string[]>
Selector of this resource.
envConfig: Record<string, string>
Environment variable of current system.
weights: Record<string, number>
Weights of each environment variable entry.
Returns number
the score of the selector.
Give a selector and environment variable, return the score of the selector.