Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubeClient ¶
type KubeClient interface { ListApiResources(ctx context.Context, namespaced bool) ([]string, error) GetResources(ctx context.Context, kind string) ([]string, error) }
KubeClient is an interface for kubectl.Kubectl
type Options ¶
type Options struct { AllNamespaces bool IncludeNonNamespaced bool MaxInFlight int Pattern *regexp.Regexp }
Options contains the result of parsing the command line options
func GetOptions ¶
GetOptions returns a new Options populated with the parsed command line arguments provided by `commandLineArgs`. If `commandLineArgs` is nil, os.Args[1:] is used.
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func NewPlugin ¶
func NewPlugin(kubeClient KubeClient, options *Options, tui ProgressDisplayer) (*Plugin, error)
NewPlugin returns a new Plugin ready to be used
type ProgressDisplayer ¶
type ProgressDisplayer interface {
SetTotalKinds(int) chan<- *terminal.GetResourcesUpdate
}
ProgressDisplayer is an interface for terminal.UI
Click to show internal directories.
Click to hide internal directories.