implement device linking

This commit is contained in:
2025-02-11 07:11:05 +00:00
parent 571093379f
commit 58ce74552b
4 changed files with 70 additions and 29 deletions

View File

@@ -2,7 +2,7 @@ package app
import "github.com/luthermonson/go-proxmox"
type Resource struct { // number of virtual cores (usually threads)
type Resource struct {
Reserved uint64
Free uint64
Total uint64
@@ -26,18 +26,19 @@ const (
)
type Instance struct {
Type InstanceType
Name string
Proctype string
Cores uint64
Memory uint64
Swap uint64
Volume map[string]*Volume
Net map[uint]*Net
Device map[uint]*InstanceDevice
config interface{}
configDisks map[string]string
configNets map[string]string
Type InstanceType
Name string
Proctype string
Cores uint64
Memory uint64
Swap uint64
Volume map[string]*Volume
Net map[uint]*Net
Device map[uint]*InstanceDevice
config interface{}
configDisks map[string]string
configNets map[string]string
configHostPCIs map[string]string
proxmox.ContainerInterface
}