Documentation ¶
Overview ¶
Package output provides writers in different formats.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSON ¶
type JSON struct {
// contains filtered or unexported fields
}
JSON outputs resources in JSON format.
func (*JSON) WriteHeader ¶
WriteHeader implements output.Writer interface.
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table outputs resources in Table view.
func (*Table) WriteHeader ¶
WriteHeader implements output.Writer interface.
type Writer ¶
type Writer interface { WriteHeader(definition resource.Resource, withEvents bool) error WriteResource(node string, r resource.Resource, event state.EventType) error Flush() error }
Writer interface.
type YAML ¶
type YAML struct {
// contains filtered or unexported fields
}
YAML outputs resources in YAML format.
func (*YAML) WriteHeader ¶
WriteHeader implements output.Writer interface.
Click to show internal directories.
Click to hide internal directories.