23 lines
393 B
Go
23 lines
393 B
Go
|
package libcontainer
|
||
|
|
||
|
import "github.com/docker/libcontainer/cgroups"
|
||
|
|
||
|
type NetworkInterface struct {
|
||
|
// Name is the name of the network interface.
|
||
|
Name string
|
||
|
|
||
|
RxBytes uint64
|
||
|
RxPackets uint64
|
||
|
RxErrors uint64
|
||
|
RxDropped uint64
|
||
|
TxBytes uint64
|
||
|
TxPackets uint64
|
||
|
TxErrors uint64
|
||
|
TxDropped uint64
|
||
|
}
|
||
|
|
||
|
type Stats struct {
|
||
|
Interfaces []*NetworkInterface
|
||
|
CgroupStats *cgroups.Stats
|
||
|
}
|