explain

package
v0.27.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 12 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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

	// 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
	OpenAPIV3Client openapiclient.Client
	// contains filtered or unexported fields
}

func NewExplainOptions

func NewExplainOptions(parent string, streams genericclioptions.IOStreams) *ExplainOptions

func (*ExplainOptions) Complete

func (o *ExplainOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL