add Auth and InstancePath types

This commit is contained in:
2026-06-08 18:45:19 +00:00
parent 52ac2c2b97
commit ad6b8211b3
2 changed files with 15 additions and 0 deletions
+8
View File
@@ -1,5 +1,13 @@
package proxmoxaas_common_lib package proxmoxaas_common_lib
// all the cookies for proxmoxaas
type Auth struct {
Username string
Token string
CSRF string
AccessManagerTicket string
}
type Pool struct { type Pool struct {
PoolID string `json:"poolid" mapstructure:"poolid"` PoolID string `json:"poolid" mapstructure:"poolid"`
Groups []Group `json:"groups" mapstructure:"groups"` Groups []Group `json:"groups" mapstructure:"groups"`
+7
View File
@@ -34,6 +34,13 @@ type Instance struct {
Pool string `json:"pool" mapstructure:"pool"` // todo: this should be actual pool Pool string `json:"pool" mapstructure:"pool"` // todo: this should be actual pool
} }
// parsed vmpath data (ie node/type/id)
type InstancePath struct {
NodeName string
InstanceType InstanceType
InstanceID InstanceID
}
var VolumeTypes = []string{ var VolumeTypes = []string{
"sata", "sata",
"scsi", "scsi",