Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NetworkStatsFromProc ¶
func NetworkStatsFromProc(path string) ([]container.NetworkInterface, error)
NetworkStatsFromProc returns network statistics (e.g. tx_bytes, rx_bytes, etc.) per each interface and aggregated in total for a given path combined from given rootFs and pid of docker process as `<rootFs>/<set_procfs_mountpoint>/<pid>/net/dev`
func NetworkStatsFromRoot ¶
func NetworkStatsFromRoot() (ifaceStats []container.NetworkInterface, _ error)
NetworkStatsFromRoot returns network statistics (e.g. tx_bytes, rx_bytes, etc.) per each interface and aggregated in total for root (a docker host)
Types ¶
type Network ¶
type Network struct{}
func (*Network) GetStats ¶
func (n *Network) GetStats(stats *container.Statistics, opts container.GetStatOpt) error
Click to show internal directories.
Click to hide internal directories.