cmdutil

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStartInternalProxyArgs added in v0.2.0

func GetStartInternalProxyArgs(cmd *cobra.Command) []string

GetStartInternalProxyArgs 获取启动代理服务的命令行参数

func NewKubectlCommandWithInternalProxy added in v0.2.0

func NewKubectlCommandWithInternalProxy(
	clientGetter genericclioptions.RESTClientGetter,
	parent string,
	newCmd NewKubectlCommandFunc,
	newValidArgsFunc NewValidArgsFunc,
) *cobra.Command

NewKubectlCommandWithInternalProxy 创建使用缓存代理的 kubectl 命令

func SetLogger

func SetLogger(cmd *cobra.Command, verbosity uint32) logr.Logger

SetLogger 设置命令日志,并返回 logr.Logger

Types

type NewKubectlCommandFunc added in v0.2.0

type NewKubectlCommandFunc func(
	parent string,
	f kubectlcmdutil.Factory,
	streams genericiooptions.IOStreams,
) *cobra.Command

NewKubectlCommandFunc 创建 kubectl 命令方法

type NewValidArgsFunc added in v0.2.0

type NewValidArgsFunc func(
	f kubectlcmdutil.Factory,
) func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

NewValidArgsFunc 生成 cobra.Command.ValidArgsFunction 方法

Jump to

Keyboard shortcuts

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