package resource
import "k8s.io/kubernetes/pkg/kubectl/cmd/resource"
Index ¶
Functions ¶
func NewCmdGet ¶
NewCmdGet creates a command object for the generic "get" action, which retrieves one or more resources from a server.
Types ¶
type GetOptions ¶
type GetOptions struct { Out, ErrOut io.Writer resource.FilenameOptions Raw string Watch bool WatchOnly bool ChunkSize int64 LabelSelector string FieldSelector string AllNamespaces bool Namespace string ExplicitNamespace bool ServerPrint bool Sort bool IgnoreNotFound bool ShowKind bool LabelColumns []string Export bool IncludeUninitialized bool }
GetOptions contains the input to the get command.
func (*GetOptions) Complete ¶
Complete takes the command arguments and factory and infers any remaining options.
func (*GetOptions) Run ¶
Run performs the get operation. TODO: remove the need to pass these arguments, like other commands.
func (*GetOptions) Validate ¶
func (options *GetOptions) Validate(cmd *cobra.Command) error
Validate checks the set of flags provided by the user.
Source Files ¶
get.go
- Version
- v1.10.8-beta.0
- Published
- Aug 20, 2018
- Platform
- js/wasm
- Imports
- 27 packages
- Last checked
- 1 minute ago –
Tools for package owners.