# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
BoolFromString parses a string and returns *upcloud.Boolean.
BuildCommand sets up a Command with the specified config and adds it to Cobra.
CustomBashCompletionFunc returns a bash completion function used by cobras bash completion generator.
DatabaseStateColour maps database states to colours.
HandleError logs error in livelog by setting message to msg and details to err.
LoadBalancerOperationalStateColour maps load balancer states to colours.
New returns a BaseCommand that implements Command.
NewExecutor creates the default Executor.
Parse parses a complex, querystring-type argument from in and returns all the parts found eg.
SearchResources is a convenience method to map a list of resources to uuids.
ServerStateColour is a helper mapping server states to colours.
StorageStateColour is a helper mapping storage states to colours.
ToArray turns an interface{} to a slice of interface{}s.
# Structs
BaseCommand is the base type for all commands, implementing Command.
# Interfaces
CobraCommand is an interface for commands that can refer back to their base cobra.Command.
Command is the base command type for all commands.
Executor represents the execution context for commands.
MultipleArgumentCommand is a command that can accept multiple positional arguments, each of which will result in a (parallel) call to Execute() with the argument.
NoArgumentCommand is a command that does not care about the positional arguments.
OfflineCommand is a command that does not need connect to the API, e.g.
SingleArgumentCommand is a command that accepts exactly one positional argument.