mirror of https://github.com/docker/cli.git
cli/command/container: statsOptions: add GoDoc
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
05a2dc401f
commit
e9a5590add
|
@ -21,11 +21,26 @@ import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// statsOptions defines options for runStats.
|
||||||
type statsOptions struct {
|
type statsOptions struct {
|
||||||
all bool
|
// all allows including both running and stopped containers. The default
|
||||||
noStream bool
|
// is to only include running containers.
|
||||||
noTrunc bool
|
all bool
|
||||||
format string
|
|
||||||
|
// noStream disables streaming stats. If enabled, stats are collected once,
|
||||||
|
// and the result is printed.
|
||||||
|
noStream bool
|
||||||
|
|
||||||
|
// noTrunc disables truncating the output. The default is to truncate
|
||||||
|
// output such as container-IDs.
|
||||||
|
noTrunc bool
|
||||||
|
|
||||||
|
// format is a custom template to use for presenting the stats.
|
||||||
|
// Refer to [flagsHelper.FormatHelp] for accepted formats.
|
||||||
|
format string
|
||||||
|
|
||||||
|
// containers is the list of container names or IDs to include in the stats.
|
||||||
|
// If empty, all containers are included.
|
||||||
containers []string
|
containers []string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue