package
Version:
v1.17.4
Opens a new window with list of versions in this module.
Published: Dec 17, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 17
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package printer contains the definition of the Printer interface and the
implementation of all the available printers implementing it.
type DefaultPrinter struct {
}
DefaultPrinter defines the DefaultPrinter configuration.
Print implements the Printer interface by prints the resource tree in a
human-readable format.
DotPrinter defines the DotPrinter configuration.
Print gets all the nodes and then return the graph as a dot format string to the Writer.
type JSONPrinter struct{}
JSONPrinter is a printer that prints the resource graph as JSON.
Print implements the Printer interface.
Printer implements the interface which is used by all printers in this package.
New creates a new printer based on the specified type.
Type represents the type of printer.
const (
TypeDefault Type = "default"
TypeWide Type = "wide"
TypeJSON Type = "json"
TypeDot Type = "dot"
)
Implemented PrinterTypes.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.