package plugin
import "k8s.io/kubernetes/pkg/kubectl/cmd/plugin"
Index ¶
- Variables
- func NewCmdPlugin(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- func NewCmdPluginList(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- type CommandOverrideVerifier
- type PathVerifier
- type PluginListOptions
Variables ¶
var ( ValidPluginFilenamePrefixes = []string{"kubectl"} )
Functions ¶
func NewCmdPlugin ¶
func NewCmdPluginList ¶
NewCmdPluginList provides a way to list all plugin executables visible to kubectl
Types ¶
type CommandOverrideVerifier ¶
type CommandOverrideVerifier struct {
// contains filtered or unexported fields
}
func (*CommandOverrideVerifier) Verify ¶
func (v *CommandOverrideVerifier) Verify(path string) []error
Verify implements PathVerifier and determines if a given path is valid depending on whether or not it overwrites an existing kubectl command path, or a previously seen plugin.
type PathVerifier ¶
type PathVerifier interface { // Verify determines if a given path is valid Verify(path string) []error }
pathVerifier receives a path and determines if it is valid or not
type PluginListOptions ¶
type PluginListOptions struct { Verifier PathVerifier NameOnly bool PluginPaths []string genericclioptions.IOStreams }
func (*PluginListOptions) Complete ¶
func (o *PluginListOptions) Complete(cmd *cobra.Command) error
func (*PluginListOptions) Run ¶
func (o *PluginListOptions) Run() error
Source Files ¶
plugin.go
- Version
- v1.14.1
- Published
- Apr 5, 2019
- Platform
- js/wasm
- Imports
- 13 packages
- Last checked
- 1 minute ago –
Tools for package owners.