Documentation
¶
Index ¶
- func FormatBToGiB(v interface{}) string
- func FormatCloudType(v interface{}) string
- func FormatDateTimeString(v interface{}) string
- func FormatETC(v interface{}) string
- func FormatID(v interface{}) string
- func FormatLockStatus(v interface{}) string
- func FormatNumber(v interface{}) string
- func FormatProjectHealth(v interface{}) string
- func FormatSlackChannel(v interface{}) string
- func FormatStringUpper(v interface{}) string
- func FormatVMTags(v interface{}) (str string)
- func Print(a ...interface{})
- func PrintCheckSuccess(name string)
- func PrintDeleteSuccess(resourceName string, id interface{})
- func PrintResult(resource interface{}, fields fields.Fields) error
- func PrintResults(slice interface{}, fields fields.Fields) error
- func PrintResultsOfDifferentTypes(resourceSlices []interface{}, resourceTypes []string, fields fields.Fields) error
- func PrintStandardSuccess()
- func PrintStringSlice(s []string)
- func Printf(format string, a ...interface{})
- func Println(a ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatDateTimeString ¶
func FormatDateTimeString(v interface{}) string
Format a datetime string with format '<YYYY>-<MM>-<DD>T<HH>:<MM>:<SS>Z'
func FormatLockStatus ¶
func FormatLockStatus(v interface{}) string
Display true/false as Locked/Unlocked
func FormatProjectHealth ¶
func FormatProjectHealth(v interface{}) string
If not availabale, display N/A
func PrintCheckSuccess ¶
func PrintCheckSuccess(name string)
func PrintDeleteSuccess ¶
func PrintDeleteSuccess(resourceName string, id interface{})
func PrintResult ¶
func PrintResults ¶
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)
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.