commands

package
v0.5.4-rc3 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 83 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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)
		}
	},
}
View Source
var (
	Version = "dev"
)

Functions

func BuildAccessMatrixCmd

func BuildAccessMatrixCmd() *cobra.Command

func BuildAdminCmd

func BuildAdminCmd() *cobra.Command

func BuildAgentCmd

func BuildAgentCmd() *cobra.Command

func BuildBootstrapCmd

func BuildBootstrapCmd() *cobra.Command

func BuildBootstrapLoggingCmd

func BuildBootstrapLoggingCmd() *cobra.Command

func BuildCertsCmd

func BuildCertsCmd() *cobra.Command

func BuildCertsInfoCmd

func BuildCertsInfoCmd() *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 BuildCortexCmd

func BuildCortexCmd() *cobra.Command

func BuildDebugCmd

func BuildDebugCmd() *cobra.Command

func BuildDebugEtcdctlCmd

func BuildDebugEtcdctlCmd() *cobra.Command

func BuildDebugGetConfigCmd

func BuildDebugGetConfigCmd() *cobra.Command

func BuildDebugReloadCmd

func BuildDebugReloadCmd() *cobra.Command

func BuildGatewayCmd

func BuildGatewayCmd() *cobra.Command

func BuildManagerCmd

func BuildManagerCmd() *cobra.Command

func BuildQueryCmd

func BuildQueryCmd() *cobra.Command

func BuildQueryRangeCmd

func BuildQueryRangeCmd() *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 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 ConfigureManagementCommand

func ConfigureManagementCommand(cmd *cobra.Command)

Types

This section is empty.

Jump to

Keyboard shortcuts

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