pkg/gadgets: Add params key to filetop types.
It will be easier to exchange parameters between CLI and gadget.
@@ -29,6 +29,13 @@ const (
WBYTES
)
+const (
+ IntervalParam = "interval"
+ MaxRowsParam = "max_rows"
+ SortByParam = "sort_by"
+ AllFilesParam = "pid"
+)
+
var SortBySlice = []string{
"all",
"reads",
