Documentation ¶
Index ¶
- func Resolve(provider resolver.ResolutionProvider, exec commands.Executor, arg string) (string, error)
- func ResolveNetwork(exec commands.Executor, arg string) (string, error)
- func ResolveServer(exec commands.Executor, arg string) (string, error)
- func ZoneDescription(resource string) string
- type CompleteFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Resolve ¶
func Resolve(provider resolver.ResolutionProvider, exec commands.Executor, arg string) (string, error)
Resolve initializes given resolution provider and uses it to resolve given argument
func ResolveNetwork ¶
ResolveNetwork resolves network UUID from values provided to named args (e.g., --network net-name)
func ResolveServer ¶
ResolveServer resolves server UUID from values provided to named args (e.g., --server server-name)
func ZoneDescription ¶
Returns description for --zone argument, e.g. "Zone where to create the resource...".
Types ¶
type CompleteFunc ¶
type CompleteFunc func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
func CompletionFunc ¶
func CompletionFunc(provider completion.Provider, cfg *config.Config) CompleteFunc
CompletionFunc creates a flag completion function from given completion provider and config to be passed to Cobra via Command.RegisterFlagCompletionFunc
Click to show internal directories.
Click to hide internal directories.