package explain
import "k8s.io/kubectl/pkg/cmd/explain"
Index ¶
- func NewCmdExplain(parent string, f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- type ExplainOptions
Functions ¶
func NewCmdExplain ¶
func NewCmdExplain(parent string, f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
NewCmdExplain returns a cobra command for swagger docs
Types ¶
type ExplainOptions ¶
type ExplainOptions struct { genericclioptions.IOStreams CmdParent string APIVersion string Recursive bool Mapper meta.RESTMapper Schema openapi.Resources // Toggles whether the OpenAPI v3 template-based renderer should be used to show // output. EnableOpenAPIV3 bool // Name of the template to use with the openapiv3 template renderer. If // `EnableOpenAPIV3` is disabled, this does nothing OutputFormat string // Client capable of fetching openapi documents from the user's cluster DiscoveryClient discovery.DiscoveryInterface // contains filtered or unexported fields }
func NewExplainOptions ¶
func NewExplainOptions(parent string, streams genericclioptions.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.26.0-alpha.3
- Published
- Nov 2, 2022
- Platform
- js/wasm
- Imports
- 13 packages
- Last checked
- 1 minute ago –
Tools for package owners.