Documentation ¶
Index ¶
- Constants
- func IsBatchQueryCmd(cmd *cobra.Command, cmdArgs []string) bool
- func IsCheckCmd(cmd *cobra.Command) bool
- func IsDashboardCmd(cmd *cobra.Command) bool
- func IsModCmd(cmd *cobra.Command) bool
- func IsPluginManagerCmd(cmd *cobra.Command) bool
- func RunTasks(ctx context.Context, cmd *cobra.Command, args []string, ...) chan struct{}
- type AvailableVersionCache
- type CLIVersionCheckResponse
- type HookFn
- type Runner
- type TaskRunOption
Constants ¶
View Source
const (
AvailableVersionsCacheStructVersion = 20230117
)
Variables ¶
This section is empty.
Functions ¶
func IsBatchQueryCmd ¶ added in v0.21.0
func IsCheckCmd ¶ added in v0.22.0
func IsDashboardCmd ¶ added in v0.22.0
func IsPluginManagerCmd ¶ added in v0.20.0
Types ¶
type AvailableVersionCache ¶ added in v0.19.0
type AvailableVersionCache struct { StructVersion uint32 `json:"struct_version"` CliCache *CLIVersionCheckResponse `json:"cli_version"` PluginCache map[string]plugin.PluginVersionCheckReport `json:"plugin_version"` }
type CLIVersionCheckResponse ¶ added in v0.19.0
type CLIVersionCheckResponse struct { NewVersion string `json:"latest_version,omitempty"` // `json:"current_version"` DownloadURL string `json:"download_url,omitempty"` // `json:"download_url"` ChangelogURL string `json:"html,omitempty"` // `json:"changelog_url"` Alerts []*string `json:"alerts,omitempty"` }
type TaskRunOption ¶ added in v0.19.0
type TaskRunOption func(o *taskRunConfig)
func WithPreHook ¶ added in v0.20.0
func WithPreHook(f HookFn) TaskRunOption
func WithUpdateCheck ¶ added in v0.19.0
func WithUpdateCheck(run bool) TaskRunOption
Click to show internal directories.
Click to hide internal directories.