You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This returns the number of items collected by each datagatherer so that
the logs tell us a bit more about what was found in the cluster, and
can help find where any items have been missed.
Copy file name to clipboardExpand all lines: pkg/datagatherer/datagatherer.go
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,9 @@ type Config interface {
12
12
// DataGatherer is the interface for Data Gatherers. Data Gatherers are in charge of fetching data from a certain cloud provider API or Kubernetes component.
13
13
typeDataGathererinterface {
14
14
// Fetch retrieves data.
15
-
Fetch() (interface{}, error)
15
+
// count is the number of items that were discovered. A negative count means the number
16
+
// of items was indeterminate.
17
+
Fetch() (datainterface{}, countint, errerror)
16
18
// Run starts the data gatherer's informers for resource collection.
17
19
// Returns error if the data gatherer informer wasn't initialized
0 commit comments