add Auth and InstancePath types
This commit is contained in:
@@ -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"`
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user