Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTable ¶
func GenerateTable(responseValues []reflect.Value, responseItemType reflect.Type) (*metav1.Table, error)
GenerateTable creates a metav1.Table structure from a slice of reflect.Values and the reflection type of the item. It generates table columns and rows based on the provided data and returns the resulting metav1.Table.
func GetNewTabWriter ¶
GetNewTabWriter returns a tabwriter that translates tabbed columns in input into properly aligned text.
func PrintTable ¶
PrintTable prints a table to the provided output respecting the filtering rules for options for wide columns and filtered rows. It filters out rows that are Completed. You should call decorateTable if you receive a table from a remote server before calling printTable.
Types ¶
Click to show internal directories.
Click to hide internal directories.