Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewMultiClient ¶
func (*Client) StreamLogs ¶ added in v0.2.0
StreamLogs streams logs from a specific container
func (*Client) WatchContainerStats ¶
func (d *Client) WatchContainerStats(ctx context.Context) (<-chan ContainerStat, error)
type Container ¶
type Container struct {
ID string `json:"id"`
Name string `json:"name"`
Image string `json:"image"`
Command string `json:"command"`
CreatedAt time.Time `json:"created"`
StartedAt time.Time `json:"startedAt"`
FinishedAt time.Time `json:"finishedAt"`
State string `json:"state"`
Health string `json:"health,omitempty"`
MemoryLimit uint64 `json:"memoryLimit"`
CPULimit float64 `json:"cpuLimit"`
Labels map[string]string `json:"labels,omitempty"`
Dozzle string `json:"dozzle,omitempty"`
Host string `json:"host,omitempty"`
}
type ContainerEvent ¶
type ContainerStat ¶
type ContainerStat struct {
ID string `json:"id"`
Time time.Time `json:"time"`
CPUPercent float64 `json:"cpu"`
MemoryPercent float64 `json:"memory"`
MemoryUsage float64 `json:"memoryUsage"`
TotalNetworkReceived uint64 `json:"networkReceive"`
TotalNetworkTransmitted uint64 `json:"networkTransmitted"`
}
Click to show internal directories.
Click to hide internal directories.