options

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonOptions

type CommonOptions struct {
	ConfigFlags *genericclioptions.ConfigFlags
	genericclioptions.IOStreams

	RestConfig *rest.Config
	RestMapper meta.RESTMapper

	KubeClient      *kubernetes.Clientset
	CraneClient     *crane.Clientset
	DynamicClient   dynamic.Interface
	DiscoveryClient discovery.DiscoveryInterface
}

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

func NewCommonOptions

func NewCommonOptions() *CommonOptions

func (*CommonOptions) AddCommonFlag

func (o *CommonOptions) AddCommonFlag(cmd *cobra.Command)

func (*CommonOptions) Complete

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

func (*CommonOptions) Validate

func (o *CommonOptions) 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