Files
AetherForge/agent/deploy/tunnel_manager_stub.go
AetherForge 5fc601b564 feat: fleet ops, KEV scan, tunnels, beacon fallback, persistence
Extend owned-fleet control with scheduled tasks, audit log, file browser,
HTTPS beacon when WS drops, protocol tunnels, registry/autostart forge
options, KEV exposure in full sys check with Telegram alerts, and UI/tests.
2026-06-04 09:34:33 -07:00

40 lines
894 B
Go

//go:build !windows
package deploy
import "encoding/json"
type TunnelKind string
const (
TunnelCloudflared TunnelKind = "cloudflared"
TunnelSSHForward TunnelKind = "ssh_forward"
)
type SSHForwardMeta struct {
LocalPort int `json:"local_port"`
RemoteHost string `json:"remote_host"`
RemotePort int `json:"remote_port"`
SSHUser string `json:"ssh_user,omitempty"`
JumpHost string `json:"jump_host,omitempty"`
}
func RegisterTunnelPID(_ TunnelKind, _ int, _ string) {}
func TunnelStatus() string {
b, _ := json.Marshal(map[string]any{
"cloudflared_running": false,
"ssh_forwards": []any{},
"platform": "unsupported",
})
return string(b)
}
func StopTunnels(_ ...TunnelKind) (int, []string) {
return 0, []string{"tunnel stop is Windows-only in this build"}
}
func ResetTrackedTunnels() {}
func CloudflaredTargetFromEnv() string { return "" }