Documentation ¶
Index ¶
- Variables
- func AddSubCommands(cmd *cobra.Command)
- func BasicGetStatusInfo(ctx context.Context) (ioutil.WriterTos, error)
- func ClusterIdCommand() *cobra.Command
- func Command(ctx context.Context) *cobra.Command
- func GatherTracesCommand() *cobra.Command
- func GlobalFlags() *pflag.FlagSet
- func InitConnectRequest(cmd *cobra.Command) (*connector.ConnectRequest, *pflag.FlagSet)
- func InitContext(ctx context.Context) context.Context
- func Main(ctx context.Context)
- func OnlySubcommands(cmd *cobra.Command, args []string) error
- func PerhapsLegacyCommands(cmd *cobra.Command, args []string) error
- func PushTracesCommand() *cobra.Command
- func RunSubcommands(cmd *cobra.Command, args []string) error
- func WithSubCommands(ctx context.Context) context.Context
- type HelmOpts
- type StatusInfo
Constants ¶
This section is empty.
Variables ¶
var ( HelmInstallExtendFlagsFunc func(*pflag.FlagSet) //nolint:gochecknoglobals // extension point HelmInstallPrologFunc func(context.Context, *pflag.FlagSet, *HelmOpts) error //nolint:gochecknoglobals // extension point )
var GetStatusInfo = BasicGetStatusInfo //nolint:gochecknoglobals // extension point
GetStatusInfo may return an extended struct, based on the one returned by the BasicGetStatusInfo.
Functions ¶
func AddSubCommands ¶ added in v2.9.0
AddSubCommands adds subcommands to the given command, including the default help, the commands in the CommandGroups found in the given command's context, and the completion command. It also replaces the standard usage template with a custom template.
func BasicGetStatusInfo ¶ added in v2.9.0
func ClusterIdCommand ¶ added in v2.2.0
ClusterIdCommand is a simple command that makes it easier for users to figure out what their cluster ID is. For now this is just used when people are making licenses for air-gapped environments.
func GatherTracesCommand ¶ added in v2.9.0
func GlobalFlags ¶ added in v2.9.0
func InitConnectRequest ¶ added in v2.10.5
InitConnectRequest adds the networking flags and Kubernetes flags to the given command and returns a ConnectRequest and a FlagSet with the Kubernetes flags. The FlagSet is returned here so that a map of flags that gets modified can be extracted using FlagMap once the flag parsing has completed.
func OnlySubcommands ¶
OnlySubcommands is a cobra.PositionalArgs that is similar to cobra.NoArgs, but prints a better error message.
func PerhapsLegacyCommands ¶ added in v2.4.0
PerhapsLegacyCommands is like OnlySubcommands but performs some initial check for legacy flags.
func PushTracesCommand ¶ added in v2.9.0
func RunSubcommands ¶
RunSubcommands is for use as a cobra.Command.RunE for commands that don't do anything themselves but have subcommands. In such cases, it is important to set RunE even though there's nothing to run, because otherwise cobra will treat that as "success", and it shouldn't be "success" if the user typos a command and types something invalid.
Types ¶
type HelmOpts ¶ added in v2.10.0
type HelmOpts struct { values.Options AllValues map[string]any ReuseValues bool ResetValues bool Request *connector.ConnectRequest // contains filtered or unexported fields }
func (*HelmOpts) Type ¶ added in v2.10.0
func (ha *HelmOpts) Type() connector.HelmRequest_Type