Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KyleBanks/dockerstats
/ functions
Functions
14 in github.com/KyleBanks/dockerstats
⨍
Functions
14
◇
Types & classes
8
↓ 3 callers
Method
Stats
()
communicator.go:12
↓ 2 callers
Function
NewMonitor
NewMonitor initializes and returns a Monitor which can recieve a stream of Docker container statistics.
monitor.go:29
↓ 2 callers
Method
Stop
Stop tells the monitor to stop streaming Docker container statistics.
monitor.go:40
↓ 1 callers
Function
Current
Current returns the current `Stats` of each running Docker container. Current will always return a `[]Stats` slice equal in length to the number of r
dockerstats.go:64
↓ 1 callers
Method
start
start begins polling for Docker container statistics, and sends them through the Monitor's stream to be consumed.
monitor.go:48
Method
Stats
()
monitor.go:11
Method
Stats
Stats returns Docker container statistics using the Docker CLI.
communicator.go:23
Method
String
String returns a human-readable string containing the details of a Stats value.
types.go:17
Method
String
String returns a human-readable string containing the details of a MemoryStats value.
types.go:29
Method
String
String returns a human-readable string containing the details of a IOStats value.
types.go:41
Function
TestCurrent
(t *testing.T)
dockerstats_test.go:8
Function
TestMonitor_Stop
(t *testing.T)
monitor_test.go:37
Function
TestNewMonitor
(t *testing.T)
monitor_test.go:9
Function
main
()
example/main.go:18