observe

package
v3.9.0-0.41.0+incompat... Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2018 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdObserve

func NewCmdObserve(fullName string, f *clientcmd.Factory, out, errOut io.Writer) *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 {
	// contains filtered or unexported fields
}

func (*ObserveOptions) Complete

func (o *ObserveOptions) Complete(f *clientcmd.Factory, cmd *cobra.Command, args []string, out, errOut io.Writer) 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