go.mod: Update some deps; add new Strings lib to CEL matcher

This commit is contained in:
Matthew Holt
2020-03-20 08:53:40 -06:00
parent f741ab3463
commit 903776238e
3 changed files with 11 additions and 7 deletions

View File

@ -29,6 +29,7 @@ import (
"github.com/google/cel-go/common/types"
"github.com/google/cel-go/common/types/ref"
"github.com/google/cel-go/common/types/traits"
"github.com/google/cel-go/ext"
"github.com/google/cel-go/interpreter/functions"
exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1"
)
@ -88,6 +89,7 @@ func (m *MatchExpression) Provision(_ caddy.Context) error {
decls.String)),
),
cel.CustomTypeAdapter(celHTTPRequestTypeAdapter{}),
ext.Strings(),
)
if err != nil {
return fmt.Errorf("setting up CEL environment: %v", err)