-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/sakura #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Feat/sakura #1
Changes from all commits
0b3832b
68bd67d
2b9f644
2b02b19
9a76369
e980189
c30c7df
748b42b
53b50e1
4fa048b
d1b3ed5
55ef900
150d9a0
5b18eb0
04c4057
a1408c3
17ac82c
6efd0b3
c048472
4954d3e
1aae5d0
1e18812
f81389e
6a050f9
f5a0e21
2418f89
7c21e71
7222a01
4d960f3
03649b4
078f2ca
228c59a
3ab9426
f8eeccb
dfd7d3f
e36c6e3
e2c35c9
0c54004
d83107a
5c73793
d8ff8fc
9e58d2d
16ade77
f419952
b006dae
b7227ab
ebeb6e7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -102,15 +102,12 @@ type CommandConfig struct { | |
| } | ||
|
|
||
| type ServersConfig struct { | ||
| Conoha struct { | ||
| Origin struct { | ||
| Identity string `mapstructure:"identity" yaml:"identity"` | ||
| Compute string `mapstructure:"compute" yaml:"compute"` | ||
| } `mapstructure:"origin" yaml:"origin"` | ||
| Username string `mapstructure:"username" yaml:"username"` | ||
| Password string `mapstructure:"password" yaml:"password"` | ||
| TenantID string `mapstructure:"tenantID" yaml:"tenantID"` | ||
| } `mapstructure:"conoha" yaml:"conoha"` | ||
| Sakura struct { | ||
| Origin string `mapstructure:"origin" yaml:"origin"` | ||
| // ServersAPIURLPath must start with "/" | ||
| ServersAPIURLPath string `mapstructure:"serversAPIURLPath" yaml:"serversAPIURLPath"` | ||
| BearerToken string `mapstructure:"bearerToken" yaml:"bearerToken"` | ||
| } `mapstructure:"sakura" yaml:"sakura"` | ||
| } | ||
|
|
||
| func init() { | ||
|
|
@@ -143,11 +140,9 @@ func init() { | |
| viper.SetDefault("templates", nil) | ||
| viper.SetDefault("commands", nil) | ||
|
|
||
| viper.SetDefault("servers.conoha.origin.identity", "https://identity.tyo1.conoha.io/") | ||
| viper.SetDefault("servers.conoha.origin.compute", "https://compute.tyo1.conoha.io/") | ||
| viper.SetDefault("servers.conoha.username", "") | ||
| viper.SetDefault("servers.conoha.password", "") | ||
| viper.SetDefault("servers.conoha.tenantID", "") | ||
| viper.SetDefault("servers.sakura.origin", "https://secure.sakura.ad.jp") | ||
| viper.SetDefault("servers.sakura.serversAPIURLPath", "/vps/api/v7/servers") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. これって指定させる意味ありますか? (変わり得る?)
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 変わらないと思います。 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 定数で固定しちゃうのが良い気がします |
||
| viper.SetDefault("servers.sakura.bearerToken", "") | ||
| } | ||
|
|
||
| func init() { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.