- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 78 for RES (0.03 sec)
-
pkg/kube/krt/static.go
) type staticList[T any] struct { vals map[Key[T]]T id collectionUID } func NewStaticCollection[T any](vals []T) Collection[T] { res := map[Key[T]]T{} for _, v := range vals { res[GetKey(v)] = v } return &staticList[T]{ vals: res, id: nextUID(), } } func (s *staticList[T]) GetKey(k Key[T]) *T { if o, f := s.vals[k]; f { return &o } return nil }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 23:33:56 UTC 2024 - 2.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/alias.go
obj := NewTypeName(pos, orig.obj.pkg, orig.obj.name, nil) rhs := check.subst(pos, orig.fromRHS, makeSubstMap(orig.TypeParams().list(), targs), nil, ctxt) res := check.newAlias(obj, rhs) res.orig = orig res.tparams = orig.tparams res.targs = newTypeList(targs) return res } func (a *Alias) cleanup() { // Ensure a.actual is set before types are published, // so Unalias is a pure "getter", not a "setter".
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 5K bytes - Viewed (0) -
pkg/kube/krt/join.go
} return nil } func (j *join[T]) List() []T { res := []T{} found := sets.New[Key[T]]() for _, c := range j.collections { for _, i := range c.List() { key := GetKey(i) if !found.InsertContains(key) { // Only keep it if it is the first time we saw it, as our merging mechanism is to keep the first one res = append(res, i) } } } return res }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 23:33:56 UTC 2024 - 3.3K bytes - Viewed (0) -
cmd/peer-s3-server.go
// Initialize heal result info res = madmin.HealResultItem{ Type: madmin.HealItemBucket, Bucket: bucket, DiskCount: len(localDrives), SetCount: -1, // explicitly set an invalid value -1, for bucket heal scenario } // mutate only if not a dry-run if opts.DryRun { return res, nil } for i := range beforeState { res.Before.Drives = append(res.Before.Drives, madmin.HealDriveInfo{
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 8.4K bytes - Viewed (0) -
src/go/types/alias.go
obj := NewTypeName(pos, orig.obj.pkg, orig.obj.name, nil) rhs := check.subst(pos, orig.fromRHS, makeSubstMap(orig.TypeParams().list(), targs), nil, ctxt) res := check.newAlias(obj, rhs) res.orig = orig res.tparams = orig.tparams res.targs = newTypeList(targs) return res } func (a *Alias) cleanup() { // Ensure a.actual is set before types are published, // so Unalias is a pure "getter", not a "setter".
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 5.1K bytes - Viewed (0) -
src/testing/benchmark_test.go
} }) }) } func TestReportMetric(t *testing.T) { res := testing.Benchmark(func(b *testing.B) { b.ReportMetric(12345, "ns/op") b.ReportMetric(0.2, "frobs/op") }) // Test built-in overriding. if res.NsPerOp() != 12345 { t.Errorf("NsPerOp: expected %v, actual %v", 12345, res.NsPerOp()) } // Test stringing. res.N = 1 // Make the output stable
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 5.6K bytes - Viewed (0) -
tools/istio-iptables/pkg/builder/iptables_builder_impl.go
} func replaceVersionSpecific(contents string, inputs ...string) []string { res := make([]string, 0, len(inputs)) for _, i := range inputs { if i == constants.IPVersionSpecific { res = append(res, contents) } else { res = append(res, i) } } return res
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 11 14:29:54 UTC 2024 - 8.3K bytes - Viewed (0) -
cni/pkg/repair/netns.go
} func runInHost[T any](f func() (T, error)) (T, error) { var res T ns := getPidNamespace(1) err := netns.WithNetNSPath(ns, func(_ netns.NetNS) error { var err error res, err = f() return err }) if err != nil { return res, fmt.Errorf("in network namespace %v: %v", ns, err) } return res, nil } func checkInterfacesForMatchingAddr(targetAddr net.IP) (match bool, err error) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 04:07:10 UTC 2024 - 4.3K bytes - Viewed (0) -
internal/logger/targets.go
sys := SystemTargets() audit := AuditTargets() res := make(map[string]types.TargetStats, len(sys)+len(audit)) cnt := make(map[string]int, len(sys)+len(audit)) // Add system and audit. for _, t := range sys { key := strings.ToLower(t.Type().String()) n := cnt[key] cnt[key]++ key = fmt.Sprintf("sys_%s_%d", key, n) res[key] = t.Stats() } for _, t := range audit {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 03 15:44:50 UTC 2024 - 6K bytes - Viewed (0) -
tests/integration/telemetry/tracing/otelcollector/tracing_test.go
) //go:embed testdata/otel-tracing.yaml var otelTracingCfg string //go:embed testdata/otel-tracing-http.yaml var otelTracingHTTPCfg string //go:embed testdata/otel-tracing-res-detectors.yaml var otelTracingResDetectorsCfg string // TestProxyTracingOpenTelemetryProvider validates that Telemetry API configuration // referencing an OpenTelemetry provider will generate traces appropriately.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon May 13 22:56:30 UTC 2024 - 5.1K bytes - Viewed (0)