cmd

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawBlkioStat

func DrawBlkioStat(cpath string, control cgroups.Cgroup, label *termui.List, data *termui.List)

func DrawCPUStat added in v0.0.2

func DrawCPUStat(cpath string, control cgroups.Cgroup, label *termui.List, data *termui.List, total *CPUStat)

DrawCPUStat gather CPU stat vals and set

func DrawCgroupStat

func DrawCgroupStat(cpath string, control cgroups.Cgroup, label *termui.List, data *termui.List)

func DrawMemoryStat

func DrawMemoryStat(cpath string, control cgroups.Cgroup, label *termui.List, data *termui.List)

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func NewBlkioStat

func NewBlkioStat() (*termui.Par, *termui.List, *termui.List)

func NewCgroupStat

func NewCgroupStat(cpath string) (*termui.List, *termui.List)

func NewMemoryStat

func NewMemoryStat() (*termui.Par, *termui.List, *termui.List)

Types

type CPUStat added in v0.0.2

type CPUStat struct {
	Items map[string]uint64
}

func NewCPUStat added in v0.0.2

func NewCPUStat() (*termui.Par, *termui.List, *termui.List, *CPUStat)

NewCPUStat create new CPU stat vals

Jump to

Keyboard shortcuts

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