Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ContextTodo = context.TODO() DockerTopArgs = []string{"auxww"} PrintedCSVHeader = false )
Functions ¶
func DisplayCurrentStats ¶
func DisplayCurrentStats(dockerClient *client.Client, ctx DisplayContext)
func GetCurrentTime ¶ added in v1.1.0
func GetCurrentTime(format TimestampFormat) string
Types ¶
type DisplayContext ¶
type DisplayContext struct { Name string OutputFormat OutputMode TimestampFormat }
type OutputMode ¶
type OutputMode = uint
const ( CSV OutputMode = iota JSON OutputMode = iota )
func ParseOutputFormat ¶
func ParseOutputFormat(str string) (OutputMode, error)
type TimestampFormat ¶ added in v1.1.0
type TimestampFormat = uint
const ( ISO TimestampFormat = iota EPOCH TimestampFormat = iota )
func ParseTimestampFormat ¶ added in v1.1.0
func ParseTimestampFormat(str string) (TimestampFormat, error)
Click to show internal directories.
Click to hide internal directories.