Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Object ¶
type Object struct {
Fields map[string]interface{}
K8sObject interface{}
}
Object is a structure that contain k8s object and field descriptions that should be printed
type Printer ¶
type Printer struct {
Format string
Output io.Writer
Table *tablewriter.Table
}
Printer structure contains information needed to print objects in "tm get" command
func (*Printer) PrintObject ¶
PrintObject accepts Object instance and depending on output format encodes object and writes to Object output
func (*Printer) PrintTable ¶
PrintTable accepts Table instance and prints it using olekukonko/tablewriter package
Click to show internal directories.
Click to hide internal directories.