forked from open-policy-agent/opa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sdk: Allow map of plugins to be passed to SDK
This adds a Plugins field to the SDK Options struct that accepts a map[string]plugins.Factory similarly to the map created by runtime.RegisterPlugin this map is passed to the discovery.Factories plugin similarly, again, to how it works within the Runtime module. This allows an OPA SDK instance to initialize plugins. Fixes open-policy-agent#3826 Signed-off-by: Edward Paget <edward.paget@chime.com> Fixed changes requested by @tsandall (squash before merge) Signed-off-by: Edward Paget <edward.paget@chime.com>
- Loading branch information
Showing
3 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters