Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let plugins know about placement #2607

Open
kodebach opened this Issue Apr 8, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@kodebach
Copy link
Contributor

kodebach commented Apr 8, 2019

We recently added the global KeySet that every plugin has access to. We could use this to pass additional information to plugins from kdGet and kdbSet. For example we could add system/elektra/placement to let plugins now, in which placement they are currently being called. This improves plugins that are mounted in multiple get/set placements (such as list), because they would know whether the current call is e.g. pregetstorage or postgetstorage.

This would also make it possible for a plugin to be a resolver and storage plugin simultaneously, which would e.g. be helpful for specload.

@kodebach kodebach changed the title Let plugins now about placement Let plugins know about placement Apr 8, 2019

@markus2330

This comment has been minimized.

Copy link
Contributor

markus2330 commented Apr 9, 2019

Thank you for adding this proposal! @mpranj and I already discussed it (even how to do it efficiently by simply copying metadata instead of creating new keys for every plugin).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.