Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 227 for CEL (0.03 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/mutation/typeprovider.go

    limitations under the License.
    */
    
    package mutation
    
    import (
    	"k8s.io/apiserver/pkg/cel/mutation/common"
    
    	"github.com/google/cel-go/cel"
    	"github.com/google/cel-go/common/types"
    	"github.com/google/cel-go/common/types/ref"
    )
    
    // TypeProvider is a specialized CEL type provider that understands
    // the Object type alias that is used to construct an Apply configuration for
    // a mutation operation.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 21:02:36 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/library/ip.go

    		cel.MemberOverload("ip_is_global_unicast", []*cel.Type{apiservercel.IPType}, cel.BoolType,
    			cel.UnaryBinding(isGlobalUnicast)),
    	},
    	"isIP": {
    		cel.Overload("is_ip", []*cel.Type{cel.StringType}, cel.BoolType,
    			cel.UnaryBinding(isIP)),
    	},
    	"string": {
    		cel.Overload("ip_to_string", []*cel.Type{apiservercel.IPType}, cel.StringType,
    			cel.UnaryBinding(ipToString)),
    	},
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 11:02:34 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/mutation/env_test.go

    package mutation
    
    import (
    	"testing"
    
    	"github.com/google/cel-go/cel"
    
    	"k8s.io/apimachinery/pkg/util/version"
    	"k8s.io/apiserver/pkg/cel/environment"
    )
    
    // mustCreateEnv creates the default env for testing, with given option.
    // it fatally fails the test if the env fails to set up.
    func mustCreateEnv(t testing.TB, envOptions ...cel.EnvOption) *cel.Env {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/lazy/lazy_test.go

    */
    
    package lazy
    
    import (
    	"fmt"
    	"testing"
    
    	"github.com/google/cel-go/cel"
    	"github.com/google/cel-go/common/types"
    	"github.com/google/cel-go/common/types/ref"
    	"github.com/google/cel-go/interpreter"
    
    	"k8s.io/apimachinery/pkg/util/version"
    	apiservercel "k8s.io/apiserver/pkg/cel"
    	"k8s.io/apiserver/pkg/cel/environment"
    )
    
    func TestLazyMapType(t *testing.T) {
    	env, variablesType, err := buildTestEnv()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/authentication/cel/interface.go

    limitations under the License.
    */
    
    // Package cel contains the CEL related interfaces and structs for authentication.
    package cel
    
    import (
    	"context"
    
    	celgo "github.com/google/cel-go/cel"
    	"github.com/google/cel-go/common/types/ref"
    
    	"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
    )
    
    // ExpressionAccessor is an interface that provides access to a CEL expression.
    type ExpressionAccessor interface {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 17:59:05 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/validator_test.go

    	"k8s.io/apiserver/pkg/admission/plugin/cel"
    	"k8s.io/apiserver/pkg/admission/plugin/webhook/matchconditions"
    	celconfig "k8s.io/apiserver/pkg/apis/cel"
    	"k8s.io/apiserver/pkg/authorization/authorizer"
    	apiservercel "k8s.io/apiserver/pkg/cel"
    	"k8s.io/apiserver/pkg/cel/environment"
    )
    
    var _ cel.Filter = &fakeCelFilter{}
    
    type fakeCelFilter struct {
    	evaluations []cel.EvaluationResult
    	throwError  bool
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/cel/cidr.go

    limitations under the License.
    */
    
    package cel
    
    import (
    	"fmt"
    	"math"
    	"net/netip"
    	"reflect"
    
    	"github.com/google/cel-go/cel"
    	"github.com/google/cel-go/common/types"
    	"github.com/google/cel-go/common/types/ref"
    )
    
    // CIDR provides a CEL representation of an network address.
    type CIDR struct {
    	netip.Prefix
    }
    
    var (
    	CIDRType = cel.OpaqueType("net.CIDR")
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 12:03:04 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/validator.go

    	"k8s.io/apiserver/pkg/authorization/authorizer"
    	apiservercel "k8s.io/apiserver/pkg/cel"
    	"k8s.io/klog/v2"
    )
    
    // validator implements the Validator interface
    type validator struct {
    	celMatcher            matchconditions.Matcher
    	validationFilter      cel.Filter
    	auditAnnotationFilter cel.Filter
    	messageFilter         cel.Filter
    	failPolicy            *v1.FailurePolicyType
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 23:31:44 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/cel/environment/environment_test.go

    limitations under the License.
    */
    
    package environment
    
    import (
    	"context"
    	"fmt"
    	"testing"
    
    	"github.com/google/cel-go/cel"
    
    	"k8s.io/apimachinery/pkg/util/version"
    	"k8s.io/apiserver/pkg/authorization/authorizer"
    	apiservercel "k8s.io/apiserver/pkg/cel"
    	"k8s.io/apiserver/pkg/cel/library"
    )
    
    type envTypeAndVersion struct {
    	version *version.Version
    	envType Type
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 10K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/plugin.go

    var (
    	compositionEnvTemplateWithStrictCost *cel.CompositionEnv = func() *cel.CompositionEnv {
    		compositionEnvTemplateWithStrictCost, err := cel.NewCompositionEnv(cel.VariablesTypeName, environment.MustBaseEnvSet(environment.DefaultCompatibilityVersion(), true))
    		if err != nil {
    			panic(err)
    		}
    
    		return compositionEnvTemplateWithStrictCost
    	}()
    	compositionEnvTemplateWithoutStrictCost *cel.CompositionEnv = func() *cel.CompositionEnv {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top