kubernetes: k8s.io/kubernetes/pkg/kubectl/cmd/plugin Index | Files

package plugin

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

Index

Package Files

plugin.go

Variables

var (
    ValidPluginFilenamePrefixes = []string{"kubectl"}
)

func NewCmdPlugin Uses

func NewCmdPlugin(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

func NewCmdPluginList Uses

func NewCmdPluginList(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

NewCmdPluginList provides a way to list all plugin executables visible to kubectl

type CommandOverrideVerifier Uses

type CommandOverrideVerifier struct {
    // contains filtered or unexported fields
}

func (*CommandOverrideVerifier) Verify Uses

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 Uses

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 Uses

type PluginListOptions struct {
    Verifier PathVerifier
    NameOnly bool

    PluginPaths []string

    genericclioptions.IOStreams
}

func (*PluginListOptions) Complete Uses

func (o *PluginListOptions) Complete(cmd *cobra.Command) error

func (*PluginListOptions) Run Uses

func (o *PluginListOptions) Run() error

Package plugin imports 12 packages (graph) and is imported by 11 packages. Updated 2019-07-19. Refresh now. Tools for package owners.