core

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2017 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentInit

func AgentInit(version, build string) error

AgentInit Connect to docker engine, get initial containers list and start the agent

Types

type Agent

type Agent struct {
	// contains filtered or unexported fields
}

Agent data

type AgentConfig

type AgentConfig struct {
	// contains filtered or unexported fields
}

AgentConfig configuration parameters

type CPUStats

type CPUStats struct {
	Time                 time.Time
	PerCPUUsage          []uint64
	TotalUsage           uint64
	UsageInKernelmode    uint64
	UsageInUsermode      uint64
	PreTime              time.Time
	PrePerCPUUsage       []uint64
	PreTotalUsage        uint64
	PreUsageInKernelmode uint64
	PreUsageInUsermode   uint64
}

CPUStats cpu stats

type CPUStatsDiff

type CPUStatsDiff struct {
	Duration          uint64
	TotalUsage        float64
	UsageInKernelmode float64
	UsageInUsermode   float64
}

CPUStatsDiff diff between two cpu stats

type ContainerData

type ContainerData struct {
	ID string
	// contains filtered or unexported fields
}

ContainerData data

type IOStats

type IOStats struct {
	Time   time.Time
	Reads  float64
	Writes float64
	Totals float64
}

IOStats IO stats

type IOStatsDiff

type IOStatsDiff struct {
	Duration float64
	Reads    float64
	Writes   float64
	Totals   float64
}

IOStatsDiff diff between two IOStats

type NetStats

type NetStats struct {
	Time      time.Time
	RxBytes   float64
	RxDropped float64
	RxErrors  float64
	RxPackets float64
	TxBytes   float64
	TxDropped float64
	TxErrors  float64
	TxPackets float64
}

NetStats net stats

type NetStatsDiff

type NetStatsDiff struct {
	Duration  float64
	RxBytes   float64
	RxDropped float64
	RxErrors  float64
	RxPackets float64
	TxBytes   float64
	TxDropped float64
	TxErrors  float64
	TxPackets float64
}

NetStatsDiff diff between two IOStats

Jump to

Keyboard shortcuts

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