interpret

package
v1.9.0-preview2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdInterpret

func NewCmdInterpret(f util.Factory, parentCommand string, streams genericclioptions.IOStreams) *cobra.Command

NewCmdInterpret new interpret command.

Types

type Options

type Options struct {
	resource.FilenameOptions
	*editor.EditOptions

	Operation string
	Check     bool
	Edit      bool
	ShowDoc   bool

	// args
	DesiredFile    string
	ObservedFile   string
	StatusFile     string
	DesiredReplica int32

	CustomizationResult *resource.Result
	DesiredResult       *resource.Result
	ObservedResult      *resource.Result
	StatusResult        *genericresource.Result

	Rules interpreter.Rules

	genericclioptions.IOStreams
}

Options contains the input to the interpret command.

func (*Options) Complete

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

Complete ensures that options are valid and marshals them if necessary

func (*Options) Run

func (o *Options) Run() error

Run describe information of resources

func (*Options) Validate

func (o *Options) Validate() error

Validate validates Options.

Jump to

Keyboard shortcuts

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