Documentation
¶
Index ¶
- type BrowserLabels
- type ContainerLabels
- type ContainerType
- type ImageLabels
- type InstanceManager
- func (im *InstanceManager) CreateServer(ctx context.Context) (*instancemanager.Server, error)
- func (im *InstanceManager) DeleteServer(ctx context.Context, serverId string) error
- func (im *InstanceManager) GetFileBrowser(ctx context.Context, serverId string) (*models.FileBrowser, error)
- func (im *InstanceManager) GetImage(ctx context.Context, imageId string) (*instancemanager.Image, error)
- func (im *InstanceManager) GetServer(ctx context.Context, serverId string) (*instancemanager.Server, error)
- func (im *InstanceManager) GetServerIdFromFileBrowserUrl(ctx context.Context, url string) (string, error)
- func (im *InstanceManager) InteractiveTerminal(ctx context.Context, serverId string) (*instancemanager.TerminalConnection, error)
- func (im *InstanceManager) ListFileBrowsers(ctx context.Context) ([]models.FileBrowser, error)
- func (im *InstanceManager) ListImages(ctx context.Context) ([]instancemanager.Image, error)
- func (im *InstanceManager) ListServers(ctx context.Context) ([]instancemanager.Server, error)
- func (im *InstanceManager) ResizeTerminal(ctx context.Context, serverId string, width uint, height uint) error
- func (im *InstanceManager) StartFileBrowser(ctx context.Context, serverId string) (*models.FileBrowser, error)
- func (im *InstanceManager) StartServer(ctx context.Context, serverId string, imageId string, command string, ...) error
- func (im *InstanceManager) StopFileBrowser(ctx context.Context, serverId string) error
- func (im *InstanceManager) StopServer(ctx context.Context, serverId string) error
- type VolumeLabels
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrowserLabels ¶
type BrowserLabels struct {
ContainerLabels
UrlRule string
Enabled bool
}
type ContainerLabels ¶
type ContainerLabels struct {
VolumeId string `json:"volume_id,omitempty"`
Type ContainerType `json:"type,omitempty"`
}
type ContainerType ¶
type ContainerType string
const ( Game ContainerType = "GAME" FileBrowser = "FILE_BROWSER" )
type ImageLabels ¶
type ImageLabels struct {
Type ContainerType `json:"type,omitempty"`
}
type InstanceManager ¶
type InstanceManager struct {
instancemanager.InstanceManager
// contains filtered or unexported fields
}
func NewInstanceManager ¶
func NewInstanceManager(config models.DockerInstanceManagerConfig, siteDomain string) (*InstanceManager, error)
func (*InstanceManager) CreateServer ¶
func (im *InstanceManager) CreateServer(ctx context.Context) (*instancemanager.Server, error)
func (*InstanceManager) DeleteServer ¶
func (im *InstanceManager) DeleteServer(ctx context.Context, serverId string) error
func (*InstanceManager) GetFileBrowser ¶
func (im *InstanceManager) GetFileBrowser(ctx context.Context, serverId string) (*models.FileBrowser, error)
Read Only
func (*InstanceManager) GetImage ¶
func (im *InstanceManager) GetImage(ctx context.Context, imageId string) (*instancemanager.Image, error)
General Read Only
func (*InstanceManager) GetServer ¶
func (im *InstanceManager) GetServer(ctx context.Context, serverId string) (*instancemanager.Server, error)
func (*InstanceManager) GetServerIdFromFileBrowserUrl ¶
func (*InstanceManager) InteractiveTerminal ¶
func (im *InstanceManager) InteractiveTerminal(ctx context.Context, serverId string) (*instancemanager.TerminalConnection, error)
Terminal Status Changing
func (*InstanceManager) ListFileBrowsers ¶
func (im *InstanceManager) ListFileBrowsers(ctx context.Context) ([]models.FileBrowser, error)
func (*InstanceManager) ListImages ¶
func (im *InstanceManager) ListImages(ctx context.Context) ([]instancemanager.Image, error)
func (*InstanceManager) ListServers ¶
func (im *InstanceManager) ListServers(ctx context.Context) ([]instancemanager.Server, error)
func (*InstanceManager) ResizeTerminal ¶
func (*InstanceManager) StartFileBrowser ¶
func (im *InstanceManager) StartFileBrowser(ctx context.Context, serverId string) (*models.FileBrowser, error)
Status Changing
func (*InstanceManager) StartServer ¶
func (im *InstanceManager) StartServer(ctx context.Context, serverId string, imageId string, command string, ports []models.Port, ) error
State Changing
func (*InstanceManager) StopFileBrowser ¶
func (im *InstanceManager) StopFileBrowser(ctx context.Context, serverId string) error
func (*InstanceManager) StopServer ¶
func (im *InstanceManager) StopServer(ctx context.Context, serverId string) error
type VolumeLabels ¶
type VolumeLabels struct {
Type ContainerType `json:"type,omitempty"`
VolumeId string `json:"volume_id,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.