- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 139 for genMetrics (0.2 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/validator.go
for i, evalResult := range evalResults { var decision = &decisions[i] // TODO: move this to generics validation, ok := evalResult.ExpressionAccessor.(*ValidationCondition) if !ok { klog.Error("Invalid type conversion to ValidationCondition") decision.Action = policyDecisionActionForError(f)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 23:31:44 UTC 2024 - 9.2K bytes - Viewed (0) -
pkg/volume/csi/csi_metrics.go
mc := &metricsCsi{volumeID: volumeID, targetPath: targetPath} mc.csiClientGetter.driverName = driverName return mc } func (mc *metricsCsi) GetMetrics() (*volume.Metrics, error) { startTime := time.Now() defer servermetrics.CollectVolumeStatCalDuration(string(mc.csiClientGetter.driverName), startTime) currentTime := metav1.Now()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 11 06:07:40 UTC 2023 - 3.9K bytes - Viewed (0) -
docs/de/docs/python-types.md
#### Generische Typen Diese Typen, die Typ-Parameter in eckigen Klammern akzeptieren, werden **generische Typen** oder **Generics** genannt. === "Python 3.10+" Sie können die eingebauten Typen als Generics verwenden (mit eckigen Klammern und Typen darin): * `list` * `tuple` * `set` * `dict`
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 30 20:29:25 UTC 2024 - 19.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/ifaceassert/ifaceassert.go
// ensure that v and t are interfaces V, _ := v.Underlying().(*types.Interface) T, _ := t.Underlying().(*types.Interface) if V == nil || T == nil { return nil } // Mitigations for interface comparisons and generics. // TODO(https://github.com/golang/go/issues/50658): Support more precise conclusion. if free.Has(V) || free.Has(T) { return nil } if f, wrongType := types.MissingMethod(V, T, false); wrongType { return f }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 2.8K bytes - Viewed (0) -
docs/en/docs/python-types.md
#### Generic types These types that take type parameters in square brackets are called **Generic types** or **Generics**, for example: === "Python 3.10+" You can use the same builtin types as generics (with square brackets and types inside): * `list` * `tuple` * `set` * `dict`
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri May 31 02:38:05 UTC 2024 - 17.1K bytes - Viewed (0) -
pkg/config/mesh/mesh_test.go
if err != nil { t.Fatal(err) } if got.DefaultConfig.Tracing.GetZipkin() != nil { t.Error("Failed to override tracing") } if len(got.DefaultProviders.GetMetrics()) != 0 { t.Errorf("default providers deep merge failed, got %v", got.DefaultProviders.GetMetrics()) } if !cmp.Equal(getExtensionProviders(got.ExtensionProviders), []string{"prometheus", "stackdriver", "envoy", "sd"}, protocmp.Transform()) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 11.7K bytes - Viewed (0) -
pkg/volume/volume.go
MetricsProvider } // MetricsProvider exposes metrics (e.g. used,available space) related to a // Volume. type MetricsProvider interface { // GetMetrics returns the Metrics for the Volume. Maybe expensive for // some implementations. GetMetrics() (*Metrics, error) } // Metrics represents the used and available bytes of the Volume. type Metrics struct { // The time at which these stats were updated.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 11.8K bytes - Viewed (0) -
src/internal/saferio/io.go
return -1 } if c*size > chunk { c = chunk / size if c == 0 { c = 1 } } return int(c) } // SliceCap is like SliceCapWithSize but using generics. func SliceCap[E any](c uint64) int { var v E size := uint64(unsafe.Sizeof(v)) return SliceCapWithSize(size, c)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 31 00:34:05 UTC 2023 - 3.4K bytes - Viewed (0) -
test/typeparam/slices.go
} return _Reduce(s[1:], s[0], _Min[Elem]) } // _Append adds values to the end of a slice, returning a new slice. // This is like the predeclared append function; it's an example // of how to write it using generics. We used to write code like // this before append was added to the language, but we had to write // a separate copy for each type. func _Append[T any](s []T, t ...T) []T { lens := len(s) tot := lens + len(t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 7.8K bytes - Viewed (0) -
internal/grid/README.md
// Do something with payload return NewMSSWith(map[string]string{"result": "ok"}), nil } // Create a typed handler. // Due to current generics limitations, a constructor of the empty type must be provided. instance := grid.NewSingleHandler[*grid.MSS, *grid.MSS](h, grid.NewMSS, grid.NewMSS) // Register the handler on the manager
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 9.4K bytes - Viewed (0)