- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for typemap (0.1 sec)
-
pkg/typemap/map_test.go
typemap.Set(tm, &TestStruct{Field: "pointer"}) typemap.Set[TestInterface[string]](tm, TestStruct{Field: "interface"}) assert.Equal(t, typemap.Get[int](tm), ptr.Of(1)) assert.Equal(t, typemap.Get[int32](tm), ptr.Of(int32(2))) assert.Equal(t, typemap.Get[string](tm), ptr.Of("string")) assert.Equal(t, typemap.Get[*TestStruct](tm), ptr.Of(&TestStruct{Field: "pointer"}))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 16:38:40 UTC 2024 - 1.5K bytes - Viewed (0) -
pkg/typemap/map.go
// limitations under the License. package typemap import ( "reflect" "istio.io/istio/pkg/ptr" ) // TypeMap provides a map that holds a map of Type -> Value. There can be only a single value per type. // The value stored for a type must be of the same type as the key. type TypeMap struct { inner map[reflect.Type]any } func NewTypeMap() TypeMap { return TypeMap{make(map[reflect.Type]any)} }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 16:38:40 UTC 2024 - 1.2K bytes - Viewed (0) -
pkg/config/schema/kubetypes/common.go
"istio.io/istio/pkg/config/schema/gvk" "istio.io/istio/pkg/ptr" "istio.io/istio/pkg/typemap" ) func MustGVRFromType[T runtime.Object]() schema.GroupVersionResource { if gk, ok := getGvk(ptr.Empty[T]()); ok { gr, ok := gvk.ToGVR(gk) if !ok { panic(fmt.Sprintf("unknown GVR for GVK %v", gk)) } return gr } if rp := typemap.Get[RegisterType[T]](registeredTypes); rp != nil { return (*rp).GetGVR() }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 16:38:40 UTC 2024 - 2.2K bytes - Viewed (0) -
pkg/config/schema/kubeclient/common.go
"istio.io/istio/pkg/config/schema/kubetypes" "istio.io/istio/pkg/kube/informerfactory" ktypes "istio.io/istio/pkg/kube/kubetypes" "istio.io/istio/pkg/log" "istio.io/istio/pkg/ptr" "istio.io/istio/pkg/typemap" ) type ClientGetter interface { // Ext returns the API extensions client. Ext() kubeext.Interface // Kube returns the core kube client Kube() kubernetes.Interface // Dynamic client.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 16:38:40 UTC 2024 - 8.1K bytes - Viewed (0) -
pilot/pkg/xds/monitoring.go
model.DebugTrigger: pushTriggers.With(typeTag.Value(string(model.DebugTrigger))), model.SecretTrigger: pushTriggers.With(typeTag.Value(string(model.SecretTrigger))), model.NetworksTrigger: pushTriggers.With(typeTag.Value(string(model.NetworksTrigger))), model.ProxyRequest: pushTriggers.With(typeTag.Value(string(model.ProxyRequest))),
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 00:26:45 UTC 2024 - 6.7K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/deadstore_test.go
Valu("store2", OpStore, types.TypeMem, 0, c.config.Types.Bool, "addr2", "v", "store1"), Valu("store3", OpStore, types.TypeMem, 0, c.config.Types.Bool, "addr1", "v", "store2"), Valu("store4", OpStore, types.TypeMem, 0, c.config.Types.Bool, "addr3", "v", "store3"), Goto("exit")), Bloc("exit", Exit("store3"))) CheckFunc(fun.f) dse(fun.f) CheckFunc(fun.f)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 25 20:07:26 UTC 2024 - 5.6K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/initialization/transform/utils/DefaultInstrumentationAnalysisSerializer.java
} private static void writeTypesMap(Map<String, Set<String>> typesMap, Encoder encoder, HierarchicalNameSerializer nameSerializer) throws Exception { MapSerializer<String, Set<String>> serializer = new MapSerializer<>(nameSerializer, new SetSerializer<>(nameSerializer)); serializer.write(encoder, typesMap); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 18 15:08:33 UTC 2024 - 5.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/format.go
return nil, fmt.Errorf("type conversion error from 'Format' to '%v'", typeDesc) } func (d *Format) ConvertToType(typeVal ref.Type) ref.Val { switch typeVal { case FormatType: return d case types.TypeType: return FormatType default: return types.NewErr("type conversion error from '%s' to '%s'", FormatType, typeVal) } } func (d *Format) Equal(other ref.Val) ref.Val { otherDur, ok := other.(*Format) if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 17:22:44 UTC 2024 - 1.8K bytes - Viewed (0) -
platforms/core-configuration/stdlib-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/stdlib/CollectionCodecs.kt
*/ val propertiesCodec: Codec<Properties> = mapCodec { Properties() } val treeMapCodec: Codec<TreeMap<Any?, Any?>> = codec( { write(it.comparator()) writeMap(it) }, { @Suppress("unchecked_cast") val comparator = read() as Comparator<Any?>? readMapInto { TreeMap(comparator) } } )
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat May 25 20:43:52 UTC 2024 - 3.7K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/initialization/transform/InstrumentationAnalysisTransform.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 23 13:19:14 UTC 2024 - 9.1K bytes - Viewed (0)