Documentation
¶
Overview ¶
Package root builds the kubectl-nv command tree.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Deps ¶
type Deps struct {
Streams genericiooptions.IOStreams
Factory cmd.Factory
MustGather mustgather.RunFunc
// ConfigFlags, when non-nil, are the kubectl configuration flags this tree
// reads its connection from instead of making its own. The MCP server
// passes the ones its own command line was parsed into, so that every tool
// call talks to the cluster the server was started against rather than to
// whatever the environment says when the call arrives.
ConfigFlags *genericclioptions.ConfigFlags
// Options, when non-nil, is the state the root fills in and every
// subcommand reads. A caller that needs to see what parsing produced passes
// its own; the root makes one otherwise.
Options *cmd.Options
}
Deps are the seams of the command tree. The zero value talks to a real cluster and runs a real must-gather; tests replace the parts they need to.
Click to show internal directories.
Click to hide internal directories.