ps

package
v0.9.3-8-gc204c380 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file expect in compliance with the License.

Index

Constants

View Source
const (
	MemoryMiB = 1024 * 1024
)

Variables

Functions

func NewCmd

func NewCmd() *cobra.Command

Types

type PsEntry added in v0.7.2

type PsEntry struct {
	ID      string
	Name    string
	Kernel  string
	Args    string
	Created string
	State   machineapi.MachineState
	Mem     string
	Ports   string
	Pid     int32
	Arch    string
	Plat    string
	IPs     []string
}

type PsOptions

type PsOptions struct {
	Architecture string `long:"arch" short:"m" usage:"Filter the list by architecture"`
	Long         bool   `long:"long" short:"l" usage:"Show more information"`

	Quiet   bool   `long:"quiet" short:"q" usage:"Only display machine IDs"`
	ShowAll bool   `long:"all" short:"a" usage:"Show all machines (default shows just running)"`
	Output  string `long:"output" short:"o" usage:"Set output format. Options: table,yaml,json,list" default:"table"`
	// contains filtered or unexported fields
}

func (*PsOptions) Pre

func (opts *PsOptions) Pre(cmd *cobra.Command, _ []string) error

func (*PsOptions) PrintPsTable added in v0.7.2

func (opts *PsOptions) PrintPsTable(ctx context.Context, items []PsEntry) error

func (*PsOptions) PsTable added in v0.7.2

func (opts *PsOptions) PsTable(ctx context.Context) ([]PsEntry, error)

func (*PsOptions) Run

func (opts *PsOptions) Run(ctx context.Context, _ []string) error

Jump to

Keyboard shortcuts

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