Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 106 for CEL (0.22 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/library/regex.go

    			cel.ListType(cel.StringType),
    			cel.BinaryBinding(func(str, regex ref.Val) ref.Val {
    				return findAll(str, regex, types.Int(-1))
    			})),
    		cel.MemberOverload("string_find_all_string_int",
    			[]*cel.Type{cel.StringType, cel.StringType, cel.IntType},
    			cel.ListType(cel.StringType),
    			cel.FunctionBinding(findAll)),
    	},
    }
    
    func (*regex) CompileOptions() []cel.EnvOption {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/library/urls.go

    			cel.UnaryBinding(getPort))},
    	"getEscapedPath": {
    		cel.MemberOverload("url_get_escaped_path", []*cel.Type{apiservercel.URLType}, cel.StringType,
    			cel.UnaryBinding(getEscapedPath))},
    	"getQuery": {
    		cel.MemberOverload("url_get_query", []*cel.Type{apiservercel.URLType},
    			cel.MapType(cel.StringType, cel.ListType(cel.StringType)),
    			cel.UnaryBinding(getQuery))},
    	"isURL": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/library/test.go

    	}
    }
    
    func (t *testLib) CompileOptions() []cel.EnvOption {
    	var options []cel.EnvOption
    
    	if t.version == 0 {
    		options = append(options, cel.Function("test",
    			cel.Overload("test", []*cel.Type{}, cel.BoolType,
    				cel.FunctionBinding(func(args ...ref.Val) ref.Val {
    					return types.True
    				}))))
    	}
    
    	if t.version >= 1 {
    		options = append(options, cel.Function("test",
    			cel.Overload("test", []*cel.Type{}, cel.BoolType,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/authentication/cel/compile.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package cel
    
    import (
    	"fmt"
    
    	"github.com/google/cel-go/cel"
    
    	"k8s.io/apimachinery/pkg/util/version"
    	apiservercel "k8s.io/apiserver/pkg/cel"
    	"k8s.io/apiserver/pkg/cel/environment"
    )
    
    const (
    	claimsVarName = "claims"
    	userVarName   = "user"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 17:59:05 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/matchconditions/matcher_test.go

    	celtypes "github.com/google/cel-go/common/types"
    	"github.com/stretchr/testify/require"
    
    	admissionv1 "k8s.io/api/admission/v1"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"k8s.io/apiserver/pkg/admission"
    	"k8s.io/apiserver/pkg/admission/plugin/cel"
    )
    
    var _ cel.Filter = &fakeCelFilter{}
    
    type fakeCelFilter struct {
    	evaluations []cel.EvaluationResult
    	throwError  bool
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 15 00:53:08 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/cel/environment/base.go

    package environment
    
    import (
    	"fmt"
    	"strconv"
    	"sync"
    
    	"github.com/google/cel-go/cel"
    	"github.com/google/cel-go/checker"
    	"github.com/google/cel-go/ext"
    	"github.com/google/cel-go/interpreter"
    	"golang.org/x/sync/singleflight"
    
    	"k8s.io/apimachinery/pkg/util/version"
    	celconfig "k8s.io/apiserver/pkg/apis/cel"
    	"k8s.io/apiserver/pkg/cel/library"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 15:51:08 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/cel/library/cidr.go

    		cel.MemberOverload("cidr_contains_ip_string", []*cel.Type{apiservercel.CIDRType, cel.StringType}, cel.BoolType,
    			cel.BinaryBinding(cidrContainsIPString)),
    		cel.MemberOverload("cidr_contains_ip_ip", []*cel.Type{apiservercel.CIDRType, apiservercel.IPType}, cel.BoolType,
    			cel.BinaryBinding(cidrContainsIP)),
    	},
    	"containsCIDR": {
    		cel.MemberOverload("cidr_contains_cidr_string", []*cel.Type{apiservercel.CIDRType, cel.StringType}, cel.BoolType,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 12:03:04 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/interface.go

    limitations under the License.
    */
    
    package cel
    
    import (
    	"context"
    	"time"
    
    	"github.com/google/cel-go/cel"
    	"github.com/google/cel-go/common/types/ref"
    
    	v1 "k8s.io/api/admission/v1"
    	corev1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apiserver/pkg/admission"
    	"k8s.io/apiserver/pkg/authorization/authorizer"
    	"k8s.io/apiserver/pkg/cel/environment"
    )
    
    type ExpressionAccessor interface {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/cel/library/format.go

    	},
    }
    
    var formatLibraryDecls = map[string][]cel.FunctionOpt{
    	"validate": {
    		cel.MemberOverload("format-validate", []*cel.Type{apiservercel.FormatType, cel.StringType}, cel.OptionalType(cel.ListType(cel.StringType)), cel.BinaryBinding(formatValidate)),
    	},
    	"format.named": {
    		cel.Overload("format-named", []*cel.Type{cel.StringType}, cel.OptionalType(apiservercel.FormatType), cel.UnaryBinding(func(name ref.Val) ref.Val {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/cel/format.go

    limitations under the License.
    */
    
    package cel
    
    import (
    	"fmt"
    	"reflect"
    
    	"github.com/google/cel-go/cel"
    	"github.com/google/cel-go/checker/decls"
    	"github.com/google/cel-go/common/types"
    	"github.com/google/cel-go/common/types/ref"
    )
    
    var (
    	FormatObject = decls.NewObjectType("kubernetes.NamedFormat")
    	FormatType   = cel.ObjectType("kubernetes.NamedFormat")
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top