Chris Roberts
1594545d18
Remove helpers which are no longer valid
2022-04-25 16:12:38 -07:00
Chris Roberts
6d45d07f3f
Update plugin to use cleanup
2022-04-25 16:12:38 -07:00
Chris Roberts
f39e5709f4
Make plugin manager usage consistent
...
Updated to properly handle sub managers. Configurators
from parent managers properly applied to instances. Instances
are cached within requesting manager. Parent loading is also
handled in calling manager to properly support parent caching.
Closers implementation replaced with cleanup.
2022-04-25 16:12:38 -07:00
Chris Roberts
45e7814842
Remove parent loading and caching from plugin
2022-04-25 16:12:38 -07:00
Chris Roberts
5e277410f3
Use regular mapper for manager and properly cleanup on close
2022-04-25 16:01:10 -07:00
Chris Roberts
8b5bab5250
Update plugin manager to cache named plugins
2022-04-25 16:01:10 -07:00
Chris Roberts
234734061c
Add internal interface implementation for managers
2022-04-25 16:01:10 -07:00
Chris Roberts
616e003c42
When creating a plugin instance, register closer
2022-04-25 16:01:10 -07:00
Chris Roberts
1ca5872a5a
Define component types which can be cached
2022-04-25 12:26:58 -05:00
sophia
68ffb3a8cf
Inject core plugin manager into context when running plugins
2022-04-25 12:26:50 -05:00
sophia
b33f1a9e01
Test guest plugin with parent
2022-04-25 12:26:41 -05:00
sophia
df0fb642b0
Add ability to get plugin with a particular instance
2022-04-25 12:26:41 -05:00
sophia
8f95994a88
Create test dummy plugins
2022-04-25 12:26:41 -05:00
sophia
1117e06e38
Add testing plugin and plugin manager
2022-04-25 12:26:40 -05:00
sophia
19f3d2f0b6
Refactor named plugin bits to apply to all components
2022-04-25 12:26:33 -05:00
sophia
891eb27e9a
Rename plugin "target" to "addr"
2022-04-25 12:26:27 -05:00
Chris Roberts
9f320145ff
Add support for custom component configuration
2022-04-25 12:26:14 -05:00
Chris Roberts
20a3f4d85c
Provide core.PluginManager implementation and server setup
2022-04-25 12:26:14 -05:00
Chris Roberts
27d0fee45f
Define plugin interfaces in plugin. Load parent from plugin.
...
Also applies registered configurations from the plugin
manager when providing a requested component type.
2022-04-25 12:26:14 -05:00
Chris Roberts
b2dec1191a
Remove interfaces and add extra info to instance
2022-04-25 12:26:14 -05:00
Chris Roberts
e4f1e297ab
Update plugin seed function signature
2022-04-25 12:26:05 -05:00
sophia
c4cd5c599b
Add mappers to component at component creation phase
2022-04-25 12:25:51 -05:00
Chris Roberts
7595f1533f
Enable plugin mappers
2022-04-25 12:25:50 -05:00
sophia
cafa1d039d
Load single parent plugin
2022-04-25 12:24:48 -05:00
sophia
cda3ba7b29
Make myplugin have parents darwin and bsd
2022-04-25 12:24:48 -05:00
sophia
2bd95144e7
Seed plugin on startup
2022-04-25 12:24:48 -05:00
sophia
3d0197d0bf
Store plugin parents
2022-04-25 12:24:47 -05:00
Chris Roberts
891541cd40
Create cache in manager and set into plugin if available
2022-04-25 12:24:47 -05:00
Chris Roberts
fc61c27b51
Update logging names for clearer messages
2022-04-25 12:24:45 -05:00
Chris Roberts
0f4c6f5921
Allow plugin manager to have sub managers
2022-04-25 12:24:34 -05:00
sophia
f261b9a158
Fix errorf formatting
2022-04-25 12:24:29 -05:00
sophia
bc365ab796
Remote discover tests
2022-04-25 12:24:28 -05:00
sophia
47a0a2d7d2
Record machine client in machine index entry
2022-04-25 12:24:27 -05:00
Chris Roberts
ef3cde9cd3
Update in-process builtin factory to return plugin registration
2022-04-25 12:24:23 -05:00
Chris Roberts
63fe341ca5
Add plugin discovery support to manager
2022-04-25 12:24:23 -05:00
Chris Roberts
26b9cd37e7
Remove plugin discover function
2022-04-25 12:24:23 -05:00
Chris Roberts
7357fa4017
Update plugin factory definitions to use custom type
2022-04-25 12:24:22 -05:00
Chris Roberts
392ad6d3b7
Define plugin struct in plugin file and remove factories
2022-04-25 12:24:22 -05:00
Chris Roberts
b573385dd3
Update plugin factories to return plugin type for plugin manager registration
2022-04-25 12:24:22 -05:00
Chris Roberts
29344edab5
Add a plugin manager
2022-04-25 12:24:21 -05:00
sophia
97846f15af
Update waypoint discover plugin test to vagrant
2022-04-25 12:24:14 -05:00
Chris Roberts
3f5f9a722d
Clean up logger usage
2022-04-25 12:24:12 -05:00
Chris Roberts
6689d8cb6b
Add PluginInfo component type to factory
2022-04-25 12:24:12 -05:00
Chris Roberts
e06ff39ebf
Don't use hidden directory in user config path
2022-04-25 12:24:12 -05:00
Chris Roberts
05d5634c83
Host component related work
2022-04-25 12:24:10 -05:00
sophia
88bcb0378e
Save point - broken
2022-04-25 12:24:09 -05:00
Chris Roberts
c42fe18156
Extract broker when building component instances
2022-04-25 12:24:06 -05:00
sophia
bc095b06dc
Don't initialize hosts with basis
2022-04-25 12:24:04 -05:00
sophia
dfd604bd1b
Run capabilities
2022-04-25 12:24:04 -05:00
Chris Roberts
c2fe40854f
Register otherplugin in builtins list
2022-04-25 12:24:03 -05:00