cmd

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 12 Imported by: 0

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 Execute

func Execute(ctx *cli.Context) error

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL