Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JsonFormatter ¶
type JsonFormatter struct{}
JsonFormatter use to convert response to json format.
type TableFormatter ¶
type TableFormatter struct { Columns []string Group string Operation string ColumnDisplayName func(string) string }
TableFormatter use to convert response to table format.
func DefaultTableFormatter ¶ added in v0.6.0
func DefaultTableFormatter(columns []string, group, operation string) *TableFormatter
func (*TableFormatter) Format ¶
func (f *TableFormatter) Format(resp *http.Response) ([]byte, error)
func (*TableFormatter) ResourceItems ¶ added in v0.6.0
func (f *TableFormatter) ResourceItems(body []byte) string
type YamlFormatter ¶
type YamlFormatter struct{}
YamlFormatter use to convert response to yaml format.
Click to show internal directories.
Click to hide internal directories.