kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/get/get.go

type GetOptions

var getLong

var getExample

const useServerPrintColumns

var supportedSubresources

// NewGetOptions returns a GetOptions with default chunk size 500.
func NewGetOptions(parent string, streams genericiooptions.IOStreams) *GetOptions {}

// NewCmdGet creates a command object for the generic "get" action, which
// retrieves one or more resources from a server.
func NewCmdGet(parent string, f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command {}

// Complete takes the command arguments and factory and infers any remaining options.
func (o *GetOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error {}

// Validate checks the set of flags provided by the user.
func (o *GetOptions) Validate() error {}

type OriginalPositioner

type NopPositioner

// OriginalPosition returns the original position from NopPositioner object
func (t *NopPositioner) OriginalPosition(ix int) int {}

type RuntimeSorter

// Sort performs the sorting of runtime objects
func (r *RuntimeSorter) Sort() error {}

// OriginalPosition returns the original position of a runtime object
func (r *RuntimeSorter) OriginalPosition(ix int) int {}

// WithDecoder allows custom decoder to be set for testing
func (r *RuntimeSorter) WithDecoder(decoder runtime.Decoder) *RuntimeSorter {}

// NewRuntimeSorter returns a new instance of RuntimeSorter
func NewRuntimeSorter(objects []runtime.Object, sortBy string) *RuntimeSorter {}

func (o *GetOptions) transformRequests(req *rest.Request) {}

// Run performs the get operation.
// TODO: remove the need to pass these arguments, like other commands.
func (o *GetOptions) Run(f cmdutil.Factory, args []string) error {}

type trackingWriterWrapper

func (t *trackingWriterWrapper) Write(p []byte) (n int, err error) {}

type separatorWriterWrapper

func (s *separatorWriterWrapper) Write(p []byte) (n int, err error) {}

func (s *separatorWriterWrapper) SetReady(state bool) {}

// watch starts a client-side watch of one or more resources.
// TODO: remove the need for arguments here.
func (o *GetOptions) watch(f cmdutil.Factory, args []string) error {}

func (o *GetOptions) printGeneric(r *resource.Result) error {}

func addServerPrintColumnFlags(cmd *cobra.Command, opt *GetOptions) {}

func shouldGetNewPrinterForMapping(printer printers.ResourcePrinter, lastMapping, mapping *meta.RESTMapping) bool {}

func multipleGVKsRequested(infos []*resource.Info) bool {}