Documentation
¶
Overview ¶
Package printer contains the definition of the Printer interface and the implementation of all the available printers implementing it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultPrinter ¶
type DefaultPrinter struct {
// contains filtered or unexported fields
}
DefaultPrinter defines the DefaultPrinter configuration.
func (*DefaultPrinter) Print ¶
Print implements the Printer interface by prints the resource tree in a human-readable format.
func (*DefaultPrinter) PrintList ¶ added in v2.2.0
func (p *DefaultPrinter) PrintList(w io.Writer, roots *resource.ResourceList) error
PrintList implements the Printer interface by prints the resource tree of a list of resources in a human-readable format.
type DotPrinter ¶
type DotPrinter struct{}
DotPrinter defines the DotPrinter configuration.
func (*DotPrinter) Print ¶
Print gets all the nodes and then return the graph as a dot format string to the Writer.
func (*DotPrinter) PrintList ¶ added in v2.2.0
func (p *DotPrinter) PrintList(w io.Writer, roots *resource.ResourceList) error
PrintList gets all the nodes and then return the graph as a dot format string to the Writer.
type JSONPrinter ¶
type JSONPrinter struct{}
JSONPrinter is a printer that prints the resource graph as JSON.
func (*JSONPrinter) PrintList ¶ added in v2.2.0
func (p *JSONPrinter) PrintList(w io.Writer, roots *resource.ResourceList) error
PrintList implements the Printer interface.