mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-24 06:28:42 +01:00
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
23 lines
652 B
Go
23 lines
652 B
Go
package docker
|
|
|
|
// Container represents an internal representation of docker containers
|
|
type Container struct {
|
|
ID string `json:"id"`
|
|
Names []string `json:"names"`
|
|
Name string `json:"name"`
|
|
Image string `json:"image"`
|
|
ImageID string `json:"imageId"`
|
|
Command string `json:"command"`
|
|
Created int64 `json:"created"`
|
|
State string `json:"state"`
|
|
Status string `json:"status"`
|
|
}
|
|
|
|
// ContainerStat represent stats instant for a container
|
|
type ContainerStat struct {
|
|
ID string `json:"id"`
|
|
CPUPercent int64 `json:"cpu"`
|
|
MemoryPercent int64 `json:"memory"`
|
|
MemoryUsage int64 `json:"memoryUsage"`
|
|
}
|