Skip to content

Commit

Permalink
Adding the new seams
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Snaps <alex@wcgw.dev>
  • Loading branch information
alexsnaps committed Oct 14, 2024
1 parent dc50681 commit 47418f2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion api/v1beta2/auth_config_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,21 @@ type PatternExpression struct {
Value string `json:"value,omitempty"`
}

type Expression struct {
Expression string `json:"expression,omitempty"`
}

type Predicate struct {
Predicate string `json:"predicate,omitempty"`
}

// +kubebuilder:validation:Enum:=eq;neq;incl;excl;matches
type PatternExpressionOperator string

type PatternExpressionOrRef struct {
PatternExpression `json:",omitempty"`
PatternRef `json:",omitempty"`

Predicate `json:",omitempty"`
// A list of pattern expressions to be evaluated as a logical AND.
All []UnstructuredPatternExpressionOrRef `json:"all,omitempty"`
// A list of pattern expressions to be evaluated as a logical OR.
Expand Down Expand Up @@ -199,6 +207,8 @@ type ValueOrSelector struct {
// Any pattern supported by https://pkg.go.dev/github.com/tidwall/gjson can be used.
// The following Authorino custom modifiers are supported: @extract:{sep:" ",pos:0}, @replace{old:"",new:""}, @case:upper|lower, @base64:encode|decode and @strip.
Selector string `json:"selector,omitempty"`

Expression Expression `json:",omitempty"`
}

type CommonEvaluatorSpec struct {
Expand Down

0 comments on commit 47418f2

Please sign in to comment.