factory

package
v0.2.51-rc3 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	ConfigFlags *genericclioptions.ConfigFlags
	// contains filtered or unexported fields
}

func NewFactory

func NewFactory() *Factory

func (*Factory) AddFlags

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

func (*Factory) Client

func (f *Factory) Client() (client.Client, error)

func (*Factory) RegisterCompletionFunctions

func (f *Factory) RegisterCompletionFunctions(cmd *cobra.Command) error

func (*Factory) ResourceNameCompletionFunc

func (f *Factory) ResourceNameCompletionFunc(resourceType, namespace string) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

func (*Factory) UserSubjectCompletionFunc added in v0.2.51

func (f *Factory) UserSubjectCompletionFunc(resourceType, namespace string) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

Jump to

Keyboard shortcuts

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