commands

package
v0.8.3-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 108 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OpniComponents = &cobra.Group{
		ID:    "opni-components",
		Title: "Opni Components:",
	}
	ManagementAPI = &cobra.Group{
		ID:    "management-api",
		Title: "Management API:",
	}
	PluginAPIs = &cobra.Group{
		ID:    "plugin-apis",
		Title: "Plugin APIs:",
	}
	Utilities = &cobra.Group{
		ID:    "utilities",
		Title: "Utilities:",
	}
	Debug = &cobra.Group{
		ID:    "debug",
		Title: "Debug:",
	}
	AllGroups = []*cobra.Group{
		OpniComponents,
		ManagementAPI,
		PluginAPIs,
		Utilities,
		Debug,
	}
)
View Source
var AllCommands []*cobra.Command
View Source
var CompletionCmd = &cobra.Command{
	Use:   "completion [bash|zsh|fish]",
	Short: "Generate completion script",
	Long: `To load completions:

Bash:

  $ source <(opni completion bash)

  # To load completions for each session, execute once:
  # Linux:
  $ opni completion bash > /etc/bash_completion.d/opni
  # macOS:
  $ opni completion bash > /usr/local/etc/bash_completion.d/opni

Zsh:

  # If shell completion is not already enabled in your environment,
  # you will need to enable it.  You can execute the following once:

  $ echo "autoload -U compinit; compinit" >> ~/.zshrc

  # To load completions for each session, execute once:
  $ opni completion zsh > "${fpath[1]}/_opni"

  # You will need to start a new shell for this setup to take effect.

fish:

  $ opni completion fish | source

  # To load completions for each session, execute once:
  $ opni completion fish > ~/.config/fish/completions/opni.fish
`,
	DisableFlagsInUseLine: true,
	ValidArgs:             []string{"bash", "zsh", "fish"},
	Args:                  cobra.ExactValidArgs(1),
	Run: func(cmd *cobra.Command, args []string) {
		switch args[0] {
		case "bash":
			cmd.Root().GenBashCompletion(os.Stdout)
		case "zsh":
			cmd.Root().GenZshCompletion(os.Stdout)
		case "fish":
			cmd.Root().GenFishCompletion(os.Stdout, true)
		}
	},
}

Functions

func AddCommandsToGroup added in v0.6.0

func AddCommandsToGroup(group *cobra.Group, cmds ...*cobra.Command)

func BuildAccessMatrixCmd

func BuildAccessMatrixCmd() *cobra.Command

func BuildAgentCmd

func BuildAgentCmd() *cobra.Command

func BuildAgentV2Cmd added in v0.6.0

func BuildAgentV2Cmd() *cobra.Command

func BuildAlertManager added in v0.8.2

func BuildAlertManager() *cobra.Command

func BuildAlertingComponents added in v0.8.2

func BuildAlertingComponents() *cobra.Command

func BuildAlertingSyncer added in v0.8.2

func BuildAlertingSyncer() *cobra.Command

func BuildCapabilityCancelUninstallCmd added in v0.6.0

func BuildCapabilityCancelUninstallCmd() *cobra.Command

func BuildCapabilityCmd added in v0.6.0

func BuildCapabilityCmd() *cobra.Command

func BuildCapabilityInstallCmd added in v0.6.0

func BuildCapabilityInstallCmd() *cobra.Command

func BuildCapabilityListCmd added in v0.6.0

func BuildCapabilityListCmd() *cobra.Command

func BuildCapabilityStatusCmd added in v0.6.0

func BuildCapabilityStatusCmd() *cobra.Command

func BuildCapabilityUninstallCmd added in v0.6.0

func BuildCapabilityUninstallCmd() *cobra.Command

func BuildCertsCmd

func BuildCertsCmd() *cobra.Command

func BuildCertsInfoCmd

func BuildCertsInfoCmd() *cobra.Command

func BuildCertsPinCmd added in v0.6.0

func BuildCertsPinCmd() *cobra.Command

func BuildClientCmd added in v0.6.0

func BuildClientCmd() *cobra.Command

func BuildClusterStatsCmd added in v0.6.0

func BuildClusterStatsCmd() *cobra.Command

func BuildClustersCmd

func BuildClustersCmd() *cobra.Command

func BuildClustersDeleteCmd

