list

package
v0.7.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClusterQueueCmd

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

func NewListCmd

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

func NewLocalQueueCmd

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

func NewWorkloadCmd

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

Types

type ClusterQueueOptions

type ClusterQueueOptions struct {
	// PrintFlags holds options necessary for obtaining a printer
	PrintFlags *genericclioptions.PrintFlags

	LabelSelector string
	FieldSelector string

	// Kueuectl flags
	// Active is an optional flag to filter true/false (active/inactive) cluster queues
	// Active means the cluster queue has kueue.ClusterQueueActive condition with status=metav1.ConditionTrue
	Active []bool

	Client kueuev1beta1.KueueV1beta1Interface

	PrintObj printers.ResourcePrinterFunc

	genericiooptions.IOStreams
	// contains filtered or unexported fields
}

func NewClusterQueueOptions

func NewClusterQueueOptions(streams genericiooptions.IOStreams) *ClusterQueueOptions

func (*ClusterQueueOptions) Complete

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

Complete takes the command arguments and infers any remaining options.

func (*ClusterQueueOptions) Run

Run prints the cluster queues.

func (*ClusterQueueOptions) Validate

func (o *ClusterQueueOptions) Validate() error

type LocalQueueOptions

type LocalQueueOptions struct {
	PrintFlags *genericclioptions.PrintFlags

	AllNamespaces      bool
	Namespace          string
	FieldSelector      string
	LabelSelector      string
	ClusterQueueFilter string

	Client kueuev1beta1.KueueV1beta1Interface

	PrintObj printers.ResourcePrinterFunc

	genericiooptions.IOStreams
}

func NewLocalQueueOptions

func NewLocalQueueOptions(streams genericiooptions.IOStreams) *LocalQueueOptions

func (*LocalQueueOptions) Complete

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

Complete completes all the required options

func (*LocalQueueOptions) Run

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

Run performs the list operation.

type WorkloadOptions

type WorkloadOptions struct {
	PrintFlags *genericclioptions.PrintFlags

	AllNamespaces      bool
	Namespace          string
	FieldSelector      string
	LabelSelector      string
	ClusterQueueFilter string
	LocalQueueFilter   string
	StatusesFilter     sets.Set[int]

	ClientSet clientset.Interface

	ToPrinter func(r *listWorkloadResources) (printers.ResourcePrinterFunc, error)

	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 performs the list operation.

Jump to

Keyboard shortcuts

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