26 lines
621 B
Go
26 lines
621 B
Go
package docker
|
|
|
|
type ContainerType string
|
|
|
|
const (
|
|
Game ContainerType = "GAME"
|
|
FileBrowser = "FILE_BROWSER"
|
|
)
|
|
|
|
type ContainerLabels struct {
|
|
OwnerId string `json:"user_id,omitempty"`
|
|
ImageId string `json:"image_id,omitempty"`
|
|
VolumeId string `json:"volume_id,omitempty"`
|
|
Type ContainerType `json:"type,omitempty"`
|
|
}
|
|
|
|
type VolumeLabels struct {
|
|
OwnerId string `json:"user_id,omitempty"`
|
|
ImageId string `json:"image_id,omitempty"`
|
|
Type ContainerType `json:"type,omitempty"`
|
|
}
|
|
|
|
type ImageLabels struct {
|
|
Type ContainerType `json:"type,omitempty"`
|
|
}
|