localui

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBind = "localhost:23998"
View Source
const (
	// LocalEnvPublicID is the fixed env_public_id used for Local UI mode.
	LocalEnvPublicID = "env_local"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BindSpec

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

BindSpec is the parsed Local UI listener configuration.

func ParseBind

func ParseBind(raw string) (BindSpec, error)

func (BindSpec) DisplayURLs

func (b BindSpec) DisplayURLs() []string

func (BindSpec) DisplayURLsForPort

func (b BindSpec) DisplayURLsForPort(port int) []string

func (BindSpec) Host

func (b BindSpec) Host() string

func (BindSpec) IsLoopbackOnly

func (b BindSpec) IsLoopbackOnly() bool

func (BindSpec) ListenAddrs

func (b BindSpec) ListenAddrs() []string

func (BindSpec) ListenLabel

func (b BindSpec) ListenLabel() string

func (BindSpec) ListenLabelForPort

func (b BindSpec) ListenLabelForPort(port int) string

func (BindSpec) Port

func (b BindSpec) Port() int

type Options

type Options struct {
	Logger *slog.Logger
	Bind   BindSpec

	DesktopManaged         bool
	DesktopOwnerID         string
	EffectiveRunMode       string
	RemoteEnabled          bool
	ControlplaneBaseURL    string
	ControlplaneProviderID string
	EnvPublicID            string

	// AppServer is the Env App local API and proxy handler mounted under /_redeven_proxy/*.
	AppServer *appserver.Server

	// Agent serves direct sessions (RPC/streams) after a successful E2EE handshake.
	Agent *agent.Agent

	// ConfigPath is the absolute path to the runtime config file.
	// It is used to compute the local permission cap and to render Settings consistently.
	ConfigPath string
	StateRoot  string

	RuntimeControlSocketPath string

	// Version is the runtime build version (used by /api/local/agent/version/latest).
	Version string

	// Diagnostics stores structured debug-only request timing events.
	Diagnostics *diagnostics.Store

	// AccessGate protects the local browser entry when password mode is enabled.
	AccessGate *accessgate.Gate
}

type Server

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

func New

func New(opts Options) (*Server, error)

func (*Server) Close

func (s *Server) Close() error

func (*Server) DisplayURLs

func (s *Server) DisplayURLs() []string

func (*Server) HandlerForDesktopBridge added in v0.6.8

func (s *Server) HandlerForDesktopBridge() http.Handler

func (*Server) ListenLabel

func (s *Server) ListenLabel() string

func (*Server) Port

func (s *Server) Port() int

func (*Server) RuntimeAttachStatus added in v0.6.8

func (s *Server) RuntimeAttachStatus() runtimemanagement.RuntimeAttachStatus

func (*Server) RuntimeControlEndpointForDesktopBridge added in v0.6.8

func (s *Server) RuntimeControlEndpointForDesktopBridge() *runtimemanagement.RuntimeControlEndpoint

func (*Server) RuntimeServiceSnapshotForDesktopBridge added in v0.6.8

func (s *Server) RuntimeServiceSnapshotForDesktopBridge() runtimeservice.Snapshot

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

func (*Server) StartOnListeners added in v0.6.8

func (s *Server) StartOnListeners(ctx context.Context, listeners []net.Listener, runtimeControlListener net.Listener) error

Jump to

Keyboard shortcuts

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