Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 301 for typeOf (0.14 sec)

  1. src/internal/concurrent/hashtriemap.go

    // the unique package, but can be used elsewhere as well.
    type HashTrieMap[K, V comparable] struct {
    	root     *indirect[K, V]
    	keyHash  hashFunc
    	keyEqual equalFunc
    	valEqual equalFunc
    	seed     uintptr
    }
    
    // NewHashTrieMap creates a new HashTrieMap for the provided key and value.
    func NewHashTrieMap[K, V comparable]() *HashTrieMap[K, V] {
    	var m map[K]V
    	mapType := abi.TypeOf(m).MapType()
    	ht := &HashTrieMap[K, V]{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 16:01:55 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store.go

    // force deletion and recreation of keys to weaken that angle.
    type authenticatedDataString string
    
    // AuthenticatedData implements the value.Context interface.
    func (d authenticatedDataString) AuthenticatedData() []byte {
    	return []byte(string(d))
    }
    
    var _ value.Context = authenticatedDataString("")
    
    type store struct {
    	client              *clientv3.Client
    	codec               runtime.Codec
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 11:56:42 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  3. pkg/config/model.go

    	gogotypes "github.com/gogo/protobuf/types"   // nolint: depguard
    	"google.golang.org/protobuf/proto"
    	"google.golang.org/protobuf/reflect/protoreflect"
    	"google.golang.org/protobuf/types/known/anypb"
    	"google.golang.org/protobuf/types/known/structpb"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	kubetypes "k8s.io/apimachinery/pkg/types"
    	"sigs.k8s.io/yaml"
    
    	"istio.io/api/label"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  4. src/encoding/gob/encoder_test.go

    func TestTypeToPtrType(t *testing.T) {
    	// Encode a T, decode a *T
    	type Type0 struct {
    		A int
    	}
    	t0 := Type0{7}
    	t0p := new(Type0)
    	if err := encAndDec(t0, t0p); err != nil {
    		t.Error(err)
    	}
    }
    
    func TestPtrTypeToType(t *testing.T) {
    	// Encode a *T, decode a T
    	type Type1 struct {
    		A uint
    	}
    	t1p := &Type1{17}
    	var t1 Type1
    	if err := encAndDec(t1, t1p); err != nil {
    		t.Error(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  5. pkg/apis/apps/v1beta2/defaults_test.go

    					Template: templateNoLabel,
    					UpdateStrategy: appsv1beta2.DaemonSetUpdateStrategy{
    						Type: appsv1beta2.OnDeleteDaemonSetStrategyType,
    					},
    				},
    			},
    			expected: &appsv1beta2.DaemonSet{
    				Spec: appsv1beta2.DaemonSetSpec{
    					Template: templateNoLabel,
    					UpdateStrategy: appsv1beta2.DaemonSetUpdateStrategy{
    						Type: appsv1beta2.OnDeleteDaemonSetStrategyType,
    					},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  6. 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)
  7. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/response.go

    		return fmt.Errorf("unable to encode watch object %T: %v", obj, err)
    	}
    
    	// ContentType is not required here because we are defaulting to the serializer type.
    	outEvent := &metav1.WatchEvent{
    		Type:   string(event.Type),
    		Object: runtime.RawExtension{Raw: e.buffer.Bytes()},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 09:07:03 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit_test.go

    	inner := &responsewriter.FakeResponseWriter{}
    	actual := decorateResponseWriter(context.Background(), inner, nil, nil, nil)
    	switch v := actual.(type) {
    	case *auditResponseWriter:
    	default:
    		t.Errorf("Expected auditResponseWriter, got %v", reflect.TypeOf(v))
    	}
    	if innerGot := actual.(responsewriter.UserProvidedDecorator).Unwrap(); inner != innerGot {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 22.6K bytes
    - Viewed (0)
Back to top