package
0.0.98
Repository: https://github.com/gardener/component-spec.git
Documentation: pkg.go.dev

# Functions

MatchSelectors checks whether all selectors matches the given obj.
NewJSONSchemaSelector creates a new jsonschema selector from a gojsonschema.
NewJSONSchemaSelectorFromBytes creates a new jsonschema selector from a gojsonschema.
NewJSONSchemaSelectorFromString creates a new jsonschema selector from a gojsonschema.
NewJSONSchemaSelectorFromString creates a new jsonschema selector from a gojsonschema.
ParseDefaultSelector creates a Identity selector from a - json encoded selector - map[string]Selector A selector can be - a string: the value is directly matched - a array of strings: one selector in the array must match.
ParseRegexSelector creates a Identity selector from a - json encoded selector - map[string]Selector A selector can be - a string: the value is directly matched - a array of strings: one selector in the array must match.

# Structs

JSONSchemaSelector uses a jsonschema to match a specific object.

# Interfaces

Interface defines a selector interface that matches a map of string to string.

# Type aliases

DefaultSelector defines the selector for the identity of an object.
RegexSelector defines the selector for the identity of an object.
SelectorFunc describes a function that can be used as selector interface.