2022-11-16 00:15:35 +08:00
|
|
|
//go:generate ../../../tools/readme_config_includer/generator
|
2019-11-09 03:55:37 +08:00
|
|
|
package ethtool
|
|
|
|
|
|
|
|
|
|
import (
|
2022-05-24 21:49:47 +08:00
|
|
|
_ "embed"
|
2019-11-09 03:55:37 +08:00
|
|
|
)
|
|
|
|
|
|
2023-07-14 21:58:19 +08:00
|
|
|
const pluginName = "ethtool"
|
|
|
|
|
|
2022-05-24 21:49:47 +08:00
|
|
|
//go:embed sample.conf
|
|
|
|
|
var sampleConfig string
|
|
|
|
|
|
2019-11-09 03:55:37 +08:00
|
|
|
type Command interface {
|
|
|
|
|
Init() error
|
2022-11-15 23:54:58 +08:00
|
|
|
DriverName(intf NamespacedInterface) (string, error)
|
|
|
|
|
Interfaces(includeNamespaces bool) ([]NamespacedInterface, error)
|
|
|
|
|
Stats(intf NamespacedInterface) (map[string]uint64, error)
|
2023-03-09 18:59:04 +08:00
|
|
|
Get(intf NamespacedInterface) (map[string]uint64, error)
|
2019-11-09 03:55:37 +08:00
|
|
|
}
|
|
|
|
|
|
2022-05-24 21:49:47 +08:00
|
|
|
func (*Ethtool) SampleConfig() string {
|
|
|
|
|
return sampleConfig
|
|
|
|
|
}
|