completion

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: Apache-2.0 Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountIDCompletion added in v0.20.0

func AccountIDCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

AccountIDCompletion returns a ValidArgsFunction that completes account IDs.

func AccountMemberIDCompletion added in v0.20.0

func AccountMemberIDCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

AccountMemberIDCompletion returns a ValidArgsFunction that completes account member user IDs.

func BackupIDCompletion added in v0.3.0

func BackupIDCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

BackupIDCompletion returns a ValidArgsFunction that completes backup IDs.

func CPUCompletion added in v0.16.0

func CPUCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

CPUCompletion returns a completion function for a --cpu flag.

func CloudProviderCompletion added in v0.7.0

func CloudProviderCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

CloudProviderCompletion returns a completion function for the --cloud-provider flag. It skips the 'hybrid' cloud, as this flag is meant to be used for cloud clusters, not hybrid ones.

func CloudRegionCompletion added in v0.7.0

func CloudRegionCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

CloudRegionCompletion returns a completion function for the --cloud-region flag.

func ClusterIDCompletion

func ClusterIDCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

ClusterIDCompletion returns a ValidArgsFunction that completes cluster IDs.

func ClusterNodeCompletion added in v0.36.0

func ClusterNodeCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

ClusterNodeCompletion completes a cluster ID, then the numbers of its nodes.

func CompareNodes added in v0.36.0

func CompareNodes(a, b string) int

CompareNodes orders node numbers numerically, falling back to text.

func DiskCompletion added in v0.16.0

func DiskCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

DiskCompletion returns a completion function for a --disk flag.

func GPUCompletion added in v0.16.0

func GPUCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

GPUCompletion returns a completion function for a --gpu flag.

func ManagementKeyIDCompletion added in v0.19.0

func ManagementKeyIDCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

ManagementKeyIDCompletion returns a ValidArgsFunction that completes management key IDs.

func NodeNumber added in v0.36.0

func NodeNumber(clusterID, nodeID string) string

NodeNumber returns the short name of a node, such as "0", from its full ID.

func PackageNameCompletion added in v0.16.0

func PackageNameCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

PackageNameCompletion returns a completion function for a --package flag.

func PermissionCompletion added in v0.20.0

func PermissionCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

PermissionCompletion returns a completion function for the --permission flag.

func RAMCompletion added in v0.16.0

func RAMCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

RAMCompletion returns a completion function for a --ram flag.

func RoleCompletion added in v0.20.0

func RoleCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

RoleCompletion returns a completion function that completes IAM role names with their ID as description.

func RoleIDCompletion added in v0.20.0

func RoleIDCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

RoleIDCompletion returns a ValidArgsFunction that completes role IDs.

func ServerlessCloudRegionCompletion added in v0.31.0

func ServerlessCloudRegionCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

ServerlessCloudRegionCompletion returns a ValidArgsFunction that completes serverless cloud region IDs for the first positional argument.

func ServerlessCloudRegionFlagCompletion added in v0.31.0

func ServerlessCloudRegionFlagCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

ServerlessCloudRegionFlagCompletion returns a completion function for --cloud-region flags of serverless commands. Unavailable regions are marked in the description.

func SpaceBackupIDCompletion added in v0.30.0

func SpaceBackupIDCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

SpaceBackupIDCompletion returns a ValidArgsFunction that completes serverless backup IDs. When the command has a --space-id flag set, only backups of that space are offered.

func SpaceIDCompletion added in v0.30.0

func SpaceIDCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

SpaceIDCompletion returns a ValidArgsFunction that completes serverless space IDs.

func SpaceIDFlagCompletion added in v0.30.0

func SpaceIDFlagCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

SpaceIDFlagCompletion returns a completion function for --space-id flags.

func SpaceSampleDatasetIDCompletion added in v0.37.0

func SpaceSampleDatasetIDCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

SpaceSampleDatasetIDCompletion returns a ValidArgsFunction for commands that take a space ID and a sample dataset ID: it completes space IDs for the first argument and the sample datasets that can be loaded into that space for the second.

func SpaceSampleDatasetLoadIDCompletion added in v0.37.0

func SpaceSampleDatasetLoadIDCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

SpaceSampleDatasetLoadIDCompletion returns a ValidArgsFunction for commands that take a space ID and a sample dataset load ID: it completes space IDs for the first argument and the loads of that space for the second.

func VersionCompletion added in v0.15.0

func VersionCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

VersionCompletion returns a completion function for the --version flag.

Types

This section is empty.

Jump to

Keyboard shortcuts

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