Versions in this module Expand all Collapse all v0 v0.2.0 Mar 10, 2023 v0.1.0 Mar 6, 2023 Changes in this version + type Cmd struct + UIStopTimeout time.Duration + func NewCmd(plugin Fetcher, stdout Stdout, stderr io.Writer, ui Starter) (*Cmd, error) + func (c *Cmd) Run(ctx context.Context) error + type Fetcher interface + Fetch func(ctx context.Context) ([]string, error) + type KubeClient interface + GetResources func(ctx context.Context, kind string) ([]string, error) + ListApiResources func(ctx context.Context, namespaced bool) ([]string, error) + type Options struct + AllNamespaces bool + IncludeNonNamespaced bool + MaxInFlight int + Pattern *regexp.Regexp + func GetOptions(commandLineArgs []string) (*Options, error) + type Plugin struct + func NewPlugin(kubeClient KubeClient, options *Options, tui ProgressDisplayer) (*Plugin, error) + func (p *Plugin) Fetch(ctx context.Context) ([]string, error) + type ProgressDisplayer interface + SetTotalKinds func(int) chan<- *terminal.GetResourcesUpdate + type Starter interface + Start func(ctx context.Context, wg *sync.WaitGroup) + type Stdout interface + Stat func() (fs.FileInfo, error)