genericclioptions

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: Apache-2.0 Imports: 5 Imported by: 19

Documentation

Overview

Copyright Contributors to the Open Cluster Management project

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusteradmFlags

type ClusteradmFlags struct {
	KubectlFactory cmdutil.Factory
	//if set the resources will be sent to stdout instead of being applied
	DryRun  bool
	Timeout int
	Context string
}

func NewClusteradmFlags

func NewClusteradmFlags(f cmdutil.Factory) *ClusteradmFlags

NewClusteradmFlags returns ClusteradmFlags with default values set

func (*ClusteradmFlags) AddFlags

func (f *ClusteradmFlags) AddFlags(flags *pflag.FlagSet)

func (*ClusteradmFlags) SetContext added in v0.3.1

func (f *ClusteradmFlags) SetContext(context *string)

SetContext will set current context from command line argument --context.

func (*ClusteradmFlags) ValidateHub added in v0.4.1

func (f *ClusteradmFlags) ValidateHub() error

func (*ClusteradmFlags) ValidateManagedCluster added in v0.4.1

func (f *ClusteradmFlags) ValidateManagedCluster() error

Jump to

Keyboard shortcuts

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