Documentation
¶
Index ¶
- func RegisterRoutes(ws *restful.WebService, boxHandler *BoxHandler)
- type BoxHandler
- func (h *BoxHandler) BoxActionClick(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) BoxActionDrag(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) BoxActionMove(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) BoxActionPress(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) BoxActionScreenshot(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) BoxActionScroll(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) BoxActionTouch(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) BoxActionType(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) CreateAndroidBox(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) CreateLinuxBox(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) DeleteBox(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) DeleteBoxes(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) ExecBox(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) ExecBoxWS(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) ExtractArchive(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) GetArchive(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) GetBox(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) HeadArchive(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) ListBoxes(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) ListFiles(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) ReadFile(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) ReclaimBoxes(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) RunBox(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) StartBox(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) StopBox(req *restful.Request, resp *restful.Response)
- func (h *BoxHandler) WriteFile(req *restful.Request, resp *restful.Response)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(ws *restful.WebService, boxHandler *BoxHandler)
RegisterRoutes registers all box-related routes to the WebService
Types ¶
type BoxHandler ¶
type BoxHandler struct {
// contains filtered or unexported fields
}
BoxHandler handles HTTP requests for box operations
func NewBoxHandler ¶
func NewBoxHandler(service service.BoxService) *BoxHandler
NewBoxHandler creates a new BoxHandler
func (*BoxHandler) BoxActionClick ¶
func (h *BoxHandler) BoxActionClick(req *restful.Request, resp *restful.Response)
func (*BoxHandler) BoxActionDrag ¶
func (h *BoxHandler) BoxActionDrag(req *restful.Request, resp *restful.Response)
func (*BoxHandler) BoxActionMove ¶
func (h *BoxHandler) BoxActionMove(req *restful.Request, resp *restful.Response)
func (*BoxHandler) BoxActionPress ¶
func (h *BoxHandler) BoxActionPress(req *restful.Request, resp *restful.Response)
func (*BoxHandler) BoxActionScreenshot ¶
func (h *BoxHandler) BoxActionScreenshot(req *restful.Request, resp *restful.Response)
func (*BoxHandler) BoxActionScroll ¶
func (h *BoxHandler) BoxActionScroll(req *restful.Request, resp *restful.Response)
func (*BoxHandler) BoxActionTouch ¶
func (h *BoxHandler) BoxActionTouch(req *restful.Request, resp *restful.Response)
func (*BoxHandler) BoxActionType ¶
func (h *BoxHandler) BoxActionType(req *restful.Request, resp *restful.Response)
func (*BoxHandler) CreateAndroidBox ¶
func (h *BoxHandler) CreateAndroidBox(req *restful.Request, resp *restful.Response)
func (*BoxHandler) CreateLinuxBox ¶
func (h *BoxHandler) CreateLinuxBox(req *restful.Request, resp *restful.Response)
func (*BoxHandler) DeleteBox ¶
func (h *BoxHandler) DeleteBox(req *restful.Request, resp *restful.Response)
DeleteBox deletes a box by ID
func (*BoxHandler) DeleteBoxes ¶
func (h *BoxHandler) DeleteBoxes(req *restful.Request, resp *restful.Response)
DeleteBoxes deletes all boxes
func (*BoxHandler) ExecBox ¶
func (h *BoxHandler) ExecBox(req *restful.Request, resp *restful.Response)
ExecBox handles command execution via standard JSON API (simplified, non-streaming)
func (*BoxHandler) ExecBoxWS ¶
func (h *BoxHandler) ExecBoxWS(req *restful.Request, resp *restful.Response)
ExecBoxWS handles command execution via WebSocket
func (*BoxHandler) ExtractArchive ¶
func (h *BoxHandler) ExtractArchive(req *restful.Request, resp *restful.Response)
ExtractArchive extracts tar archive to box
func (*BoxHandler) GetArchive ¶
func (h *BoxHandler) GetArchive(req *restful.Request, resp *restful.Response)
GetArchive gets files from box as tar archive
func (*BoxHandler) GetBox ¶
func (h *BoxHandler) GetBox(req *restful.Request, resp *restful.Response)
GetBox returns a box by ID
func (*BoxHandler) HeadArchive ¶
func (h *BoxHandler) HeadArchive(req *restful.Request, resp *restful.Response)
HeadArchive gets metadata about files in box
func (*BoxHandler) ListBoxes ¶
func (h *BoxHandler) ListBoxes(req *restful.Request, resp *restful.Response)
ListBoxes returns all boxes
func (*BoxHandler) ListFiles ¶
func (h *BoxHandler) ListFiles(req *restful.Request, resp *restful.Response)
ListFiles lists files in a directory
func (*BoxHandler) ReadFile ¶
func (h *BoxHandler) ReadFile(req *restful.Request, resp *restful.Response)
ReadFile reads file content
func (*BoxHandler) ReclaimBoxes ¶
func (h *BoxHandler) ReclaimBoxes(req *restful.Request, resp *restful.Response)
ReclaimBoxes reclaims inactive boxes
func (*BoxHandler) RunBox ¶
func (h *BoxHandler) RunBox(req *restful.Request, resp *restful.Response)
RunBox runs a command in a box
func (*BoxHandler) StartBox ¶
func (h *BoxHandler) StartBox(req *restful.Request, resp *restful.Response)
StartBox starts a stopped box