Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataFilterSelector ¶
type DataFilterSelector struct { JsonPathsSelector UsersSelector }
func NewDataFilterSelector ¶
func NewDataFilterSelector(sel v1alpha1.Selector) (DataFilterSelector, error)
type JsonPathsSelector ¶
func NewJsonPathsSelector ¶
func NewJsonPathsSelector(jsonpaths []string) (JsonPathsSelector, error)
Parse string array of jsonpaths and return JsonPathsSelector for matching expressions Returns an error if a parse fails
func (JsonPathsSelector) Matches ¶
func (js JsonPathsSelector) Matches(jsonString string) bool
Match json string against expressions in JsonPathsSelector Returns true if all jsonpath expressions produce a result (AND) Returns true if there are no expressions in the JsonPathsSelector Returns false if input does not parse as json
type UsersSelector ¶
type UsersSelector []string
func (UsersSelector) Matches ¶
func (us UsersSelector) Matches(user string) bool
Return true if UsersSelector contains entry Return true if UsersSelector is empty
Click to show internal directories.
Click to hide internal directories.