Skip to content

LabelSelector🔗

Definition🔗

type LabelSelector struct {
    // Name of the label to select.
    Name string `json:"name"`
    // Value to match against.
    Value string `json:"value"`
    // Operator used to perform the selection.
    Operator promql.LabelMatchingOperator `json:"operator"`
}

Methods🔗

Validate🔗

Validate checks all the validation constraints that may be defined on LabelSelector fields for violations and returns them.

func (labelSelector *LabelSelector) Validate() error

See also🔗