add Auth and InstancePath types
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
package proxmoxaas_common_lib
|
||||
|
||||
// all the cookies for proxmoxaas
|
||||
type Auth struct {
|
||||
Username string
|
||||
Token string
|
||||
CSRF string
|
||||
AccessManagerTicket string
|
||||
}
|
||||
|
||||
type Pool struct {
|
||||
PoolID string `json:"poolid" mapstructure:"poolid"`
|
||||
Groups []Group `json:"groups" mapstructure:"groups"`
|
||||
|
||||
@@ -34,6 +34,13 @@ type Instance struct {
|
||||
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{
|
||||
"sata",
|
||||
"scsi",
|
||||
|
||||
Reference in New Issue
Block a user