MatcherConfigπ
NOTE: (copied from dashboard_kind.cue, since not exported)
Matcher is a predicate configuration. Based on the config a set of field(s) or values is filtered in order to apply override / transformation.
It comes with in id ( to resolve implementation from registry) and a configuration thatβs specific to a particular matcher type.
Definitionπ
type MatcherConfig struct {
// The matcher id. This is used to find the matcher implementation from registry.
Id string `json:"id"`
// The matcher options. This is specific to the matcher implementation.
Options any `json:"options,omitempty"`
}
Methodsπ
UnmarshalJSONStrictπ
UnmarshalJSONStrict implements a custom JSON unmarshalling logic to decode MatcherConfig
from JSON.
Note: the unmarshalling done by this function is strict. It will fail over required fields being absent from the input, fields having an incorrect type, unexpected fields being present, β¦
Equalsπ
Equals tests the equality of two MatcherConfig
objects.
Validateπ
Validate checks all the validation constraints that may be defined on MatcherConfig
fields for violations and returns them.