out

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatBToGiB

func FormatBToGiB(v interface{}) string

Format Bytes as GiB

func FormatCloudType

func FormatCloudType(v interface{}) string

Capitalize cloud type

func FormatDateTimeString

func FormatDateTimeString(v interface{}) string

Format a datetime string with format '<YYYY>-<MM>-<DD>T<HH>:<MM>:<SS>Z'

func FormatETC

func FormatETC(v interface{}) string

Format estimated time of completion

func FormatID

func FormatID(v interface{}) string

Format resource ID

func FormatLockStatus

func FormatLockStatus(v interface{}) string

Display true/false as Locked/Unlocked

func FormatNumber

func FormatNumber(v interface{}) string

Format number

func FormatProjectHealth

func FormatProjectHealth(v interface{}) string

If not availabale, display N/A

func FormatSlackChannel

func FormatSlackChannel(v interface{}) string

Format Slack channel

func FormatStringUpper

func FormatStringUpper(v interface{}) string

Format string as all caps

func FormatVMTags

func FormatVMTags(v interface{}) (str string)

Format standalone VM tag list

func Print

func Print(a ...interface{})

func PrintCheckSuccess

func PrintCheckSuccess(name string)

func PrintDeleteSuccess

func PrintDeleteSuccess(resourceName string, id interface{})

func PrintResult

func PrintResult(resource interface{}, fields fields.Fields) error

func PrintResults

func PrintResults(slice interface{}, fields fields.Fields) error

func PrintResultsOfDifferentTypes

func PrintResultsOfDifferentTypes(
	resourceSlices []interface{},
	resourceTypes []string,
	fields fields.Fields,
) error

Allows printing of resources of different types into one table. If resource types is not empty, a 'type' column will be added to the table, the value of the 'type' cell for the resources contained in the slice at index *i* of *resourceSlices* will be the type at index *i* of *resourceTypes*. Thus, *resourceSlices* and *resourceTypes* MUST have the same length.

func PrintStandardSuccess

func PrintStandardSuccess()

func PrintStringSlice

func PrintStringSlice(s []string)

func Printf

func Printf(format string, a ...interface{})

func Println

func Println(a ...interface{})

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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