func BuildClustersDeleteCmd() *cobra.Command

func BuildClustersLabelCmd

func BuildClustersLabelCmd() *cobra.Command

func BuildClustersListCmd

func BuildClustersListCmd() *cobra.Command

func BuildClustersRenameCmd added in v0.6.2

func BuildClustersRenameCmd() *cobra.Command

func BuildClustersShowCmd added in v0.8.0

func BuildClustersShowCmd() *cobra.Command

func BuildClustersWatchCmd added in v0.6.0

func BuildClustersWatchCmd() *cobra.Command

func BuildCortexAdminCmd added in v0.6.0

func BuildCortexAdminCmd() *cobra.Command

func BuildCortexAdminRulesCmd added in v0.8.2

func BuildCortexAdminRulesCmd() *cobra.Command

func BuildCortexClusterConfigureCmd added in v0.6.0

func BuildCortexClusterConfigureCmd() *cobra.Command

func BuildCortexClusterGetConfigurationCmd added in v0.6.0

func BuildCortexClusterGetConfigurationCmd() *cobra.Command

func BuildCortexClusterStatusCmd added in v0.6.0

func BuildCortexClusterStatusCmd() *cobra.Command

func BuildCortexClusterUninstallCmd added in v0.6.0

func BuildCortexClusterUninstallCmd() *cobra.Command

func BuildCortexCmd

func BuildCortexCmd() *cobra.Command

func BuildCortexConfigCmd added in v0.6.0

func BuildCortexConfigCmd() *cobra.Command

func BuildCortexOpsCmd added in v0.6.0

func BuildCortexOpsCmd() *cobra.Command

func BuildCortexStatusCmd added in v0.6.0

func BuildCortexStatusCmd() *cobra.Command

func BuildDebugCmd

func BuildDebugCmd() *cobra.Command

func BuildDebugDashboardSettingsCmd added in v0.6.0

func BuildDebugDashboardSettingsCmd() *cobra.Command

func BuildDebugDashboardSettingsGetCmd added in v0.6.0

func BuildDebugDashboardSettingsGetCmd() *cobra.Command

func BuildDebugDashboardSettingsUpdateCmd added in v0.6.0

func BuildDebugDashboardSettingsUpdateCmd() *cobra.Command

func BuildDebugEtcdctlCmd

func BuildDebugEtcdctlCmd() *cobra.Command

func BuildDebugGetConfigCmd

func BuildDebugGetConfigCmd() *cobra.Command

func BuildDebugReloadCmd

func BuildDebugReloadCmd() *cobra.Command

func BuildDeleteRuleGroupsCmd added in v0.8.2

func BuildDeleteRuleGroupsCmd() *cobra.Command

func BuildDiscoverCmd added in v0.8.2

func BuildDiscoverCmd() *cobra.Command

func BuildEventsCmd added in v0.5.4

func BuildEventsCmd() *cobra.Command

func BuildFlushBlocksCmd added in v0.6.0

func BuildFlushBlocksCmd() *cobra.Command

func BuildGatewayCmd

func BuildGatewayCmd() *cobra.Command

func BuildHooksCmd added in v0.5.4

func BuildHooksCmd() *cobra.Command

func BuildImportAddCmd added in v0.8.2

func BuildImportAddCmd() *cobra.Command

func BuildImportCmd added in v0.8.2

func BuildImportCmd() *cobra.Command

func BuildImportEditCmd added in v0.8.2

func BuildImportEditCmd() *cobra.Command

func BuildImportListCmd added in v0.8.2

func BuildImportListCmd() *cobra.Command

func BuildImportRemoveCmd added in v0.8.2

func BuildImportRemoveCmd() *cobra.Command

func BuildImportStartCmd added in v0.8.2

func BuildImportStartCmd() *cobra.Command

func BuildImportStopCmd added in v0.8.2

func BuildImportStopCmd() *cobra.Command

func BuildKeyringsCmd added in v0.6.0

func BuildKeyringsCmd() *cobra.Command

func BuildKeyringsGetCmd added in v0.6.0

func BuildKeyringsGetCmd() *cobra.Command

func BuildListRulesCmd added in v0.8.2

func BuildListRulesCmd() *cobra.Command

func BuildLoadRuleGroupsCmd added in v0.8.2

