Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ColumnPrinter ¶
func NewVersionedColumnPrinter ¶
func NewVersionedColumnPrinter(printer ColumnPrinter, convertor runtime.ObjectConvertor, version runtime.GroupVersioner) ColumnPrinter
NewVersionedHumanReadablePrinter wraps a printer to convert objects to a known API version prior to printing.
type GoTemplateColumnPrinter ¶
type GoTemplateColumnPrinter struct {
// contains filtered or unexported fields
}
func NewGoTemplateArgumentPrinter ¶
func NewGoTemplateArgumentPrinter(includeNamespace, strict bool, templates ...string) (*GoTemplateColumnPrinter, error)
func (*GoTemplateColumnPrinter) Print ¶
func (p *GoTemplateColumnPrinter) Print(obj interface{}) ([]string, []byte, error)
type JSONPathColumnPrinter ¶
type JSONPathColumnPrinter struct {
// contains filtered or unexported fields
}
func NewJSONPathArgumentPrinter ¶
func NewJSONPathArgumentPrinter(includeNamespace, strict bool, templates ...string) (*JSONPathColumnPrinter, error)
func (*JSONPathColumnPrinter) Print ¶
func (p *JSONPathColumnPrinter) Print(obj interface{}) ([]string, []byte, error)
type ObserveOptions ¶
type ObserveOptions struct { genericclioptions.IOStreams // contains filtered or unexported fields }
func NewObserveOptions ¶
func NewObserveOptions(streams genericclioptions.IOStreams) *ObserveOptions
func (*ObserveOptions) Complete ¶
func (*ObserveOptions) Run ¶
func (o *ObserveOptions) Run() error
func (*ObserveOptions) Validate ¶
func (o *ObserveOptions) Validate(args []string) error
type VersionedColumnPrinter ¶
type VersionedColumnPrinter struct {
// contains filtered or unexported fields
}
VersionedPrinter takes runtime objects and ensures they are converted to a given API version prior to being passed to a nested printer.
func (*VersionedColumnPrinter) Print ¶
func (p *VersionedColumnPrinter) Print(out interface{}) ([]string, []byte, error)
Print converts the object to a map[string]interface{} in the target version before calling the nested printer.
Click to show internal directories.
Click to hide internal directories.