cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: MIT Imports: 11 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

Types

type DisplayContext

type DisplayContext struct {
	Name         string
	OutputFormat OutputMode
}

type OutputMode

type OutputMode = uint
const (
	CSV  OutputMode = iota
	JSON OutputMode = iota
)

func ParseOutputFormat

func ParseOutputFormat(str string) (OutputMode, error)

Jump to

Keyboard shortcuts

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