Refactor storage to support shallow types.
Add Client to storage. Fix client resizing issues.
This commit is contained in:
@@ -3,8 +3,8 @@ package types
|
||||
import "context"
|
||||
|
||||
type Instance struct {
|
||||
Image string `json:"image" bson:"image"`
|
||||
Name string `json:"name" bson:"name"`
|
||||
Image string `json:"image" bson:"image"`
|
||||
Hostname string `json:"hostname" bson:"hostname"`
|
||||
IP string `json:"ip" bson:"ip"`
|
||||
RoutableIP string `json:"routable_ip" bson:"routable_id"`
|
||||
@@ -17,13 +17,12 @@ type Instance struct {
|
||||
ProxyHost string `json:"proxy_host" bson:"proxy_host"`
|
||||
SessionHost string `json:"session_host" bson:"session_host"`
|
||||
Type string `json:"type" bson:"type"`
|
||||
Session *Session `json:"-" bson:"-"`
|
||||
ctx context.Context `json:"-" bson:"-"`
|
||||
WindowsId string `json:"-" bson:"windows_id"`
|
||||
ctx context.Context `json:"-" bson:"-"`
|
||||
}
|
||||
|
||||
type WindowsInstance struct {
|
||||
ID string `bson:"id"`
|
||||
Id string `bson:"id"`
|
||||
SessionId string `bson:"session_id"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user