package cmd
import "k8s.io/kubernetes/pkg/kubectl/cmd"
Index ¶
- func NewCmdAlpha(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func NewDefaultKubectlCommand() *cobra.Command
- func NewDefaultKubectlCommandWithArgs(pluginHandler PluginHandler, args []string, in io.Reader, out, errout io.Writer) *cobra.Command
- func NewKubectlCommand(in io.Reader, out, err io.Writer) *cobra.Command
- type PluginHandler
Functions ¶
func NewCmdAlpha ¶
NewCmdAlpha creates a command that acts as an alternate root command for features in alpha
func NewDefaultKubectlCommand ¶
NewDefaultKubectlCommand creates the `kubectl` command with default arguments
func NewDefaultKubectlCommandWithArgs ¶
func NewDefaultKubectlCommandWithArgs(pluginHandler PluginHandler, args []string, in io.Reader, out, errout io.Writer) *cobra.Command
NewDefaultKubectlCommandWithArgs creates the `kubectl` command with arguments
func NewKubectlCommand ¶
NewKubectlCommand creates the `kubectl` command and its nested children.
Types ¶
type PluginHandler ¶
type PluginHandler interface { // Lookup receives a potential filename and returns // a full or relative path to an executable, if one // exists at the given filename, or an error. Lookup(filename string) (string, error) // Execute receives an executable's filepath, a slice // of arguments, and a slice of environment variables // to relay to the executable. Execute(executablePath string, cmdArgs, environment []string) error }
PluginHandler is capable of parsing command line arguments and performing executable filename lookups to search for valid plugin files, and execute found plugins.
Source Files ¶
alpha.go cmd.go profiling.go
Directories ¶
- Version
- v1.14.0-alpha.2
- Published
- Jan 29, 2019
- Platform
- js/wasm
- Imports
- 56 packages
- Last checked
- 36 seconds ago –
Tools for package owners.