- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 139 for genMetrics (0.2 sec)
-
pkg/volume/metrics_cached.go
return &cachedMetrics{wrapped: provider} } // GetMetrics runs the wrapped metrics provider's GetMetrics method once and // caches the result. Will not cache result if there is an error. // See MetricsProvider.GetMetrics func (md *cachedMetrics) GetMetrics() (*Metrics, error) { md.once.cache(func() error { md.resultMetrics, md.resultError = md.wrapped.GetMetrics() return md.resultError })
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 16 11:12:06 UTC 2022 - 1.9K bytes - Viewed (0) -
pkg/volume/metrics_statfs_test.go
func TestGetMetricsStatFS(t *testing.T) { metrics := NewMetricsStatFS("") actual, err := metrics.GetMetrics() expected := &Metrics{} if !volumetest.MetricsEqualIgnoreTimestamp(actual, expected) { t.Errorf("Expected empty Metrics from uninitialized MetricsStatFS, actual %v", *actual) } if err == nil { t.Errorf("Expected error when calling GetMetrics on uninitialized MetricsStatFS, actual nil") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 02 23:01:59 UTC 2017 - 2K bytes - Viewed (0) -
pkg/volume/metrics_nil.go
type MetricsNil struct{} // SupportsMetrics returns false for the MetricsNil type. func (*MetricsNil) SupportsMetrics() bool { return false } // GetMetrics returns an empty Metrics and an error. // See MetricsProvider.GetMetrics func (*MetricsNil) GetMetrics() (*Metrics, error) { return &Metrics{}, NewNotSupportedError()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 20 15:10:23 UTC 2021 - 1.1K bytes - Viewed (0) -
src/cmd/go/testdata/mod/example.com_depends_on_generics_v1.0.0.txt
example.com/depends/on/generics v1.0.0 written by hand -- .mod -- module example.com/depends/on/generics go 1.18 require example.com/generics v1.0.0 -- .info -- {"Version":"v1.0.0"} -- go.mod -- module example.com/depends/on/generics go 1.18 require example.com/generics v1.0.0 -- main.go -- package main import "example.com/generics"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 11 20:37:36 UTC 2022 - 370 bytes - Viewed (0) -
pkg/volume/metrics_statfs.go
func NewMetricsStatFS(path string) MetricsProvider { return &metricsStatFS{path} } // See MetricsProvider.GetMetrics // GetMetrics calculates the volume usage and device free space by executing "du" // and gathering filesystem info for the Volume path. func (md *metricsStatFS) GetMetrics() (*Metrics, error) { startTime := time.Now() defer servermetrics.CollectVolumeStatCalDuration("statfs", startTime)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 19 14:33:37 UTC 2022 - 2.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/audit/policy/checker_test.go
test(t, "namespaced", audit.LevelNone, stages, stages, "getLogs") test(t, "namespaced", audit.LevelNone, stages, stages, "getMetrics") test(t, "namespaced", audit.LevelMetadata, stages, stages, "getMetrics", "serviceAccounts", "default") test(t, "namespaced", audit.LevelRequestResponse, stages, stages, "getMetrics", "getPods", "default") test(t, "namespaced", audit.LevelRequestResponse, stages, stages, "getPodLogs", "getPods")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 12 15:06:14 UTC 2021 - 15.1K bytes - Viewed (0) -
pkg/volume/metrics_block.go
} // See MetricsProvider.GetMetrics // GetMetrics detects the size of the BlockMode volume for the device node // where the Volume is attached. // // Note that only the capacity of the device can be detected with standard // tools. Storage systems may have more information that they can provide by // going through specialized APIs. func (mb *metricsBlock) GetMetrics() (*Metrics, error) { startTime := time.Now()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 19 14:33:37 UTC 2022 - 2.5K bytes - Viewed (0) -
pkg/volume/metrics_du.go
func NewMetricsDu(path string) MetricsProvider { return &metricsDu{path} } // GetMetrics calculates the volume usage and device free space by executing "du" // and gathering filesystem info for the Volume path. // See MetricsProvider.GetMetrics func (md *metricsDu) GetMetrics() (*Metrics, error) { metrics := &Metrics{Time: metav1.Now()} if md.path == "" { return metrics, NewNoPathDefinedError() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 06 12:19:35 UTC 2021 - 2.5K bytes - Viewed (0) -
pkg/volume/metrics_block_linux_test.go
metrics := NewMetricsBlock("") actual, err := metrics.GetMetrics() expected := &Metrics{} if !volumetest.MetricsEqualIgnoreTimestamp(actual, expected) { t.Errorf("Expected empty Metrics from uninitialized MetricsBlock, actual %v", *actual) } if err == nil { t.Errorf("Expected error when calling GetMetrics on uninitialized MetricsBlock, actual nil") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 18 09:43:07 UTC 2022 - 1.6K bytes - Viewed (0) -
src/cmd/go/testdata/mod/example.com_generics_v1.0.0.txt
example.com/generics v1.0.0 written by hand -- .mod -- module example.com/generics go 1.18 -- .info -- {"Version":"v1.0.0"} -- go.mod -- module example.com/generics go 1.18 -- generics.go -- package generics type Int interface { ~int }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 11 20:37:36 UTC 2022 - 255 bytes - Viewed (0)