edit

package
v0.6.0-beta.23 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomEditOptions added in v0.6.0

type CustomEditOptions struct {
	Factory    cmdutil.Factory
	PrintFlags *genericclioptions.PrintFlags
	Method     string
	TestEnv    bool

	genericclioptions.IOStreams
}

CustomEditOptions is used to edit the resource manifest when creating or updating the resource, instead of using -o yaml to output the yaml file before editing the manifest.

func NewCustomEditOptions added in v0.6.0

func NewCustomEditOptions(f cmdutil.Factory, streams genericclioptions.IOStreams, method string) *CustomEditOptions

func (*CustomEditOptions) Run added in v0.6.0

func (o *CustomEditOptions) Run(originalObj runtime.Object) error

type EditOptions

type EditOptions struct {
	editor.EditOptions
	Factory cmdutil.Factory
	// Name is the resource name
	Name string
	GVR  schema.GroupVersionResource
}

func (*EditOptions) AddFlags

func (o *EditOptions) AddFlags(cmd *cobra.Command)

func (*EditOptions) Complete

func (o *EditOptions) Complete(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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