formatter

package
v0.3.45 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FormatFlag = cli.StringFlag{
	Name:     "format",
	Usage:    `Format of output, could be "json" or "table"`,
	Aliases:  []string{"f"},
	Value:    "table",
	Required: false,
	Action:   formatterValidator,
}

Functions

func CreatedSinceString

func CreatedSinceString(created int64) string

func FormatEndpoint

func FormatEndpoint(env types.EnvdEnvironment) string

func GetRuntimes

func GetRuntimes(info *types.EnvdInfo) string

func StringOrNone

func StringOrNone(target string) string

Types

type DetailedVersion

type DetailedVersion struct {
	OSVersion         string
	OSType            string
	KernelVersion     string
	Architecture      string
	DockerVersion     string
	ContainerRuntimes string
	DefaultRuntime    string
}

func GetDetailedVersion

func GetDetailedVersion(clicontext *cli.Context) (DetailedVersion, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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