kubernetesk8s.io/kubernetes/pkg/kubectl/cmd/resource Index | Files

package resource

import "k8s.io/kubernetes/pkg/kubectl/cmd/resource"

Index

Functions

func NewCmdGet

func NewCmdGet(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command

NewCmdGet creates a command object for the generic "get" action, which retrieves one or more resources from a server.

func RunGet

func RunGet(f cmdutil.Factory, out, errOut io.Writer, cmd *cobra.Command, args []string, options *GetOptions) error

RunGet implements the generic Get command TODO: convert all direct flag accessors to a struct and pass that instead of cmd

Types

type GetOptions

type GetOptions struct {
	resource.FilenameOptions

	IgnoreNotFound bool
	Raw            string
	ChunkSize      int64
}

GetOptions is the start of the data required to perform the operation. As new fields are added, add them here instead of referencing the cmd.Flags()

Source Files

get.go

Version
v1.9.0-alpha.2
Published
Nov 1, 2017
Platform
js/wasm
Imports
23 packages
Last checked
1 hour ago

Tools for package owners.