interpret

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 26 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

	Operation string
	Check     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, cmd *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