pandora icon indicating copy to clipboard operation
pandora copied to clipboard

Plugin type defaults

Open skipor opened this issue 7 years ago • 1 comments

Every plugin implementation can have it's own defaults. But user still needed to set 'type' field for every plugin. I propose to add default types for every plugin.

skipor avatar Apr 05 '17 14:04 skipor

I think, it's possible do more magic things! Maybe auto deduce plugin type? Iterate over all plugins and check if data "suitable" for this plugin config type. "suitable" may mean, decoded without errors (do not create plugin, just decode config without validation), or check, that data keys is subset of config keys (may be harder). If no plugin type suitable - error. If more than one plugin type suitable - error.

rps:
   composite:
      - {from: 10, to: 50, duration: 3m}
      - {ops: 50, duration: 5m}
      - {once: 100}
      - {from: 50, to: 10, duration: 2m}

skipor avatar Jul 24 '17 21:07 skipor