Versions in this module Expand all Collapse all v0 v0.5.0 Nov 24, 2026 v0.4.0 Nov 21, 2026 Changes in this version + var ErrDisabled = errors.New("dockerstats: disabled (no socket configured)") + type Client struct + func NewClient(socketPath string, nameOverrides map[string]string) (*Client, error) + func (c *Client) ContainerEnv(ctx context.Context, containerName string) (map[string]string, error) + func (c *Client) ContainerStats(ctx context.Context, containerName string) (*Stats, error) + func (c *Client) ContainerStatsByService(ctx context.Context, serviceName string) (*Stats, error) + type Stats struct + BlockReadBytes uint64 + BlockWriteBytes uint64 + CPUPercent float64 + HealthStatus string + MemLimitBytes uint64 + MemUsageBytes uint64 + Name string + NetRxBytes uint64 + NetRxRateBps float64 + NetTxBytes uint64 + NetTxRateBps float64 + PIDs uint64