-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Regarding to #124. I, @bkircher, and the customers really want to have shared-credential feature in all gridscale tools (which are built on top of gridscale public API). The concept is to define a single config file in a common directory, e.g., `$HOME/.config/gridscale/", which will be used by any gridscale tools. This shared config file can also be created by any gs tools (incl. libraries). I would like to propose a schema of this config file as below:
- It locates at User-level Configuration directory:
- Linux:
$XDG_CONFIG_HOME/gridscale/config.ymlor$HOME/.config/gridscale/config.yml - MacOS:
$HOME/Library/Application Support/gridscale/config.yml - Windows:
%APPDATA%\gridscale\config.ymlorC:\Users\%USER%\AppData\Roaming\gridscale\config.yml
- It is a yaml file with following scheme:
accounts:
- name: default
userId: xx-xxx-xxx-xxx-xxx
token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
url: https://api.gridscale.io
- name: second-project
userId: xx-xxx-xxx-xxx-xxx
token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
url: https://api.gridscale.ioPlease feel free to comment.