func BuildLoadRuleGroupsCmd() *cobra.Command

func BuildLoggingBackendCmd added in v0.7.0

func BuildLoggingBackendCmd() *cobra.Command

func BuildLoggingCmd added in v0.6.1

func BuildLoggingCmd() *cobra.Command

func BuildLoggingUpgradeCmd added in v0.6.1

func BuildLoggingUpgradeCmd() *cobra.Command

func BuildManagerCmd

func BuildManagerCmd() *cobra.Command

func BuildMetricsCmd added in v0.6.0

func BuildMetricsCmd() *cobra.Command

func BuildOpensearchBackendDeleteCmd added in v0.7.0

func BuildOpensearchBackendDeleteCmd() *cobra.Command

func BuildOpensearchBackendStatusCmd added in v0.7.0

func BuildOpensearchBackendStatusCmd() *cobra.Command

func BuildOpensearchUpgradeDoCmd added in v0.6.1

func BuildOpensearchUpgradeDoCmd() *cobra.Command

func BuildOpensearchUpgradeStatusCmd added in v0.6.1

func BuildOpensearchUpgradeStatusCmd() *cobra.Command

func BuildProgressCmd added in v0.8.2

func BuildProgressCmd() *cobra.Command

func BuildQueryCmd

func BuildQueryCmd() *cobra.Command

func BuildQueryRangeCmd

func BuildQueryRangeCmd() *cobra.Command

func BuildRealtimeCmd added in v0.5.4

func BuildRealtimeCmd() *cobra.Command

func BuildRoleBindingsCmd

func BuildRoleBindingsCmd() *cobra.Command

func BuildRoleBindingsCreateCmd

func BuildRoleBindingsCreateCmd() *cobra.Command

func BuildRoleBindingsDeleteCmd

func BuildRoleBindingsDeleteCmd() *cobra.Command

func BuildRoleBindingsListCmd

func BuildRoleBindingsListCmd() *cobra.Command

func BuildRoleBindingsShowCmd

func BuildRoleBindingsShowCmd() *cobra.Command

func BuildRolesCmd

func BuildRolesCmd() *cobra.Command

func BuildRolesCreateCmd

func BuildRolesCreateCmd() *cobra.Command

func BuildRolesDeleteCmd

func BuildRolesDeleteCmd() *cobra.Command

func BuildRolesListCmd

func BuildRolesListCmd() *cobra.Command

func BuildRolesShowCmd

func BuildRolesShowCmd() *cobra.Command

func BuildStorageInfoCmd added in v0.6.0

func BuildStorageInfoCmd() *cobra.Command

func BuildTokensCmd

func BuildTokensCmd() *cobra.Command

func BuildTokensCreateCmd

func BuildTokensCreateCmd() *cobra.Command

func BuildTokensGetCmd

func BuildTokensGetCmd() *cobra.Command

func BuildTokensListCmd

func BuildTokensListCmd() *cobra.Command

func BuildTokensRevokeCmd

func BuildTokensRevokeCmd() *cobra.Command

func BuildVersionCmd

func BuildVersionCmd() *cobra.Command

func BuildWaitForResourceCmd added in v0.5.4

func BuildWaitForResourceCmd() *cobra.Command

func ConfigureCortexAdminCommand added in v0.6.0

func ConfigureCortexAdminCommand(cmd *cobra.Command)

func ConfigureImportCommand added in v0.8.2

func ConfigureImportCommand(cmd *cobra.Command)

func ConfigureLoggingAdminCommand added in v0.6.1

func ConfigureLoggingAdminCommand(cmd *cobra.Command)

func ConfigureManagementCommand

func ConfigureManagementCommand(cmd *cobra.Command)

Types

type ProgressModel added in v0.8.2

type ProgressModel struct {
	// contains filtered or unexported fields
}

func NewProgressModel added in v0.8.2

func NewProgressModel(ctx context.Context, statusRequest *remoteread.TargetStatusRequest) ProgressModel

func (ProgressModel) Init added in v0.8.2

func (model ProgressModel) Init() tea.Cmd

func (ProgressModel) Update added in v0.8.2

func (model ProgressModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ProgressModel) View added in v0.8.2

func (model ProgressModel) View() string

Jump to

Keyboard shortcuts

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