Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CandidatePromotionRule ¶
type CandidatePromotionRule string
CandidatePromotionRule describe the promotion preference/rule for an instance. It maps to promotion_rule column in candidate_database_instance
const ( Must CandidatePromotionRule = "must" Prefer CandidatePromotionRule = "prefer" Neutral CandidatePromotionRule = "neutral" PreferNot CandidatePromotionRule = "prefer_not" MustNot CandidatePromotionRule = "must_not" )
func AllPromotionRules ¶ added in v0.14.0
func AllPromotionRules() []CandidatePromotionRule
AllPromotionRules returns all the CandidatePromotionRules in a list sorted by their priority.
func Parse ¶
func Parse(ruleName string) (CandidatePromotionRule, error)
Parse returns a CandidatePromotionRule by name. It returns an error if there is no known rule by the given name.
func (*CandidatePromotionRule) BetterThan ¶
func (this *CandidatePromotionRule) BetterThan(other CandidatePromotionRule) bool
Click to show internal directories.
Click to hide internal directories.