Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Formatter ¶
type Formatter interface {
Format(w io.Writer, containers []docker.Container, stats docker.Stats) error
}
Formatter writes container data to output.
type Includes ¶
type Includes struct {
ContainerID bool // n
Image bool // i
Command bool // m
Created bool // c
Status bool // s
Ports bool // p
Health bool // h
}
Includes defines which optional columns to display.
func ParseIncludes ¶
ParseIncludes converts a shorthand string like "cp" into an Includes struct. An empty string means "show all default columns".
type PrettyFormatter ¶
type PrettyFormatter struct {
Includes Includes
}
PrettyFormatter renders containers as bordered cards with status indicators.
Click to show internal directories.
Click to hide internal directories.