delete

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWorkloadCmd

func NewWorkloadCmd(clientGetter util.ClientGetter, streams genericiooptions.IOStreams) *cobra.Command

Types

type GroupVersionResourceName

type GroupVersionResourceName struct {
	schema.GroupVersionResource
	Name string
}

func (GroupVersionResourceName) String

func (g GroupVersionResourceName) String() string

type WorkloadOptions

type WorkloadOptions struct {
	PrintFlags *genericclioptions.PrintFlags

	Names         []string
	Namespace     string
	AllNamespaces bool
	Confirmed     bool
	DeleteAll     bool

	DryRunStrategy util.DryRunStrategy

	Client        kueuev1beta1.KueueV1beta1Interface
	DynamicClient dynamic.Interface
	RestMapper    meta.RESTMapper

	PrintObj printers.ResourcePrinterFunc

	genericiooptions.IOStreams
}

func NewWorkloadOptions

func NewWorkloadOptions(streams genericiooptions.IOStreams) *WorkloadOptions

func (*WorkloadOptions) Complete

func (o *WorkloadOptions) Complete(clientGetter util.ClientGetter, cmd *cobra.Command, args []string) error

Complete completes all the required options

func (*WorkloadOptions) Run

func (o *WorkloadOptions) Run(ctx context.Context) error

Run delete a resource

Jump to

Keyboard shortcuts

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