observe

package
v3.11.0-alpha.0+incomp... Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 35 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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