cmd

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdScalePct

func NewCmdScalePct(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

NewCmdScalePct provides a cobra command wrapping ScalePctOptions

Types

type ScalePctOptions

type ScalePctOptions struct {
	PrintObj   printers.ResourcePrinterFunc
	PrintFlags *genericclioptions.PrintFlags

	Percentage int
	All        bool

	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

ScalePctOptions provides information required to update the current context on a user's KUBECONFIG

func NewScalePctOptions

func NewScalePctOptions(streams genericclioptions.IOStreams) *ScalePctOptions

NewScalePctOptions provides an instance of ScalePctOptions with default values

func (*ScalePctOptions) Complete

func (o *ScalePctOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete sets all information required for updating the current context

func (*ScalePctOptions) Run

func (o *ScalePctOptions) Run() error

Run lists all available namespaces on a user's KUBECONFIG or updates the current context based on a provided namespace.

func (*ScalePctOptions) Validate

func (o *ScalePctOptions) Validate() error

Validate ensures that all required arguments and flag values are provided

Jump to

Keyboard shortcuts

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