minor refactor of config values, update go mod

This commit is contained in:
2026-04-04 22:27:11 +00:00
parent b74696f566
commit 99bb5f0691
3 changed files with 9 additions and 9 deletions

View File

@@ -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()

View File

@@ -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"`
}