plugin_host_resource

package
v0.56.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitialCapabilityRegistrationDoneFunc added in v0.56.1

type InitialCapabilityRegistrationDoneFunc func(complete bool)

InitialCapabilityRegistrationDoneFunc reports whether the plugin completed its initial capability-registration pass before its instance ended.

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(
	ctx context.Context,
	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,
	registrationDone InitialCapabilityRegistrationDoneFunc,
) *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) CompleteInitialCapabilityRegistration added in v0.56.1

CompleteInitialCapabilityRegistration marks the plugin's initial capability registration pass complete.

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) RegisterObjectType added in v0.56.1

RegisterObjectType registers an ObjectType served by 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