explain

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdExplain

func NewCmdExplain(f util.Factory, parentCommand string, streams genericiooptions.IOStreams) *cobra.Command

NewCmdExplain new explain command.

Types

type CommandExplainOptions

type CommandExplainOptions struct {
	// flags specific to explain
	*kubectlexplain.ExplainOptions
	Cluster        string
	OperationScope options.OperationScope
}

CommandExplainOptions contains the input to the explain command.

func (*CommandExplainOptions) Complete

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

Complete ensures that options are valid and marshals them if necessary

func (*CommandExplainOptions) Run

func (o *CommandExplainOptions) Run() error

Run executes the appropriate steps to print a model's documentation

func (*CommandExplainOptions) Validate

func (o *CommandExplainOptions) Validate() error

Validate checks that the provided explain options are specified

Jump to

Keyboard shortcuts

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