Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 301 for typeOf (0.29 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/codec.go

    }
    
    // SerializerInfoForMediaType returns the first info in types that has a matching media type (which cannot
    // include media-type parameters), or the first info with an empty media type, or false if no type matches.
    func SerializerInfoForMediaType(types []SerializerInfo, mediaType string) (SerializerInfo, bool) {
    	for _, info := range types {
    		if info.MediaType == mediaType {
    			return info, true
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 03:20:30 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  2. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/ApiExtensionsGenerator.kt

    //
    // Rules
    // 1. an extension should either require no type parameters, a single reifeid type parameter, at call site
    // 2. all type parameters must all be reifeid or values (TypeOf, KClass or Class)
    // 3. when overloading, prefer TypeOf over Class
    // 4. in case the policy forbids your overloads, discuss
    private
    fun kotlinExtensionFunctionsFor(type: ApiType, sinceSupplier: (String) -> String?): Sequence<KotlinExtensionFunction> =
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 20 21:41:53 UTC 2023
    - 18.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/codec_test.go

    	_, _, err := strictCodec.Decode([]byte(duplicateKeys), nil, nil)
    	if !runtime.IsStrictDecodingError(err) {
    		t.Fatalf("StrictDecodingError not returned on object with duplicate keys: %v, type: %v", err, reflect.TypeOf(err))
    	}
    
    	nonStrictCodec := newCodecFactory(s, newSerializersForScheme(s, testMetaFactory{}, CodecFactoryOptions{Pretty: true, Strict: false})).LegacyCodec()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 13.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/protobuf.go

    // as-is (any type info passed with the object will be used).
    func NewSerializer(creater runtime.ObjectCreater, typer runtime.ObjectTyper) *Serializer {
    	return &Serializer{
    		prefix:  protoEncodingPrefix,
    		creater: creater,
    		typer:   typer,
    	}
    }
    
    // Serializer handles encoding versioned objects into the proper wire form
    type Serializer struct {
    	prefix  []byte
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 23 13:38:23 UTC 2022
    - 17.8K bytes
    - Viewed (0)
  5. test/escape_reflect.go

    }
    
    var (
    	intTyp    = reflect.TypeOf(int(0))     // ERROR "0 does not escape"
    	uintTyp   = reflect.TypeOf(uint(0))    // ERROR "uint\(0\) does not escape"
    	stringTyp = reflect.TypeOf(string("")) // ERROR ".. does not escape"
    	bytesTyp  = reflect.TypeOf([]byte{})   // ERROR "\[\]byte{} does not escape"
    )
    
    // Unfortunate: should not escape.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  6. platforms/jvm/plugins-java-base/src/integTest/groovy/org/gradle/api/plugins/JavaBasePluginTest.groovy

    import org.gradle.util.TestUtil
    import org.junit.Rule
    import spock.lang.Issue
    
    import static org.gradle.api.file.FileCollectionMatchers.sameCollection
    import static org.gradle.api.reflect.TypeOf.typeOf
    import static org.gradle.util.internal.WrapUtil.toLinkedSet
    
    class JavaBasePluginTest extends AbstractProjectBuilderSpec {
        @Rule
        public SetSystemProperties sysProperties = new SetSystemProperties()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 12:15:28 UTC 2023
    - 16.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/runtime/converter_test.go

    }
    type InlinedBB struct {
    	BB int64 `json:"bb"`
    }
    type InlinedBBB struct {
    	BBB   int64         `json:"bbb"`
    	Child UnknownLevel3 `json:"child"`
    }
    
    type UnknownLevel3 struct {
    	C          int64 `json:"c"`
    	InlinedCC  `json:",inline"`
    	InlinedCCC `json:",inline"`
    }
    type InlinedCC struct {
    	CC int64 `json:"cc"`
    }
    type InlinedCCC struct {
    	CCC int64 `json:"ccc"`
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 16:02:13 UTC 2023
    - 22.9K bytes
    - Viewed (0)
  8. 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)
  9. operator/pkg/manifest/shared.go

    					for key, value := range originMap[subPath].(map[string]any) {
    						if reflect.TypeOf(value).Kind() == reflect.Int {
    							convertedProxyMetadata[key] = strconv.FormatInt(value.(int64), 10)
    						}
    						if reflect.TypeOf(value).Kind() == reflect.Bool {
    							convertedProxyMetadata[key] = strconv.FormatBool(value.(bool))
    						}
    						if reflect.TypeOf(value).Kind() == reflect.Float64 {
    							convertedProxyMetadata[key] = fmt.Sprint(value)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 03 06:27:07 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  10. 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)
Back to top