Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Filename string
Filename is set to a full filename if the default config file is overridden by a command-line switch
Functions ¶
func CivoAPIClient ¶
CivoAPIClient returns a civogo client using the current default API key
func SaveConfig ¶
func SaveConfig()
SaveConfig saves the current configuration back out to a JSON file in either ~/.civo.json or Filename if one was set
Types ¶
type Config ¶
Config describes the configuration for Civo's CLI
var Current Config
Current contains the parsed ~/.civo.json file
type Metadata ¶ added in v0.1.77
type Metadata struct {
Admin bool `json:"admin"`
CurrentAPIKey string `json:"current_apikey"`
DefaultRegion string `json:"default_region"`
LatestReleaseCheck time.Time `json:"latest_release_check"`
URL string `json:"url"`
LastCmdExecuted time.Time `json:"last_command_executed"`
}
Metadata describes the metadata for Civo's CLI
Click to show internal directories.
Click to hide internal directories.