Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for typeOf (0.12 sec)

  1. 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)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/decode.go

    		// Error on map keys that don't map to a field in the destination struct.
    		ExtraReturnErrors: cbor.ExtraDecErrorUnknownField,
    
    		// Decode maps into concrete type map[string]interface{} when the destination is an
    		// interface{}.
    		DefaultMapType: reflect.TypeOf(map[string]interface{}(nil)),
    
    		// A CBOR text string whose content is not a valid UTF-8 sequence is well-formed but
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 14:03:36 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testshared/testdata/depBase/dep.go

    var V int = 1
    
    var HasMask []string = []string{"hi"}
    
    type HasProg struct {
    	array [1024]*byte
    }
    
    type Dep struct {
    	X int
    }
    
    func (d *Dep) Method() int {
    	// This code below causes various go.itab.* symbols to be generated in
    	// the shared library. Similar code in ../exe/exe.go results in
    	// exercising https://golang.org/issues/17594
    	reflect.TypeOf(os.Stdout).Elem()
    	return 10
    }
    
    func F() int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 1K bytes
    - Viewed (0)
  4. security/pkg/pki/util/crypto.go

    	default:
    		return nil, fmt.Errorf("unsupported PEM block type for a private key: %s", kb.Type)
    	}
    }
    
    // GetRSAKeySize returns the size if it is RSA key, otherwise it returns an error.
    func GetRSAKeySize(privKey crypto.PrivateKey) (int, error) {
    	if t := reflect.TypeOf(privKey); t != reflect.TypeOf(&rsa.PrivateKey{}) {
    		return 0, fmt.Errorf("key type is not RSA: %v", t)
    	}
    	pkey := privKey.(*rsa.PrivateKey)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 13:00:07 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  5. pkg/controlplane/instance_test.go

    	}
    
    	g := 0 // generic index
    	for k := range kube {
    		kt := reflect.TypeOf(kube[k])
    		var gt reflect.Type
    		if g < len(generic) {
    			gt = reflect.TypeOf(generic[g])
    		}
    
    		// special case: we identify full core and generic core
    		if kt.Kind() == reflect.Ptr && kt.Elem().PkgPath() == reflect.TypeOf(corerest.Config{}).PkgPath() {
    			kt = reflect.TypeOf(&corerest.GenericConfig{})
    		}
    
    		if kt == gt {
    			g++
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 11:50:04 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  6. pkg/kubelet/apis/config/helpers_test.go

    //lint:file-ignore U1000 Ignore dummy types, used by tests.
    
    // dummy helper types
    type foo struct {
    	foo int
    }
    type bar struct {
    	str    string
    	strptr *string
    
    	ints      []int
    	stringMap map[string]string
    
    	foo    foo
    	fooptr *foo
    
    	bars   []foo
    	barMap map[string]foo
    
    	skipRecurseStruct  foo
    	skipRecursePointer *foo
    	skipRecurseList1   []foo
    	skipRecurseList2   []foo
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/ProjectExtensions.kt

    
    /**
     * Creates a [Task] with the given [name] and [type], configures it with the given [configuration] action,
     * and adds it to this project tasks container.
     */
    inline fun <reified type : Task> Project.task(name: String, noinline configuration: type.() -> Unit) =
        task(name, type::class, configuration)
    
    
    /**
     * Creates a [Task] with the given [name] and [type], and adds it to this project tasks container.
     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 09:50:04 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stringintconv/string.go

    			return // invalid type
    		}
    
    		var V0 types.Type // integral type in the type set of V
    
    		for _, vt := range vtypes {
    			u, _ := vt.Underlying().(*types.Basic)
    			if u != nil && u.Info()&types.IsInteger != 0 {
    				switch u.Kind() {
    				case types.Byte, types.Rune, types.UntypedRune:
    					continue
    				}
    				V0 = vt
    				break
    			}
    		}
    
    		if V0 == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/api.go

    func (info *Info) recordTypes() bool {
    	return info.Types != nil || info.StoreTypesInSyntax
    }
    
    // TypeOf returns the type of expression e, or nil if not found.
    // Precondition 1: the Types map is populated or StoreTypesInSyntax is set.
    // Precondition 2: Uses and Defs maps are populated.
    func (info *Info) TypeOf(e syntax.Expr) Type {
    	if info.Types != nil {
    		if t, ok := info.Types[e]; ok {
    			return t.Type
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  10. 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)
Back to top