Versions in this module Expand all Collapse all v1 v1.13.1 Mar 11, 2020 Changes in this version + const PrettyFormatKey + const RawFormatKey + const TableFormatKey + func ContainerStatsWrite(ctx Context, containerStats []StatsEntry) error + func ContainerWrite(ctx Context, containers []types.Container) error + func ImageWrite(ctx ImageContext, images []types.ImageSummary) error + func NetworkWrite(ctx Context, networks []types.NetworkResource) error + func ServiceInspectWrite(ctx Context, refs []string, getRef inspect.GetRefFunc) error + func VolumeWrite(ctx Context, volumes []*types.Volume) error + type ContainerStats struct + func NewContainerStats(container, osType string) *ContainerStats + func (cs *ContainerStats) GetError() error + func (cs *ContainerStats) GetStatistics() StatsEntry + func (cs *ContainerStats) SetError(err error) + func (cs *ContainerStats) SetErrorAndReset(err error) + func (cs *ContainerStats) SetStatistics(s StatsEntry) + type Context struct + Format Format + Output io.Writer + Trunc bool + func (c *Context) Write(sub subContext, f SubFormat) error + type DiskUsageContext struct + Containers []*types.Container + Images []*types.ImageSummary + LayersSize int64 + Verbose bool + Volumes []*types.Volume + func (ctx *DiskUsageContext) Write() + type Format string + func NewContainerFormat(source string, quiet bool, size bool) Format + func NewImageFormat(source string, quiet bool, digest bool) Format + func NewNetworkFormat(source string, quiet bool) Format + func NewServiceFormat(source string) Format + func NewStatsFormat(source, osType string) Format + func NewVolumeFormat(source string, quiet bool) Format + func (f Format) Contains(sub string) bool + func (f Format) IsTable() bool + type HeaderContext struct + func (c *HeaderContext) AddHeader(header string) + func (c *HeaderContext) FullHeader() string + type ImageContext struct + Digest bool + type StatsEntry struct + BlockRead float64 + BlockWrite float64 + CPUPercentage float64 + Container string + ID string + IsInvalid bool + Memory float64 + MemoryLimit float64 + MemoryPercentage float64 + Name string + NetworkRx float64 + NetworkTx float64 + OSType string + PidsCurrent uint64 + type SubFormat func(func(subContext) error) error