Documentation
¶
Overview ¶
------------------------------------------------------------ Copyright (c) Microsoft Corporation and Dapr Contributors. Licensed under the MIT License. ------------------------------------------------------------
Index ¶
Constants ¶
View Source
const UserHelpExample = `` /* 129-byte string literal not displayed */
Variables ¶
View Source
var InstallerCmd = &cobra.Command{ Use: "installer", Short: "installer manager.", Example: UserHelpExample, Run: func(cmd *cobra.Command, args []string) { if len(args) == 0 { cmd.Help() return } }, }
View Source
var InstallerInfoCmd = &cobra.Command{ Use: "show", Short: "show installer.", Example: UserHelpExample, Run: func(cmd *cobra.Command, args []string) { if len(args) != 1 { print.FailureStatusEvent(os.Stdout, "please input installer info") return } tkeelRepo, installer, version := parseInstallArg(args[0]) data, err := kubernetes.InstallerInfo(tkeelRepo, installer, version) if err != nil { print.FailureStatusEvent(os.Stdout, err.Error()) os.Exit(1) } table, err := gocsv.MarshalString(data) if err != nil { print.FailureStatusEvent(os.Stdout, err.Error()) os.Exit(1) } fmtutil.PrintTable(table) }, }
View Source
var InstallerListCmd = &cobra.Command{ Use: "list", Short: "list installer.", Example: UserHelpExample, Run: func(cmd *cobra.Command, args []string) { if repo != "" { data, err := kubernetes.InstallerList(repo) if err != nil { print.FailureStatusEvent(os.Stdout, err.Error()) os.Exit(1) } table, err := gocsv.MarshalString(data) if err != nil { print.FailureStatusEvent(os.Stdout, err.Error()) os.Exit(1) } fmtutil.PrintTable(table) return } if all { data, err := kubernetes.InstallerListAll() if err != nil { print.FailureStatusEvent(os.Stdout, err.Error()) os.Exit(1) } table, err := gocsv.MarshalString(data) if err != nil { print.FailureStatusEvent(os.Stdout, err.Error()) os.Exit(1) } fmtutil.PrintTable(table) return } cmd.Help() }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.