Documentation
¶
Index ¶
- func ClusterListPrint(cmd *cobra.Command, jsonObj []byte) error
- func ClusterSelectPrint(cmd *cobra.Command, jsonObj []byte, clusterName string) error
- func Exit()
- func GetCount(obj interface{}) int
- func LocationListPrint(cmd *cobra.Command, jsonObj []byte) error
- func PrintJson(obj interface{}, pretty bool)
- func PrintJsonObject(jsonObj []byte) error
- func PrintList(cmd *cobra.Command, jsonObj []byte, fp func(obj interface{}) *OutputListSpec) error
- func PrintObject(cmd *cobra.Command, jsonObj []byte, fp func(obj interface{}) string) error
- func PrintOutputer(cmd *cobra.Command, obj Outputer)
- func PrintRow(spec *OutputListSpec, obj interface{}, row int, w *tabwriter.Writer)
- func PrintRows(spec *OutputListSpec, obj interface{})
- func PrintSelectObject(cmd *cobra.Command, jsonObj []byte, sel string, ...) error
- func PrintYaml(obj interface{})
- func PrintYamlObject(jsonObj []byte) error
- type ColumnSpec
- type MatchSpec
- type OutputListSpec
- type OutputObjectSpec
- type Outputer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterSelectPrint ¶
func Exit ¶
func Exit()
This function exits the pctl program. In case 'exit' is not set, nothing will be printed to the console. The return code of program is set to zero.
When 'exit' is set, the exit message will be printed to the console before the program exits with the return code set in the 'exit' structure.
func PrintJsonObject ¶
func PrintList ¶
func PrintList(cmd *cobra.Command, jsonObj []byte, fp func(obj interface{}) *OutputListSpec) error
func PrintObject ¶
func PrintOutputer ¶
func PrintRows ¶
func PrintRows(spec *OutputListSpec, obj interface{})
func PrintSelectObject ¶
func PrintYamlObject ¶
Types ¶
type ColumnSpec ¶
type OutputListSpec ¶
type OutputListSpec struct { NRows int Base string Columns []ColumnSpec }
func NewClusterListSpec ¶
func NewClusterListSpec(obj interface{}) *OutputListSpec
func NewLocationListSpec ¶
func NewLocationListSpec(obj interface{}) *OutputListSpec
type OutputObjectSpec ¶
func NewClusterObjectSpec ¶
func NewClusterObjectSpec(obj interface{}, clusterName string) *OutputObjectSpec
Click to show internal directories.
Click to hide internal directories.