Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 387 for typeOf (0.13 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/cbor_test.go

    	return c.obj, c.err
    }
    
    type notRegisteredTyper struct{}
    
    func (notRegisteredTyper) ObjectKinds(obj runtime.Object) ([]schema.GroupVersionKind, bool, error) {
    	return nil, false, runtime.NewNotRegisteredErrForType("test", reflect.TypeOf(obj))
    }
    
    func (notRegisteredTyper) Recognizes(schema.GroupVersionKind) bool {
    	return false
    }
    
    type stubMetaFactory struct {
    	gvk *schema.GroupVersionKind
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 14:57:12 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/doc.go

    shared data structures referenced by multiple facts is preserved.
    
    The Pass type has functions to import and export facts,
    associated either with an object or with a package:
    
    	type Pass struct {
    		...
    		ExportObjectFact func(types.Object, Fact)
    		ImportObjectFact func(types.Object, Fact) bool
    
    		ExportPackageFact func(fact Fact)
    		ImportPackageFact func(*types.Package, Fact) bool
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. pkg/apis/apps/v1/defaults_test.go

    					Template: templateNoLabel,
    					UpdateStrategy: appsv1.DaemonSetUpdateStrategy{
    						Type: appsv1.OnDeleteDaemonSetStrategyType,
    					},
    				},
    			},
    			expected: &appsv1.DaemonSet{
    				Spec: appsv1.DaemonSetSpec{
    					Template: templateNoLabel,
    					UpdateStrategy: appsv1.DaemonSetUpdateStrategy{
    						Type: appsv1.OnDeleteDaemonSetStrategyType,
    					},
    					RevisionHistoryLimit: ptr.To[int32](10),
    				},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  4. src/internal/fuzz/fuzz.go

    	}
    	if err = CheckCorpus(vals, types); err != nil {
    		return nil, err
    	}
    	return vals, nil
    }
    
    // CheckCorpus verifies that the types in vals match the expected types
    // provided.
    func CheckCorpus(vals []any, types []reflect.Type) error {
    	if len(vals) != len(types) {
    		return fmt.Errorf("wrong number of values in corpus entry: %d, want %d", len(vals), len(types))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  5. src/syscall/js/js.go

    	case TypeFunction:
    		return "function"
    	default:
    		panic("bad type")
    	}
    }
    
    func (t Type) isObject() bool {
    	return t == TypeObject || t == TypeFunction
    }
    
    // Type returns the JavaScript type of the value v. It is similar to JavaScript's typeof operator,
    // except that it returns TypeNull instead of TypeObject for null.
    func (v Value) Type() Type {
    	switch v.ref {
    	case valueUndefined.ref:
    		return TypeUndefined
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  6. cmd/test-utils_test.go

    }
    
    // isSameType - compares two object types via reflect.TypeOf
    func isSameType(obj1, obj2 interface{}) bool {
    	return reflect.TypeOf(obj1) == reflect.TypeOf(obj2)
    }
    
    // TestServer encapsulates an instantiation of a MinIO instance with a temporary backend.
    // Example usage:
    //
    //	s := StartTestServer(t,"Erasure")
    //	defer s.Stop()
    type TestServer struct {
    	Root         string
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/installer.go

    			if isSubresource {
    				doc = "partially update " + subresource + " of the specified " + kind
    			}
    			supportedTypes := []string{
    				string(types.JSONPatchType),
    				string(types.MergePatchType),
    				string(types.StrategicMergePatchType),
    				string(types.ApplyPatchType),
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    	// NewFunc is a function that creates new empty object storing a object of type Type.
    	NewFunc func() runtime.Object
    
    	// NewList is a function that creates new empty object storing a list of
    	// objects of type Type.
    	NewListFunc func() runtime.Object
    
    	Codec runtime.Codec
    
    	Clock clock.WithTicker
    }
    
    type watchersMap map[int]*cacheWatcher
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  9. pkg/zdsapi/zds.pb.go

    		return x.SnapshotSent
    	}
    	return nil
    }
    
    type isWorkloadRequest_Payload interface {
    	isWorkloadRequest_Payload()
    }
    
    type WorkloadRequest_Add struct {
    	Add *AddWorkload `protobuf:"bytes,1,opt,name=add,proto3,oneof"`
    }
    
    type WorkloadRequest_Keep struct {
    	Keep *KeepWorkload `protobuf:"bytes,5,opt,name=keep,proto3,oneof"`
    }
    
    type WorkloadRequest_Del struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 02:27:10 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/decode_test.go

    		b, err := hex.DecodeString(h)
    		if err != nil {
    			t.Fatal(err)
    		}
    		return b
    	}
    
    	type test struct {
    		name          string
    		modes         []cbor.DecMode // most tests should run for all modes
    		in            []byte
    		into          interface{} // prototype for concrete destination type. if nil, decode into empty interface value.
    		want          interface{}
    		assertOnError func(t *testing.T, e error)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 18:43:10 UTC 2024
    - 25.6K bytes
    - Viewed (0)
Back to top