Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SelectOne ¶
func SelectOne(spec instance.Spec, choices []selector.Choice, lookup func(selector.Choice) instance.Plugin) (match selector.Choice, err error)
SelectOne selects one of the choices given choices and a context (the spec). It can optionally use the lookup to perform queries on the instance plugin to arrive at a decision
Types ¶
type AffinityArgs ¶
type AffinityArgs struct {
Weight uint
}
AffinityArgs contains the arguments specific to this affinity algorithm. It's in the Args field of selector.Affinity
Click to show internal directories.
Click to hide internal directories.