Documentation ¶
Index ¶
- Variables
- func AddCommandsToGroup(group *cobra.Group, cmds ...*cobra.Command)
- func BuildAccessMatrixCmd() *cobra.Command
- func BuildAgentCmd() *cobra.Command
- func BuildAgentV2Cmd() *cobra.Command
- func BuildAlertManager() *cobra.Command
- func BuildAlertingComponents() *cobra.Command
- func BuildAlertingSyncer() *cobra.Command
- func BuildCapabilityCancelUninstallCmd() *cobra.Command
- func BuildCapabilityCmd() *cobra.Command
- func BuildCapabilityInstallCmd() *cobra.Command
- func BuildCapabilityListCmd() *cobra.Command
- func BuildCapabilityStatusCmd() *cobra.Command
- func BuildCapabilityUninstallCmd() *cobra.Command
- func BuildCertsCmd() *cobra.Command
- func BuildCertsInfoCmd() *cobra.Command
- func BuildCertsPinCmd() *cobra.Command
- func BuildClientCmd() *cobra.Command
- func BuildClusterStatsCmd() *cobra.Command
- func BuildClustersCmd() *cobra.Command
- func BuildClustersDeleteCmd() *cobra.Command
- func BuildClustersLabelCmd() *cobra.Command
- func BuildClustersListCmd() *cobra.Command
- func BuildClustersRenameCmd() *cobra.Command
- func BuildClustersShowCmd() *cobra.Command
- func BuildClustersWatchCmd() *cobra.Command
- func BuildCortexAdminCmd() *cobra.Command
- func BuildCortexAdminRulesCmd() *cobra.Command
- func BuildCortexClusterConfigureCmd() *cobra.Command
- func BuildCortexClusterGetConfigurationCmd() *cobra.Command
- func BuildCortexClusterStatusCmd() *cobra.Command
- func BuildCortexClusterUninstallCmd() *cobra.Command
- func BuildCortexCmd() *cobra.Command
- func BuildCortexConfigCmd() *cobra.Command
- func BuildCortexOpsCmd() *cobra.Command
- func BuildCortexStatusCmd() *cobra.Command
- func BuildDebugCmd() *cobra.Command
- func BuildDebugDashboardSettingsCmd() *cobra.Command
- func BuildDebugDashboardSettingsGetCmd() *cobra.Command
- func BuildDebugDashboardSettingsUpdateCmd() *cobra.Command
- func BuildDebugEtcdctlCmd() *cobra.Command
- func BuildDebugGetConfigCmd() *cobra.Command
- func BuildDebugReloadCmd() *cobra.Command
- func BuildDeleteRuleGroupsCmd() *cobra.Command
- func BuildDiscoverCmd() *cobra.Command
- func BuildEventsCmd() *cobra.Command
- func BuildFlushBlocksCmd() *cobra.Command
- func BuildGatewayCmd() *cobra.Command
- func BuildHooksCmd() *cobra.Command
- func BuildImportAddCmd() *cobra.Command
- func BuildImportCmd() *cobra.Command
- func BuildImportEditCmd() *cobra.Command
- func BuildImportListCmd() *cobra.Command
- func BuildImportRemoveCmd() *cobra.Command
- func BuildImportStartCmd() *cobra.Command
- func BuildImportStopCmd() *cobra.Command
- func BuildKeyringsCmd() *cobra.Command
- func BuildKeyringsGenKeyCmd() *cobra.Command
- func BuildKeyringsGetCmd() *cobra.Command
- func BuildListRulesCmd() *cobra.Command
- func BuildLoadRuleGroupsCmd() *cobra.Command
- func BuildLoggingBackendCmd() *cobra.Command
- func BuildLoggingCmd() *cobra.Command
- func BuildLoggingUpgradeCmd() *cobra.Command
- func BuildManagerCmd() *cobra.Command
- func BuildMetricsCmd() *cobra.Command
- func BuildOpensearchBackendDeleteCmd() *cobra.Command
- func BuildOpensearchBackendStatusCmd() *cobra.Command
- func BuildOpensearchUpgradeDoCmd() *cobra.Command
- func BuildOpensearchUpgradeStatusCmd() *cobra.Command
- func BuildProgressCmd() *cobra.Command
- func BuildQueryCmd() *cobra.Command
- func BuildQueryRangeCmd() *cobra.Command
- func BuildRealtimeCmd() *cobra.Command
- func BuildRoleBindingsCmd() *cobra.Command
- func BuildRoleBindingsCreateCmd() *cobra.Command
- func BuildRoleBindingsDeleteCmd() *cobra.Command
- func BuildRoleBindingsListCmd() *cobra.Command
- func BuildRoleBindingsShowCmd() *cobra.Command
- func BuildRolesCmd() *cobra.Command
- func BuildRolesCreateCmd() *cobra.Command
- func BuildRolesDeleteCmd() *cobra.Command
- func BuildRolesListCmd() *cobra.Command
- func BuildRolesShowCmd() *cobra.Command
- func BuildStorageInfoCmd() *cobra.Command
- func BuildTokensCmd() *cobra.Command
- func BuildTokensCreateCmd() *cobra.Command
- func BuildTokensGetCmd() *cobra.Command
- func BuildTokensListCmd() *cobra.Command
- func BuildTokensRevokeCmd() *cobra.Command
- func BuildVersionCmd() *cobra.Command
- func BuildWaitForResourceCmd() *cobra.Command
- func ConfigureCortexAdminCommand(cmd *cobra.Command)
- func ConfigureImportCommand(cmd *cobra.Command)
- func ConfigureLoggingAdminCommand(cmd *cobra.Command)
- func ConfigureManagementCommand(cmd *cobra.Command)
- type ProgressModel
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 BuildAccessMatrixCmd ¶
func BuildAgentCmd ¶
func BuildAgentV2Cmd ¶ added in v0.6.0
func BuildAlertManager ¶ added in v0.8.2
func BuildAlertingComponents ¶ added in v0.8.2
func BuildAlertingSyncer ¶ added in v0.8.2
func BuildCapabilityCancelUninstallCmd ¶ added in v0.6.0
func BuildCapabilityCmd ¶ added in v0.6.0
func BuildCapabilityInstallCmd ¶ added in v0.6.0
func BuildCapabilityListCmd ¶ added in v0.6.0
func BuildCapabilityStatusCmd ¶ added in v0.6.0
func BuildCapabilityUninstallCmd ¶ added in v0.6.0
func BuildCertsCmd ¶
func BuildCertsInfoCmd ¶
func BuildCertsPinCmd ¶ added in v0.6.0
func BuildClientCmd ¶ added in v0.6.0
func BuildClusterStatsCmd ¶ added in v0.6.0
func BuildClustersCmd ¶
func BuildClustersDeleteCmd ¶
func BuildClustersLabelCmd ¶
func BuildClustersListCmd ¶
func BuildClustersRenameCmd ¶ added in v0.6.2
func BuildClustersShowCmd ¶ added in v0.8.0
func BuildClustersWatchCmd ¶ added in v0.6.0
func BuildCortexAdminCmd ¶ added in v0.6.0
func BuildCortexAdminRulesCmd ¶ added in v0.8.2
func BuildCortexClusterConfigureCmd ¶ added in v0.6.0
func BuildCortexClusterGetConfigurationCmd ¶ added in v0.6.0
func BuildCortexClusterStatusCmd ¶ added in v0.6.0
func BuildCortexClusterUninstallCmd ¶ added in v0.6.0
func BuildCortexCmd ¶
func BuildCortexConfigCmd ¶ added in v0.6.0
func BuildCortexOpsCmd ¶ added in v0.6.0
func BuildCortexStatusCmd ¶ added in v0.6.0
func BuildDebugCmd ¶
func BuildDebugDashboardSettingsCmd ¶ added in v0.6.0
func BuildDebugDashboardSettingsGetCmd ¶ added in v0.6.0
func BuildDebugDashboardSettingsUpdateCmd ¶ added in v0.6.0
func BuildDebugEtcdctlCmd ¶
func BuildDebugGetConfigCmd ¶
func BuildDebugReloadCmd ¶
func BuildDeleteRuleGroupsCmd ¶ added in v0.8.2
func BuildDiscoverCmd ¶ added in v0.8.2
func BuildEventsCmd ¶ added in v0.5.4
func BuildFlushBlocksCmd ¶ added in v0.6.0
func BuildGatewayCmd ¶
func BuildHooksCmd ¶ added in v0.5.4
func BuildImportAddCmd ¶ added in v0.8.2
func BuildImportCmd ¶ added in v0.8.2
func BuildImportEditCmd ¶ added in v0.8.2
func BuildImportListCmd ¶ added in v0.8.2
func BuildImportRemoveCmd ¶ added in v0.8.2
func BuildImportStartCmd ¶ added in v0.8.2
func BuildImportStopCmd ¶ added in v0.8.2
func BuildKeyringsCmd ¶ added in v0.6.0
func BuildKeyringsGenKeyCmd ¶ added in v0.9.0
func BuildKeyringsGetCmd ¶ added in v0.6.0
func BuildListRulesCmd ¶ added in v0.8.2
func BuildLoadRuleGroupsCmd ¶ added in v0.8.2
func BuildLoggingBackendCmd ¶ added in v0.7.0
func BuildLoggingCmd ¶ added in v0.6.1
func BuildLoggingUpgradeCmd ¶ added in v0.6.1
func BuildManagerCmd ¶
func BuildMetricsCmd ¶ added in v0.6.0
func BuildOpensearchBackendDeleteCmd ¶ added in v0.7.0
func BuildOpensearchBackendStatusCmd ¶ added in v0.7.0
func BuildOpensearchUpgradeDoCmd ¶ added in v0.6.1
func BuildOpensearchUpgradeStatusCmd ¶ added in v0.6.1
func BuildProgressCmd ¶ added in v0.8.2
func BuildQueryCmd ¶
func BuildQueryRangeCmd ¶
func BuildRealtimeCmd ¶ added in v0.5.4
func BuildRoleBindingsCmd ¶
func BuildRolesCmd ¶
func BuildRolesCreateCmd ¶
func BuildRolesDeleteCmd ¶
func BuildRolesListCmd ¶
func BuildRolesShowCmd ¶
func BuildStorageInfoCmd ¶ added in v0.6.0
func BuildTokensCmd ¶
func BuildTokensCreateCmd ¶
func BuildTokensGetCmd ¶
func BuildTokensListCmd ¶
func BuildTokensRevokeCmd ¶
func BuildVersionCmd ¶
func BuildWaitForResourceCmd ¶ added in v0.5.4
func ConfigureCortexAdminCommand ¶ added in v0.6.0
func ConfigureImportCommand ¶ added in v0.8.2
func ConfigureLoggingAdminCommand ¶ added in v0.6.1
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) View ¶ added in v0.8.2
func (model ProgressModel) View() string
Source Files ¶
- admin.go
- admin_cortex.go
- admin_logging.go
- agent.go
- agent_v2.go
- alerting.go
- capabilities.go
- certs.go
- client.go
- clusters.go
- commands.go
- completion.go
- completion_plugins.go
- cortex.go
- debug.go
- events.go
- gateway.go
- hooks.go
- import.go
- import_progress.go
- keyrings.go
- logging.go
- manager.go
- metrics.go
- rbac.go
- realtime.go
- setup.go
- setup_cortex.go
- setup_import.go
- setup_logging.go
- tokens.go
- version.go
Click to show internal directories.
Click to hide internal directories.