Plugin support #12

Closed
opened 2024-12-09 00:37:49 -07:00 by sashakoshka · 3 comments
Owner

Need to be able to load plugins from shared objects built with the plugin build mode.

Need to be able to load plugins from shared objects built with the plugin build mode.
Author
Owner

Plugins should contain a single function Plugin () any that returns an object that can be cast to one or more of the interfaces in plugin.go. A STEP environment should not have a slice of FuncProviders, but rather a slice Plugins []any of which may be cast to a FuncProvider as well as other things.

Plugins should contain a single function `Plugin () any` that returns an object that can be cast to one or more of the interfaces in plugin.go. A STEP environment should not have a slice of FuncProviders, but rather a slice `Plugins []any` of which may be cast to a FuncProvider as well as other things.
Author
Owner

The providers that we have now would cease to be called that and would instead be called builtin plugins

The providers that we have now would cease to be called that and would instead be called builtin plugins
Author
Owner

Or, maybe the object the plugin returns could be called a provider: Provider () any. This would not require any existing providers to be modified.

Or, maybe the object the plugin returns could be called a provider: `Provider () any`. This would not require any existing providers to be modified.
sashakoshka added this to the Proper Daemon project 2024-12-09 17:33:11 -07:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sashakoshka/step#12
No description provided.