2022-11-15 23:54:58 +08:00
|
|
|
package ethtool
|
|
|
|
|
|
|
|
|
|
import "net"
|
|
|
|
|
|
|
|
|
|
type Namespace interface {
|
|
|
|
|
Name() string
|
|
|
|
|
Interfaces() ([]NamespacedInterface, error)
|
|
|
|
|
DriverName(intf NamespacedInterface) (string, error)
|
|
|
|
|
Stats(intf NamespacedInterface) (map[string]uint64, error)
|
2023-03-09 18:59:04 +08:00
|
|
|
Get(intf NamespacedInterface) (map[string]uint64, error)
|
2022-11-15 23:54:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type NamespacedInterface struct {
|
|
|
|
|
net.Interface
|
|
|
|
|
Namespace Namespace
|
|
|
|
|
}
|