Documentation ¶
Overview ¶
Package output provides writers in different formats.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompleteOutputArg ¶
CompleteOutputArg represents tab completion for `--output` argument.
Types ¶
type JSON ¶
type JSON struct {
// contains filtered or unexported fields
}
JSON outputs resources in JSON format.
func (*JSON) WriteHeader ¶
func (j *JSON) WriteHeader(_ *meta.ResourceDefinition, withEvents bool) error
WriteHeader implements output.Writer interface.
type JSONPath ¶
type JSONPath struct {
// contains filtered or unexported fields
}
JSONPath outputs resources in JSONPath format.
func NewJSONPath ¶
NewJSONPath initializes JSONPath resource output.
func (*JSONPath) WriteHeader ¶
func (j *JSONPath) WriteHeader(definition *meta.ResourceDefinition, withEvents bool) error
WriteHeader implements output.Writer interface.
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table outputs resources in Table view.
func (*Table) WriteHeader ¶
func (table *Table) WriteHeader(definition *meta.ResourceDefinition, withEvents bool) error
WriteHeader implements output.Writer interface.
type Writer ¶
type Writer interface { WriteHeader(definition *meta.ResourceDefinition, withEvents bool) error WriteResource(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 ¶
func (y *YAML) WriteHeader(_ *meta.ResourceDefinition, withEvents bool) error
WriteHeader implements output.Writer interface.
Click to show internal directories.
Click to hide internal directories.