mcclient: models: map to db models

This commit is contained in:
Yousong Zhou
2019-12-06 08:36:05 +00:00
parent fca1a6d795
commit 5b0f36dbcb
2 changed files with 10 additions and 7 deletions
+9 -6
View File
@@ -54,7 +54,6 @@ type StandaloneResource struct {
Id string
Name string
ExternalId string
Description string
IsEmulated bool
}
@@ -69,7 +68,7 @@ type StatusStandaloneResource struct {
Status string
}
type EnabledStatusStandaloneResourceBase struct {
type EnabledStatusStandaloneResource struct {
StatusStandaloneResource
Enabled bool
@@ -84,10 +83,6 @@ type VirtualResource struct {
PendingDeleted bool
}
type ManagedResource struct {
ManagerId string
}
func (r *VirtualResource) GetPendingDeleted() bool {
return r.PendingDeleted
}
@@ -97,3 +92,11 @@ type SharableVirtualResource struct {
IsPublic bool
}
type ManagedResource struct {
ManagerId string
}
type ExternalizedResource struct {
ExternalId string
}
+1 -1
View File
@@ -21,7 +21,7 @@ import (
)
type Host struct {
EnabledStatusStandaloneResourceBase
EnabledStatusStandaloneResource
Rack string
Slots string