added more stuff including some of docker support
This commit is contained in:
@@ -1,41 +1,24 @@
|
||||
package models
|
||||
|
||||
type PortProtocol string
|
||||
|
||||
const (
|
||||
TCP PortProtocol = "TCP"
|
||||
UDP = "UDP"
|
||||
)
|
||||
|
||||
type Port struct {
|
||||
Protocol string
|
||||
Number int
|
||||
Protocol PortProtocol
|
||||
PublicPort uint16
|
||||
ContainerPort uint16
|
||||
}
|
||||
|
||||
type ImageInfo struct {
|
||||
Name string
|
||||
Version string
|
||||
Ports []Port
|
||||
type Image struct {
|
||||
Registry string
|
||||
Tag string
|
||||
}
|
||||
|
||||
type ServerInfo struct {
|
||||
Id string
|
||||
OwnerId string
|
||||
DefaultCommand string
|
||||
Image ImageInfo
|
||||
On bool
|
||||
Nickname string
|
||||
Ports []Port
|
||||
Domain string
|
||||
}
|
||||
|
||||
type FileBrowserInfo struct {
|
||||
Id string
|
||||
OwnerId string
|
||||
ConnectedTo ServerInfo
|
||||
Url string
|
||||
}
|
||||
|
||||
type ServerData struct {
|
||||
Id string `bson:"Id"`
|
||||
OwnerId string `bson:"OwnerId"`
|
||||
Image string `bson:"Image"`
|
||||
VolumeId string `bson:"VolumeId"`
|
||||
Nickname string `bson:"Nickname"`
|
||||
UserPermissions map[string]Permission `bson:"UserPermissions"`
|
||||
DefaultCommand string `bson:"DefaultCommand"`
|
||||
DefaultPorts []Port `bson:"DefaultPorts"`
|
||||
type FileBrowser struct {
|
||||
Id string
|
||||
Url string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user