observe

package
v4.0.0-alpha.0+incompa... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdObserve

func NewCmdObserve(fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

NewCmdObserve creates the observe command.

Types

type ColumnPrinter

type ColumnPrinter interface {
	Print(obj interface{}) ([]string, []byte, error)
}

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 (o *ObserveOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args []string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL