Documentation
¶
Index ¶
- type ForgeWorkerSource
- type LookupRoot
- type LookupRootValue
- func ExLookupRoot(ctx context.Context, b bus.Bus, returnIfIdle bool, platformIDs []string, ...) (LookupRootValue, directive.Instance, directive.Reference, error)
- func ExLookupRootByPlatform(ctx context.Context, b bus.Bus, returnIfIdle bool, platformID string, ...) (LookupRootValue, directive.Instance, directive.Reference, error)
- type Root
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ForgeWorkerSource ¶
type ForgeWorkerSource interface {
// WaitForgeWorker returns the binary s4wave.device.ForgeWorkerDeclaration,
// the Device object key and the revision once the revision differs from
// last. A zero last returns the current value at once. The declaration is
// empty while the Device declares no Worker.
WaitForgeWorker(ctx context.Context, last uint64) (declaration []byte, deviceObjectKey string, revision uint64, err error)
}
ForgeWorkerSource exposes the daemon-owned Forge Worker declaration without mutation authority.
type LookupRoot ¶
type LookupRoot interface {
directive.Directive
// LookupRootPlatformIDs filters the platform IDs to match.
LookupRootPlatformIDs() []string
}
LookupRoot is a directive to look up process-lifetime plugin host roots.
func NewLookupRoot ¶
func NewLookupRoot(platformIDs []string) LookupRoot
NewLookupRoot constructs a new LookupRoot directive.
type LookupRootValue ¶
type LookupRootValue = *Root
LookupRootValue is the result type for LookupRoot.
func ExLookupRoot ¶
func ExLookupRoot( ctx context.Context, b bus.Bus, returnIfIdle bool, platformIDs []string, valDisposeCallback func(), ) (LookupRootValue, directive.Instance, directive.Reference, error)
ExLookupRoot executes the LookupRoot directive.
func ExLookupRootByPlatform ¶
func ExLookupRootByPlatform( ctx context.Context, b bus.Bus, returnIfIdle bool, platformID string, valDisposeCallback func(), ) (LookupRootValue, directive.Instance, directive.Reference, error)
ExLookupRootByPlatform executes the LookupRoot directive for a single platform ID.
type Root ¶
type Root struct {
// contains filtered or unexported fields
}
Root is the process-lifetime Bldr plugin host resource root. Root is the plugin-host root resource owning the tray and structured log hub.
func (*Root) GetDesktopTray ¶
func (r *Root) GetDesktopTray() *desktop_tray.DesktopTray
GetDesktopTray returns the process-lifetime desktop tray registry.
func (*Root) GetStructuredLogs ¶ added in v0.51.3
func (r *Root) GetStructuredLogs() *plugin_host_logs.Hub
GetStructuredLogs returns the process-lifetime structured log hub.
func (*Root) SetForgeWorkerSource ¶
func (r *Root) SetForgeWorkerSource(source ForgeWorkerSource)
SetForgeWorkerSource binds the daemon's Forge Worker watch to this host lifetime.
func (*Root) WaitForgeWorkerSource ¶
func (r *Root) WaitForgeWorkerSource(ctx context.Context) (ForgeWorkerSource, error)
WaitForgeWorkerSource waits for the daemon to bind its read-only Forge Worker source.