plugin_host_resource

package
v0.51.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginHostRoot

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

PluginHostRoot is the root resource handler for plugins. It wraps all plugin resources and implements PluginHostResourceService.

func NewPluginHostRoot

func NewPluginHostRoot(
	le *logrus.Entry,
	b bus.Bus,
	pluginID, entrypoint string,
	distFS, assetsFS *unixfs.FSHandle,
	proxyHostVol *volume_rpc_server.ProxyVolume,
	hostRoot *plugin_host_root.Root,
	stateAtomObjectStoreID, stateAtomVolumeID string,
) *PluginHostRoot

NewPluginHostRoot constructs a new PluginHostRoot.

func (*PluginHostRoot) AccessAssetsFS

AccessAssetsFS returns a resource ID for the plugin's assets filesystem.

func (*PluginHostRoot) AccessDesktopTray added in v0.51.2

AccessDesktopTray returns a resource ID for the process-lifetime desktop tray.

func (*PluginHostRoot) AccessDistFS

AccessDistFS returns a resource ID for the plugin's dist filesystem.

func (*PluginHostRoot) AccessStateAtom

AccessStateAtom returns a resource ID for a state atom store.

func (*PluginHostRoot) AccessVolume

AccessVolume returns a resource ID for the plugin's host volume.

func (*PluginHostRoot) GetMux

func (r *PluginHostRoot) GetMux() srpc.Invoker

GetMux returns the RPC mux for the root resource.

func (*PluginHostRoot) GetPluginInfo

GetPluginInfo returns information about the running plugin.

func (*PluginHostRoot) Release

func (r *PluginHostRoot) Release()

Release releases all resources held by the root.

Jump to

Keyboard shortcuts

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