Documentation
¶
Overview ¶
Cat command implementation for the CLI client
LS command implementation for the CLI client ¶
PS command implementation for the CLI client ¶
Rm command implementation for the CLI client ¶
Upload command implementation for the CLI client using HTTP PUT
Index ¶
- func CatCommand(conn *websocket.Conn, args []string)
- func DownloadCommand(args []string)
- func LsCommand(conn *websocket.Conn, args []string)
- func PsCommand(conn *websocket.Conn, tree bool)
- func RmCommand(conn *websocket.Conn, args []string, recursive bool, force bool)
- func RunShellSession(conn *websocket.Conn)
- func UploadCommand(args []string)
- type CatMessage
- type LSMessage
- type PSMessage
- type RmMessage
- type WSMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CatCommand ¶
CatCommand handles the cat command execution
func DownloadCommand ¶
func DownloadCommand(args []string)
func RunShellSession ¶
runShellSession starts an interactive shell session using WebSocket streaming.
func UploadCommand ¶
func UploadCommand(args []string)
Types ¶
type CatMessage ¶
type CatMessage struct {
Type string `json:"type"`
Command string `json:"command,omitempty"`
Output string `json:"output,omitempty"`
Error string `json:"error,omitempty"`
Filename string `json:"filename,omitempty"`
}
CatMessage structure for WebSocket communication (matches server)
type LSMessage ¶
type LSMessage struct {
Type string `json:"type"`
Command string `json:"command,omitempty"`
Output string `json:"output,omitempty"`
Error string `json:"error,omitempty"`
}
LSMessage structure for WebSocket communication (matches server)
type PSMessage ¶
type PSMessage struct {
Type string `json:"type"`
Command string `json:"command,omitempty"`
Output string `json:"output,omitempty"`
Error string `json:"error,omitempty"`
}
PSMessage structure for WebSocket communication (matches server)
Click to show internal directories.
Click to hide internal directories.