Open YourTechBud opened 1 year ago
The worker sdk needs to manually provider the plugin details they wish to apply to their handlers. This leads to typos
spacectl client generate
GeneratePlugins()
Plugins
driver=opa; name=is-admin
OpaIsAdmin()
PluginDetails
PluginImpl
nil
plugins.go
If you want this feature to be implemented, give it a thumbs up reaction, so that we can determine which features are important to you. 👍
The problem faced currently?
The worker sdk needs to manually provider the plugin details they wish to apply to their handlers. This leads to typos
How can we solve it?
spacectl client generate
command will fetch the list of plugins from SC (Ref: #1689)GeneratePlugins()
GeneratePlugins()
will be an exposed struct namedPlugins
with a member function for each plugin registered in SC.driver=opa; name=is-admin
then name of function will beOpaIsAdmin()
PluginDetails
which implements aPluginImpl
interface. This interface will have 3 methods:nil
for now)plugins.go