completion

package
v0.3.61 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloudCompletionFunc

func CloudCompletionFunc(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

CloudCompletionFunc parses clouds.yaml and supplies matching cloud names.

func OpenstackComputeAvailabilityZoneCompletionFunc

func OpenstackComputeAvailabilityZoneCompletionFunc(cloud *string) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

OpenstackComputeAvailabilityZoneCompletionFunc lists any matching availability zones by name.

func OpenstackExternalNetworkCompletionFunc

func OpenstackExternalNetworkCompletionFunc(cloud *string) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

OpenstackExternalNetworkCompletionFunc lists any matching external networks by ID. Yes this isn't particularly human friendly, but the ID is the only unique identifier. Names can alias which makes mapping from name to ID practically useless.

func OpenstackFlavorCompletionFunc

func OpenstackFlavorCompletionFunc(cloud *string) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

OpenstackFlavorCompletionFunc lists any matching flavors by name.

func OpenstackImageCompletionFunc

func OpenstackImageCompletionFunc(cloud *string) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

OpenstackImageCompletionFunc lists any matching images by name.

func OpenstackSSHKeyCompletionFunc

func OpenstackSSHKeyCompletionFunc(cloud *string) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

OpenstackSSHKeyCompletionFunc lists any matching ssh key pairs by name.

func OpenstackVolumeAvailabilityZoneCompletionFunc

func OpenstackVolumeAvailabilityZoneCompletionFunc(cloud *string) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

OpenstackVolumeAvailabilityZoneCompletionFunc lists any matching availability zones by name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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