Documentation
¶
Index ¶
- func RelativeTimestampFormatter(n *jnode.Node, columnName string) string
- func TimestampFormatter(n *jnode.Node, columnName string) string
- type CSVPrinter
- type Filter
- type Formatter
- type Formatters
- type Interface
- type JSONPrinter
- type NonePrinter
- type PathSupport
- type TablePrinter
- type ValuePrinter
- type YAMLPrinter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CSVPrinter ¶
type CSVPrinter struct {
PathSupport
NoHeaders bool
Columns []string
Formatters Formatters
}
func (*CSVPrinter) PrintResult ¶
func (p *CSVPrinter) PrintResult(w io.Writer, result *jnode.Node)
type Formatters ¶
type JSONPrinter ¶
type JSONPrinter struct{}
func (*JSONPrinter) PrintResult ¶
func (p *JSONPrinter) PrintResult(w io.Writer, n *jnode.Node)
type NonePrinter ¶ added in v0.4.9
type NonePrinter struct{}
func (*NonePrinter) PrintResult ¶ added in v0.4.9
func (p *NonePrinter) PrintResult(w io.Writer, result *jnode.Node)
type PathSupport ¶ added in v0.4.8
type TablePrinter ¶
type TablePrinter struct {
PathSupport
NoHeaders bool
Columns []string
Formatters Formatters
}
func (*TablePrinter) PrintHeader ¶
func (p *TablePrinter) PrintHeader(w io.Writer)
func (*TablePrinter) PrintResult ¶
func (p *TablePrinter) PrintResult(w io.Writer, result *jnode.Node)
type ValuePrinter ¶ added in v0.4.8
type ValuePrinter struct {
PathSupport
Name []string
}
func NewValuePrinter ¶ added in v0.4.8
func NewValuePrinter(format string, path []string, sortBy []string) *ValuePrinter
func (*ValuePrinter) PrintResult ¶ added in v0.4.8
func (p *ValuePrinter) PrintResult(w io.Writer, result *jnode.Node)
type YAMLPrinter ¶
type YAMLPrinter struct{}
func (*YAMLPrinter) PrintResult ¶
func (p *YAMLPrinter) PrintResult(w io.Writer, n *jnode.Node)
Click to show internal directories.
Click to hide internal directories.