migrate to using proxmoxaas-common-lib types
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "proxmoxaas-common-lib"]
|
||||||
|
path = proxmoxaas-common-lib
|
||||||
|
url = https://git.tronnet.net/tronnet/proxmoxaas-common-lib
|
||||||
|
|||||||
+11
-11
@@ -3,8 +3,8 @@ package routes
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
paas "proxmoxaas-common-lib"
|
||||||
"proxmoxaas-dashboard/app/common"
|
"proxmoxaas-dashboard/app/common"
|
||||||
fabric "proxmoxaas-fabric/app"
|
|
||||||
"slices"
|
"slices"
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
@@ -15,16 +15,16 @@ import (
|
|||||||
// imported types from fabric
|
// imported types from fabric
|
||||||
|
|
||||||
type InstanceConfig struct {
|
type InstanceConfig struct {
|
||||||
Type fabric.InstanceType `json:"type"`
|
Type paas.InstanceType `json:"type"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
CPU string `json:"cpu"`
|
CPU string `json:"cpu"`
|
||||||
Cores uint64 `json:"cores"`
|
Cores uint64 `json:"cores"`
|
||||||
Memory uint64 `json:"memory"`
|
Memory uint64 `json:"memory"`
|
||||||
Swap uint64 `json:"swap"`
|
Swap uint64 `json:"swap"`
|
||||||
Volumes map[string]*fabric.Volume `json:"volumes"`
|
Volumes map[string]*paas.Volume `json:"volumes"`
|
||||||
Nets map[string]*fabric.Net `json:"nets"`
|
Nets map[string]*paas.Net `json:"nets"`
|
||||||
Devices map[string]*fabric.Device `json:"devices"`
|
Devices map[string]*paas.Device `json:"devices"`
|
||||||
Boot fabric.BootOrder `json:"boot"`
|
Boot paas.BootOrder `json:"boot"`
|
||||||
// overrides
|
// overrides
|
||||||
ProctypeSelect common.Select
|
ProctypeSelect common.Select
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ require (
|
|||||||
github.com/gin-gonic/gin v1.12.0
|
github.com/gin-gonic/gin v1.12.0
|
||||||
github.com/go-viper/mapstructure/v2 v2.5.0
|
github.com/go-viper/mapstructure/v2 v2.5.0
|
||||||
github.com/tdewolff/minify/v2 v2.24.11
|
github.com/tdewolff/minify/v2 v2.24.11
|
||||||
proxmoxaas-fabric v0.0.0
|
proxmoxaas-common-lib v0.0.0
|
||||||
)
|
)
|
||||||
|
|
||||||
replace proxmoxaas-fabric => ./ProxmoxAAS-Fabric
|
replace proxmoxaas-common-lib => ./proxmoxaas-common-lib
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/buger/goterm v1.0.4 // indirect
|
github.com/buger/goterm v1.0.4 // indirect
|
||||||
|
|||||||
Submodule
+1
Submodule proxmoxaas-common-lib added at 1c78f59c8c
Reference in New Issue
Block a user