package
1.83.1
Repository: https://github.com/exoscale/cli.git
Documentation: pkg.go.dev

# Functions

DefaultBool returns the value of the bool pointer b if not nil, otherwise the default value specified.
DefaultInt64 returns the value of the int64 pointer b if not nil, otherwise the default value specified.
DefaultIP returns the IP as string if not nil, otherwise the default value specified.
DefaultString returns the value of the string pointer s if not nil, otherwise the default value specified.
EllipString truncates the string s with an ellipsis character if longer than maxLen.
ForEachZone executes the function f for each specified zone, and return a multierror.Error containing all errors that may have occurred during execution.
TODO: This is a copy paste from the function above, but suitable for egoscale v3 calls.
No description provided by the author
No description provided by the author
No description provided by the author
IsInList returns true if v exists in the specified list, false otherwise.
NonEmptyStringPtr returns a non-nil pointer to s if the string is not empty, otherwise nil.
ParseInstanceType returns an v3.InstanceType with family and name.
RandStringBytes Generate random string of n bytes.
SliceToMap returns a map[string]string from a slice of KEY=VALUE formatted strings.
VersionIsNewer returns true if new version has potential deprecation.
VersionMajor returns major part of a version number (given "x.y(.z)", returns "x").
VersionMinor returns minor part of a version number (given "x.y(.z)", returns "y").
VersionsAreEquivalent returns true if new and old versions both have same major and minor numbers.

# Variables

utils.AllZones represents the list of known Exoscale zones, in case we need it without performing API lookup.