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 ¶
View Source
var ( MachineStateColor = map[machineapi.MachineState]colorFunc{ machineapi.MachineStateUnknown: iostreams.Gray, machineapi.MachineStateCreated: iostreams.Blue, machineapi.MachineStateFailed: iostreams.Red, machineapi.MachineStateRestarting: iostreams.Yellow, machineapi.MachineStateRunning: iostreams.Green, machineapi.MachineStatePaused: iostreams.Yellow, machineapi.MachineStateSuspended: iostreams.Yellow, machineapi.MachineStateExited: iostreams.Gray, machineapi.MachineStateErrored: iostreams.Red, } MachineStateColorNil = map[machineapi.MachineState]colorFunc{ machineapi.MachineStateUnknown: nil, machineapi.MachineStateCreated: nil, machineapi.MachineStateFailed: nil, machineapi.MachineStateRestarting: nil, machineapi.MachineStateRunning: nil, machineapi.MachineStatePaused: nil, machineapi.MachineStateSuspended: nil, machineapi.MachineStateExited: nil, machineapi.MachineStateErrored: nil, } )
Functions ¶
Types ¶
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) PrintPsTable ¶ added in v0.7.2
Click to show internal directories.
Click to hide internal directories.