vnc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package vnc implements the VNC remote-desktop plugin. The gateway performs RFB authentication to the upstream server (keeping the password server-side) and streams the raw RFB session to the browser's noVNC client.

Index

Constants

View Source
const CredentialVNCPassword plugin.CredentialKind = "vnc_password"

CredentialVNCPassword is the plugin-owned reusable credential kind: a bare VNC password with no associated identity.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct{}

Plugin exposes a VNC console rendered by noVNC.

func New

func New() *Plugin

func (*Plugin) Connect

func (p *Plugin) Connect(_ context.Context, cfg plugin.ConnectConfig) (plugin.Session, error)

func (*Plugin) Manifest

func (p *Plugin) Manifest() plugin.Manifest

func (*Plugin) Routes

func (p *Plugin) Routes() []plugin.Route

type Session

type Session struct {
	// contains filtered or unexported fields
}

Session holds the per-connection VNC dial parameters. VNC keeps no persistent upstream socket; each desktop channel dials fresh and authenticates.

func (*Session) Close

func (s *Session) Close() error

func (*Session) HealthCheck

func (s *Session) HealthCheck(ctx context.Context) error

func (*Session) OpenChannel

func (s *Session) OpenChannel(ctx context.Context, req plugin.ChannelRequest) (plugin.Channel, error)

Jump to

Keyboard shortcuts

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