From ad6b8211b371439204878fd47b429a4daf36dc1b Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 8 Jun 2026 18:45:19 +0000 Subject: [PATCH] add Auth and InstancePath types --- access-types.go | 8 ++++++++ resource-types.go | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/access-types.go b/access-types.go index 6430e8c..0f24a6e 100644 --- a/access-types.go +++ b/access-types.go @@ -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"` diff --git a/resource-types.go b/resource-types.go index 7de506d..a426b3d 100644 --- a/resource-types.go +++ b/resource-types.go @@ -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",