Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NewObjectVal (0.09 sec)

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

    // ObjectVal is the CEL Val for an object that is constructed via the object
    // construction syntax.
    type ObjectVal struct {
    	typeRef TypeRef
    	fields  map[string]ref.Val
    }
    
    // NewObjectVal creates an ObjectVal by its TypeRef and its fields.
    func NewObjectVal(typeRef TypeRef, fields map[string]ref.Val) *ObjectVal {
    	return &ObjectVal{
    		typeRef: typeRef,
    		fields:  fields,
    	}
    }
    
    var _ ref.Val = (*ObjectVal)(nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 27 21:55:08 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top