stats

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package stats provides the container stats command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdStats

func NewCmdStats(f *cmdutil.Factory, runF func(context.Context, *StatsOptions) error) *cobra.Command

NewCmdStats creates a new stats command.

Types

type StatsOptions

type StatsOptions struct {
	IOStreams      *iostreams.IOStreams
	TUI            *tui.TUI
	Client         func(context.Context) (*docker.Client, error)
	ProjectManager func() (project.ProjectManager, error)

	Agent      bool // if set to true, treat arguments as agent name
	NoStream   bool
	NoTrunc    bool
	Containers []string
}

StatsOptions defines the options for the stats command.

Jump to

Keyboard shortcuts

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