Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MagentaText ¶
func YellowText ¶
Types ¶
type DisplayField ¶
type JSON ¶
type JSON interface {
PrintProtoObject(msg proto.Message) error
PrintProtoObjects(msgs []proto.Message) error
}
JSON is a writer to display any proto object in JSON format.
func NewJSONPrinter ¶
func NewJSONPrinter() JSON
type PlainText ¶
type PlainText interface {
PrintTable(headers []string, rows [][]string, opts ...TablePrinterOption)
PrintDisplayField(field DisplayField)
PrintDisplayFieldWithIndent(field DisplayField)
PrintKeyValue(key, value string)
PrintKeyValueWithIndent(key, value string)
PrintLineSeparator()
PrintEmptyLine()
PrintHeader(value string)
PrintError(message string)
PrintWarning(value string)
PrintSuccess(value string)
SeekConfirmation(message string) bool
PrintInJSONFormat(obj interface{}) error
}
PlainText is a writer to display compute broker service entities in plain text format.
func NewPlainTextPrinter ¶
func NewPlainTextPrinter() PlainText
type TablePrinterOption ¶
type TablePrinterOption func(*tablePrinterOptions)
func WithAlignLeft ¶
func WithAlignLeft() TablePrinterOption
func WithHideTotal ¶
func WithHideTotal() TablePrinterOption
func WithRowSeparator ¶
func WithRowSeparator() TablePrinterOption
Click to show internal directories.
Click to hide internal directories.