fixed skeleton and permissions
This commit is contained in:
@@ -12,8 +12,15 @@ type InstanceManager struct {
|
||||
instancemanager.InstanceManager
|
||||
}
|
||||
|
||||
// General
|
||||
//General
|
||||
// Read Only
|
||||
|
||||
func (self *InstanceManager) GetImage(ctx context.Context, imageId string) (*instancemanager.Image, error) {
|
||||
return nil, nil
|
||||
}
|
||||
func (self *InstanceManager) ListImages(ctx context.Context) ([]instancemanager.Image, error) {
|
||||
return nil, nil
|
||||
}
|
||||
func (self *InstanceManager) GetServer(ctx context.Context, serverId string) (*instancemanager.Server, error) {
|
||||
return nil, nil
|
||||
}
|
||||
@@ -22,41 +29,33 @@ func (self *InstanceManager) ListServers(ctx context.Context) ([]instancemanager
|
||||
}
|
||||
|
||||
// State Changing
|
||||
func (self *InstanceManager) StartServer(ctx context.Context, serverId string, command string, ports []models.Port) error {
|
||||
func (self *InstanceManager) StartServer(ctx context.Context, serverId string, imageId string, command string, ports []models.Port) error {
|
||||
return nil
|
||||
}
|
||||
func (self *InstanceManager) StopServer(ctx context.Context, serverId string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (self *InstanceManager) CreateServer(ctx context.Context, image models.Image) (*instancemanager.Server, error) {
|
||||
|
||||
func (self *InstanceManager) CreateServer(ctx context.Context) (*instancemanager.Server, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (self *InstanceManager) DeleteServer(ctx context.Context, serverId string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Terminal
|
||||
// Terminal {return nil, nil}
|
||||
|
||||
// Read Only
|
||||
func (self *InstanceManager) GetLogs(ctx context.Context, serverId string) (string, error) {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
// Status Changing
|
||||
// Status Changing {return nil, nil}
|
||||
func (self *InstanceManager) InteractiveTerminal(ctx context.Context, serverId string) (*net.Conn, error) {
|
||||
return nil, nil
|
||||
}
|
||||
func (self *InstanceManager) RunCommand(ctx context.Context, serverId string, command string) (string, error) {
|
||||
|
||||
return "", nil
|
||||
func (self *InstanceManager) ResizeTerminal(ctx context.Context, serverId string, width uint, height uint) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// File Browser
|
||||
// File Browser {return nil, nil}
|
||||
|
||||
// Read Only
|
||||
// Read Only {return nil, nil}
|
||||
func (self *InstanceManager) GetFileBrowser(ctx context.Context, serverId string) (*models.FileBrowser, error) {
|
||||
return nil, nil
|
||||
}
|
||||
@@ -64,7 +63,7 @@ func (self *InstanceManager) ListFileBrowsers(ctx context.Context) ([]models.Fil
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// Status Changing
|
||||
// Status Changing {return nil, nil}
|
||||
func (self *InstanceManager) StartFileBrowser(ctx context.Context, serverId string) (*models.FileBrowser, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user