Backend: API handlers, WebSocket manager, K8s client, CRDT, auth

This commit is contained in:
Hermes Agent
2026-06-16 08:53:24 -04:00
parent 33c6648b84
commit 27779ba26f
15 changed files with 427 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
package ws
import (
"github.com/gorilla/websocket"
)
func ShellHandler(conn *websocket.Conn, r *http.Request) error {
// Extract pod and namespace from query params
pod := r.URL.Query().Get("pod")
namespace := r.URL.Query().Get("ns")
if pod == "" || namespace == "" {
return websocket.CloseBadRequest
}
// TODO: Implement shell connection
// This will connect to k8s exec API and proxy WebSocket ↔ k8s stream
return nil
}