resource_root

package
v0.51.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const StateAtomObjectStoreID = "state-atoms"

StateAtomObjectStoreID is the object store ID for state atoms.

Variables

This section is empty.

Functions

func SetWebListenerKeepaliveFunc

func SetWebListenerKeepaliveFunc(fn WebListenerKeepaliveFunc) func()

SetWebListenerKeepaliveFunc installs the process-local web listener keepalive hook.

Types

type CoreRootServer

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

CoreRootServer implements the RootResourceService for s4wave core.

func NewCoreRootServer

func NewCoreRootServer(le *logrus.Entry, b bus.Bus) *CoreRootServer

NewCoreRootServer creates a new CoreRootServer.

func (*CoreRootServer) AccessStateAtom

AccessStateAtom accesses a state atom resource.

func (*CoreRootServer) AccessWebListener

AccessWebListener creates or reuses a localhost web listener.

func (*CoreRootServer) Close

func (s *CoreRootServer) Close()

Close releases process-owned root resources.

func (*CoreRootServer) DeleteSession

DeleteSession removes a session from the local session list by index.

func (*CoreRootServer) GetCdn

GetCdn mounts a CdnResource for the selected CDN instance and returns both the client resource id and the CDN Space ULID in one round-trip. Empty cdn_id selects the default CDN. Unknown ids return the wrapped ErrUnknownCdn from the registry so callers can distinguish misconfigured ids from transport errors.

func (*CoreRootServer) GetChangelog

GetChangelog returns the embedded application changelog.

func (*CoreRootServer) GetDebugDb

GetDebugDb returns a debug database resource for storage diagnostics.

func (*CoreRootServer) GetSessionMetadata

GetSessionMetadata returns metadata for a session by index.

func (*CoreRootServer) HashSum

HashSum computes a hash of the given data with the specified hash type.

func (*CoreRootServer) HashValidate

HashValidate validates a hash object.

func (*CoreRootServer) ListProviders

ListProviders lists the available providers.

func (*CoreRootServer) ListSessions

ListSessions lists the configured sessions.

func (*CoreRootServer) LookupProvider

LookupProvider accesses a provider Resource by ID.

func (*CoreRootServer) MarshalHash

MarshalHash marshals a Hash to a base58 string.

func (*CoreRootServer) MountSession

MountSession mounts a session and returns the Session resource by SessionRef.

func (*CoreRootServer) MountSessionByIdx

MountSessionByIdx mounts a session by index and returns the Session resource.

func (*CoreRootServer) ParseHash

ParseHash parses a Hash from a base58 string.

func (*CoreRootServer) ReclaimRuntime

ReclaimRuntime signals the listener controller to reclaim the runtime from the remote owner.

func (*CoreRootServer) Register

func (s *CoreRootServer) Register(mux srpc.Mux) error

Register registers the server with the mux.

func (*CoreRootServer) ResetSession

ResetSession resets a PIN-locked session via entity key verification.

func (*CoreRootServer) RespondToListenerYieldPrompt

RespondToListenerYieldPrompt resolves a pending prompt with the user's decision.

func (*CoreRootServer) StopWebListener

StopWebListener stops a daemon-owned localhost web listener.

func (*CoreRootServer) UnlockSession

UnlockSession unlocks a PIN-locked session before mounting.

func (*CoreRootServer) WatchAllAccountStatuses

WatchAllAccountStatuses streams provider account statuses for all sessions.

func (*CoreRootServer) WatchListenerStatus

WatchListenerStatus streams the current desktop resource listener status: effective socket path, whether the listener is currently bound, and the count of connected resource clients. The UI uses this to render a live status chip on the session-local command-line setup page.

func (*CoreRootServer) WatchListenerYieldPrompts

WatchListenerYieldPrompts streams the set of pending takeover prompts surfaced by the desktop resource listener's yield broker. The UI subscribes to this stream, renders a modal for the first prompt, and resolves via RespondToListenerYieldPrompt.

func (*CoreRootServer) WatchRuntimeHandoff

WatchRuntimeHandoff streams the current runtime handoff state so the UI can render the "Runtime handed off" banner and the Reclaim action.

func (*CoreRootServer) WatchSessionMetadata

WatchSessionMetadata streams metadata for a session by index.

func (*CoreRootServer) WatchSessions

WatchSessions streams the session list, sending updates when sessions change.

func (*CoreRootServer) WatchStateAtoms

WatchStateAtoms streams the known root state atom store ids on change.

func (*CoreRootServer) WatchWebListeners

WatchWebListeners streams daemon-owned localhost web listeners.

type WebListenerKeepaliveFunc

type WebListenerKeepaliveFunc func(listenerID string) func()

WebListenerKeepaliveFunc acquires daemon lifetime for a background listener.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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