web

package
v0.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleClientsPage added in v0.23.4

func HandleClientsPage(w http.ResponseWriter, r *http.Request)

func HandleCopyFileStream added in v0.19.0

func HandleCopyFileStream(w http.ResponseWriter, r *http.Request)

func HandleCreateQRCode added in v0.15.0

func HandleCreateQRCode(w http.ResponseWriter, r *http.Request)

func HandleHealthPage

func HandleHealthPage(w http.ResponseWriter, r *http.Request)

func HandleInitialSystemSetupPage

func HandleInitialSystemSetupPage(w http.ResponseWriter, r *http.Request)

func HandleJobsList added in v0.33.0

func HandleJobsList(w http.ResponseWriter, r *http.Request)

HandleJobsList returns the space's jobs live status (running state, next run, last run) from the agent. Job definitions live on the space record (/api/spaces/{id}/jobs) and are available for stopped spaces too; this endpoint needs a running agent.

func HandleJobsRun added in v0.33.0

func HandleJobsRun(w http.ResponseWriter, r *http.Request)

HandleJobsRun triggers a job immediately by name. Manual triggering works for disabled and manual-only jobs.

func HandleListSpaces

func HandleListSpaces(w http.ResponseWriter, r *http.Request)

func HandleLoginPage

func HandleLoginPage(w http.ResponseWriter, r *http.Request)

func HandleLogoutPage

func HandleLogoutPage(w http.ResponseWriter, r *http.Request)

func HandleLogsPage added in v0.11.5

func HandleLogsPage(w http.ResponseWriter, r *http.Request)

func HandleLogsStream added in v0.11.5

func HandleLogsStream(w http.ResponseWriter, r *http.Request)

func HandleOAuth2GrantPage added in v0.19.0

func HandleOAuth2GrantPage(w http.ResponseWriter, r *http.Request)

func HandlePageNotFound added in v0.14.0

func HandlePageNotFound(next *http.ServeMux) http.Handler

func HandlePortApply added in v0.24.0

func HandlePortApply(w http.ResponseWriter, r *http.Request)

func HandlePortForward added in v0.22.2

func HandlePortForward(w http.ResponseWriter, r *http.Request)

func HandlePortList added in v0.22.2

func HandlePortList(w http.ResponseWriter, r *http.Request)

func HandlePortStop added in v0.22.2

func HandlePortStop(w http.ResponseWriter, r *http.Request)

func HandlePortThrottle added in v0.31.0

func HandlePortThrottle(w http.ResponseWriter, r *http.Request)

func HandleRunCommandStream added in v0.19.0

func HandleRunCommandStream(w http.ResponseWriter, r *http.Request)

func HandleSimplePage

func HandleSimplePage(w http.ResponseWriter, r *http.Request)

func HandleSpacesCreate

func HandleSpacesCreate(w http.ResponseWriter, r *http.Request)

func HandleSpacesEdit

func HandleSpacesEdit(w http.ResponseWriter, r *http.Request)

func HandleTerminalPage

func HandleTerminalPage(w http.ResponseWriter, r *http.Request)

func HandleTokenCreatePage

func HandleTokenCreatePage(w http.ResponseWriter, r *http.Request)

func HandleTunnelList added in v0.29.0

func HandleTunnelList(w http.ResponseWriter, r *http.Request)

HandleTunnelList lists the agent-owned web tunnels in a space.

func HandleTunnelStart added in v0.29.0

func HandleTunnelStart(w http.ResponseWriter, r *http.Request)

HandleTunnelStart starts an agent-owned web tunnel inside a space. The request is relayed to the space's agent, which owns the tunnel for the life of the agent (daemon implied).

func HandleTunnelStop added in v0.29.0

func HandleTunnelStop(w http.ResponseWriter, r *http.Request)

HandleTunnelStop stops an agent-owned web tunnel in a space by name.

func HandleUserProfilePage

func HandleUserProfilePage(w http.ResponseWriter, r *http.Request)

func Routes

func Routes(router *http.ServeMux, cfg *config.ServerConfig)

Types

type NavItem struct {
	URL     string
	Label   string
	Icon    template.HTML
	Starred bool
}

NavItem is a single sidebar entry rendered from data in menus.tmpl. Icon holds the inner SVG markup (one or more <path/> elements) and is typed template.HTML so html/template renders it verbatim.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL