refactored
This commit is contained in:
27
instancemanager/docker/labels.go
Normal file
27
instancemanager/docker/labels.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package docker
|
||||
|
||||
type ContainerType string
|
||||
|
||||
const (
|
||||
Game ContainerType = "GAME"
|
||||
FileBrowser = "FILE_BROWSER"
|
||||
)
|
||||
|
||||
type ContainerLabels struct {
|
||||
VolumeId string `json:"volume_id,omitempty"`
|
||||
Type ContainerType `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
type BrowserLabels struct {
|
||||
ContainerLabels
|
||||
UrlRule string
|
||||
Enabled bool
|
||||
}
|
||||
|
||||
type VolumeLabels struct {
|
||||
Type ContainerType `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
type ImageLabels struct {
|
||||
Type ContainerType `json:"type,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user