Documentation
¶
Index ¶
- func AccountIDCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func AccountMemberIDCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func BackupIDCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func CPUCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func CloudProviderCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func CloudRegionCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func ClusterIDCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func ClusterNodeCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func CompareNodes(a, b string) int
- func DiskCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func GPUCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func ManagementKeyIDCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func NodeNumber(clusterID, nodeID string) string
- func PackageNameCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func PermissionCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func RAMCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func RoleCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func RoleIDCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func ServerlessCloudRegionCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func ServerlessCloudRegionFlagCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func SpaceBackupIDCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func SpaceIDCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func SpaceIDFlagCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func SpaceSampleDatasetIDCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func SpaceSampleDatasetLoadIDCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func VersionCompletion(s *state.State) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
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
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
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.
Types ¶
This section is empty.