Skip to content

MatcherConfigBuilderπŸ”—

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.

ConstructorπŸ”—

func NewMatcherConfigBuilder() *MatcherConfigBuilder

MethodsπŸ”—

BuildπŸ”—

Builds the object.

func (builder *MatcherConfigBuilder) Build() (MatcherConfig, error)

IdπŸ”—

The matcher id. This is used to find the matcher implementation from registry.

func (builder *MatcherConfigBuilder) Id(id string) *MatcherConfigBuilder

OptionsπŸ”—

The matcher options. This is specific to the matcher implementation.

func (builder *MatcherConfigBuilder) Options(options any) *MatcherConfigBuilder

See alsoπŸ”—