network

package
v0.0.0-...-a1d7b1b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

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

type Tcp

type Tcp struct {
	StatsFile string
}

func (*Tcp) GetStats

func (tcp *Tcp) GetStats(stats *container.Statistics, opts container.GetStatOpt) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL