Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NetStatsNames = []string{
"collisions",
"multicast",
"rx_bytes",
"rx_compressed",
"rx_crc_errors",
"rx_dropped",
"rx_fifo_errors",
"rx_frame_errors",
"rx_length_errors",
"rx_missed_errors",
"rx_over_errors",
"rx_packets",
"tx_aborted_errors",
"tx_bytes",
"tx_carrier_errors",
"tx_compressed",
"tx_dropped",
"tx_errors",
"tx_fifo_errors",
"tx_heartbeat_errors",
"tx_packets",
"tx_window_errors",
}
Functions ¶
func BuildNetworkIntPath ¶
func NewDockerClientSamalba ¶
func NewDockerClientSamalba() (cli *dsamalba.DockerClient, err error)
Types ¶
type Container ¶
type Container struct { ID int `json:"-"` PID int `json:"-",sql:"-"` DockerID string Name string NodeName string NetworkInterfaces []NetworkInterface IsActive bool `sql:"-"` CreatedAt time.Time UpdatedAt time.Time DeletedAt *time.Time }
func (*Container) AddNewInterfaces ¶
func (cont *Container) AddNewInterfaces(newNetInterfaces []NetworkInterface)
func (*Container) UpdateLastValue ¶
func (cont *Container) UpdateLastValue()
func (*Container) UpdateNetInterfaces ¶
func (cont *Container) UpdateNetInterfaces()
type Docker ¶
func NewDockerClient ¶
type NetworkInterface ¶
type NetworkInterface struct { ID int `json:"-"` ContainerID int `json:"-",sql:"index"` Name string IsActive bool `json:"-"` NetworkStats []NetworkStat }
type NetworkStat ¶
Click to show internal directories.
Click to hide internal directories.