Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ValidPluginFilenamePrefixes = []string{"kubectl"}
)
Functions ¶
func NewCmdPlugin ¶
func NewCmdPlugin(streams genericclioptions.IOStreams) *cobra.Command
func NewCmdPluginList ¶
func NewCmdPluginList(streams genericclioptions.IOStreams) *cobra.Command
NewCmdPluginList provides a way to list all plugin executables visible to kubectl
func SetupPluginCompletion ¶ added in v0.26.0
func SetupPluginCompletion(cmd *cobra.Command, args []string)
SetupPluginCompletion adds a Cobra command to the command tree for each plugin. This is only done when performing shell completion that relate to plugins.
Types ¶
type CommandOverrideVerifier ¶
type CommandOverrideVerifier struct {
// contains filtered or unexported fields
}
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) ListPlugins ¶ added in v0.26.0
func (o *PluginListOptions) ListPlugins() ([]string, []error)
ListPlugins returns list of plugin paths.
Click to show internal directories.
Click to hide internal directories.