minor refactor of config values, update go mod
This commit is contained in:
@@ -27,7 +27,7 @@ func Run() {
|
||||
config := GetConfig(*configPath)
|
||||
log.Printf("[INFO] initialized config from %s", *configPath)
|
||||
|
||||
token := fmt.Sprintf(`%s@%s!%s`, config.PVE.Token.USER, config.PVE.Token.REALM, config.PVE.Token.ID)
|
||||
token := fmt.Sprintf(`%s@%s!%s`, config.PVE.Token.User, config.PVE.Token.Realm, config.PVE.Token.ID)
|
||||
client = NewClient(config.PVE.URL, token, config.PVE.Token.Secret)
|
||||
|
||||
router := gin.Default()
|
||||
|
||||
@@ -14,8 +14,8 @@ type Config struct {
|
||||
PVE struct {
|
||||
URL string `json:"url"`
|
||||
Token struct {
|
||||
USER string `json:"user"`
|
||||
REALM string `json:"realm"`
|
||||
User string `json:"user"`
|
||||
Realm string `json:"realm"`
|
||||
ID string `json:"id"`
|
||||
Secret string `json:"uuid"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user