view

package
v0.0.0-...-04720bc Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArgName            = "name"
	ArgPrefix          = "prefix"
	ArgVerbose         = "verbose"
	ArgOut             = "out"
	ArgFollow          = "follow"
	ArgRefreshInterval = "refresh-interval"
)

Variables

This section is empty.

Functions

func Register

func Register() cli.Command

Types

type Args

type Args struct {
	CgroupName      string
	CgroupPrefix    string
	VerboseOutput   bool
	OutputFile      string
	FollowMode      bool
	RefreshInterval float64
}

func (*Args) GetRefreshInterval

func (a *Args) GetRefreshInterval() time.Duration

func (*Args) HasOutputFile

func (a *Args) HasOutputFile() bool

func (*Args) HasPrefix

func (a *Args) HasPrefix() bool

type CgroupStatsProviderFn

type CgroupStatsProviderFn func() (common.CgroupStatsCollection, error)

CgroupStatsProviderFn controls which set of CgroupStats are returned for a user request.

type Command

type Command struct {
	// contains filtered or unexported fields
}

func (*Command) Run

func (c *Command) Run() error

Jump to

Keyboard shortcuts

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