package explain
import "k8s.io/kubectl/pkg/cmd/explain"
Index ¶
- func NewCmdExplain(parent string, f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command
- type ExplainOptions
Functions ¶
func NewCmdExplain ¶
func NewCmdExplain(parent string, f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command
NewCmdExplain returns a cobra command for swagger docs
Types ¶
type ExplainOptions ¶
type ExplainOptions struct { genericiooptions.IOStreams CmdParent string APIVersion string Recursive bool Mapper meta.RESTMapper // Name of the template to use with the openapiv3 template renderer. OutputFormat string // Client capable of fetching openapi documents from the user's cluster OpenAPIV3Client openapiclient.Client // contains filtered or unexported fields }
func NewExplainOptions ¶
func NewExplainOptions(parent string, streams genericiooptions.IOStreams) *ExplainOptions
func (*ExplainOptions) Complete ¶
func (*ExplainOptions) Run ¶
func (o *ExplainOptions) Run() error
Run executes the appropriate steps to print a model's documentation
func (*ExplainOptions) Validate ¶
func (o *ExplainOptions) Validate() error
Source Files ¶
explain.go
- Version
- v0.32.3 (latest)
- Published
- Mar 12, 2025
- Platform
- linux/amd64
- Imports
- 12 packages
- Last checked
- 5 days ago –
Tools for package owners.