Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 301 for typeOf (0.18 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/meta/help.go

    		if err != nil {
    			return err
    		}
    		if src.Type().AssignableTo(dest.Type()) {
    			dest.Set(src)
    		} else if src.Type().ConvertibleTo(dest.Type()) {
    			dest.Set(src.Convert(dest.Type()))
    		} else {
    			return fmt.Errorf("item[%d]: can't assign or convert %v into %v", i, src.Type(), dest.Type())
    		}
    	}
    	items.Set(slice)
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 29 16:25:43 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_block_test.go

    	_, err = csiMapper.SetUpDevice()
    	if err == nil {
    		t.Errorf("test should fail, but no error occurred")
    	} else if reflect.TypeOf(transientError) != reflect.TypeOf(err) {
    		t.Fatalf("expected exitError type: %v got: %v (%v)", reflect.TypeOf(transientError), reflect.TypeOf(err), err)
    	}
    }
    
    func TestBlockMapperMapPodDevice(t *testing.T) {
    	plug, tmpDir := newTestPlugin(t, nil)
    	defer os.RemoveAll(tmpDir)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/value_test.go

    		{time.Duration(300), types.DurationType},
    		{time.Now().UTC(), types.TimestampType},
    		{types.NullValue, types.NullType},
    		{NewListValue(), types.ListType},
    		{NewMapValue(), types.MapType},
    		{[]byte("bytes"), types.BytesType},
    		{NewObjectValue(objType), objType},
    	}
    	for i, tc := range tests {
    		idx := i
    		tst := tc
    		t.Run(fmt.Sprintf("[%d]", i), func(t *testing.T) {
    			dv := testValue(t, int64(idx), tst.val)
    			ev := dv.ExprValue()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 10.4K bytes
    - Viewed (0)
  4. src/debug/dwarf/type.go

    type CharType struct {
    	BasicType
    }
    
    // A UcharType represents an unsigned character type.
    type UcharType struct {
    	BasicType
    }
    
    // An IntType represents a signed integer type.
    type IntType struct {
    	BasicType
    }
    
    // A UintType represents an unsigned integer type.
    type UintType struct {
    	BasicType
    }
    
    // A FloatType represents a floating point type.
    type FloatType struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 21.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/facts/facts.go

    //
    // All of Set's methods except String are safe to call concurrently.
    type Set struct {
    	pkg *types.Package
    	mu  sync.Mutex
    	m   map[key]analysis.Fact
    }
    
    type key struct {
    	pkg *types.Package
    	obj types.Object // (object facts only)
    	t   reflect.Type
    }
    
    // ImportObjectFact implements analysis.Pass.ImportObjectFact.
    func (s *Set) ImportObjectFact(obj types.Object, ptr analysis.Fact) bool {
    	if obj == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/GenerateVersionCatalogAccessors.kt

            )
        }
    
    
    private
    fun pluginsBlockFactorySourceNameFor(publicType: TypeOf<*>): String =
        "${publicType.simpleName}$IN_PLUGINS_BLOCK_FACTORIES_SUFFIX"
    
    
    private
    fun pluginsBlockFactoryInternalNameFor(publicType: TypeOf<*>): InternalName =
        InternalName.from("${publicType.concreteClass.internalName.value}$IN_PLUGINS_BLOCK_FACTORIES_SUFFIX")
    
    
    internal
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:28 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  7. cmd/postpolicyform.go

    	for _, val := range rawPolicy.Conditions {
    		switch condt := val.(type) {
    		case map[string]interface{}: // Handle key:value map types.
    			for k, v := range condt {
    				if !isString(v) { // Pre-check value type.
    					// All values must be of type string.
    					return parsedPolicy, fmt.Errorf("Unknown type %s of conditional field value %s found in POST policy form", reflect.TypeOf(condt).String(), condt)
    				}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 06 10:52:41 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/api/meta/help_test.go

    const (
    	fakeObjectItemsNum = 1000
    	exemptObjectIndex  = fakeObjectItemsNum / 4
    )
    
    type SampleSpec struct {
    	Flied int
    }
    
    type FooSpec struct {
    	Flied int
    }
    
    type FooList struct {
    	metav1.TypeMeta
    	metav1.ListMeta
    	Items []Foo
    }
    
    func (s *FooList) DeepCopyObject() runtime.Object { panic("unimplemented") }
    
    type SampleList struct {
    	metav1.TypeMeta
    	metav1.ListMeta
    	Items []Sample
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 29 13:40:46 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation_test.go

    		}
    	}
    
    	// check that anything other than type and properties in metadata is forbidden
    	tt = reflect.TypeOf(Structural{})
    	for i := 0; i < tt.NumField(); i++ {
    		s := Structural{}
    		x := reflect.ValueOf(&s).Elem()
    		fuzzer.Fuzz(x.Field(i).Addr().Interface())
    		s.Type = "object"
    		s.Properties = map[string]Structural{
    			"name":         {},
    			"generateName": {},
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 18:20:00 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. security/pkg/pki/util/crypto_test.go

    		pem     string
    		keyType reflect.Type
    		errMsg  string
    	}{
    		"Invalid PEM string": {
    			pem:    "Invalid PEM string",
    			errMsg: "invalid PEM-encoded key",
    		},
    		"Invalid PEM block type": {
    			pem:    certRSA,
    			errMsg: "unsupported PEM block type for a private key: CERTIFICATE",
    		},
    		"Parse RSA key": {
    			pem:     keyRSA,
    			keyType: reflect.TypeOf(&rsa.PrivateKey{}),
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 13:00:07 UTC 2024
    - 14.6K bytes
    - Viewed (0)
Back to top