37 lines
594 B
Go
37 lines
594 B
Go
package models
|
|
|
|
type Port struct {
|
|
Protocol string
|
|
Number int
|
|
}
|
|
|
|
type ImageInfo struct {
|
|
Name string
|
|
Version string
|
|
Ports []Port
|
|
}
|
|
|
|
type ServerInfo struct {
|
|
Id string
|
|
OwnerId string
|
|
Image ImageInfo
|
|
On bool
|
|
Nickname string
|
|
Ports []Port
|
|
}
|
|
|
|
type FileBrowserInfo struct {
|
|
Id string
|
|
OwnerId string
|
|
ConnectedTo ServerInfo
|
|
}
|
|
|
|
type ServerData struct {
|
|
Id string
|
|
OwnerId string
|
|
Image string
|
|
VolumeId string
|
|
Nickname string
|
|
UserPermissions map[string]Permission
|
|
}
|