Documentation
¶
Overview ¶
Package kubeworkspaces implements the kube-workspaces REST API service layer. It provides HTTP endpoints for managing workspaces, volumes, images, and namespaces within a Kubernetes cluster. The API is designed using the Goa framework and supports both authenticated and unauthenticated operation modes.
Index ¶
- func NewDisplay(wsClient *k8s.WorkspaceClient, sessions *display.Sessions, enabled bool) gendisplay.Service
- func NewHealth() health.Service
- func NewImages(imageClient *k8s.ImageClient) images.Service
- func NewNamespaces(authProvider *auth.ConfigProvider) namespaces.Service
- func NewSSHKeys(authProvider *auth.ConfigProvider) sshkeys.Service
- func NewVolumes(authProvider *auth.ConfigProvider) volumes.Service
- func NewWorkspaces(client *k8s.WorkspaceClient, imageClient *k8s.ImageClient, ...) workspaces.Service
- func SharedDisplayEnabledFromEnv() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDisplay ¶ added in v0.6.0
func NewDisplay(wsClient *k8s.WorkspaceClient, sessions *display.Sessions, enabled bool) gendisplay.Service
NewDisplay returns the display service implementation.
func NewImages ¶
func NewImages(imageClient *k8s.ImageClient) images.Service
NewImages returns the images service implementation.
func NewNamespaces ¶
func NewNamespaces(authProvider *auth.ConfigProvider) namespaces.Service
NewNamespaces returns the namespaces service implementation.
func NewSSHKeys ¶ added in v0.4.0
func NewSSHKeys(authProvider *auth.ConfigProvider) sshkeys.Service
NewSSHKeys returns the sshkeys service implementation.
func NewVolumes ¶
func NewVolumes(authProvider *auth.ConfigProvider) volumes.Service
NewVolumes returns the volumes service implementation.
func NewWorkspaces ¶
func NewWorkspaces(client *k8s.WorkspaceClient, imageClient *k8s.ImageClient, coreClient *k8s.CoreClient, authProvider *auth.ConfigProvider, podDefaultClient *k8s.PodDefaultClient) workspaces.Service
NewWorkspaces returns the workspaces service implementation.
func SharedDisplayEnabledFromEnv ¶ added in v0.6.0
func SharedDisplayEnabledFromEnv() bool
SharedDisplayEnabledFromEnv reads the pilot gate: the shared display ships opt-in until the platform plan's acceptance package passes, so it must be explicitly switched on with KW_DISPLAY_SHARED=on. Rolling back is the inverse: unset it and restart — generations end with the process, claims are released, and clients fall back to the legacy exclusive /vnc path.
Types ¶
This section is empty.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
kube_workspaces
command
|
|
|
kube_workspaces-cli
command
|
|
|
gen
|
|
|
internal
|
|
|
auth
Package auth provides authentication and authorization middleware for the kube-workspaces API.
|
Package auth provides authentication and authorization middleware for the kube-workspaces API. |
|
broker
Package broker implements the read-only RFB multi-viewer feasibility spike.
|
Package broker implements the read-only RFB multi-viewer feasibility spike. |
|
display
Package display coordinates the single interactive VM display across API replicas.
|
Package display coordinates the single interactive VM display across API replicas. |
|
exec
Package exec provides WebSocket-based remote command execution in workspace pods.
|
Package exec provides WebSocket-based remote command execution in workspace pods. |
|
k8s
Package k8s provides Kubernetes client wrappers for the kube-workspaces API server.
|
Package k8s provides Kubernetes client wrappers for the kube-workspaces API server. |
|
proxy
Package proxy implements HTTP reverse proxying to workspace pods.
|
Package proxy implements HTTP reverse proxying to workspace pods. |
|
rfb
Package rfb contains protocol primitives for the shared-display broker.
|
Package rfb contains protocol primitives for the shared-display broker. |