Files
onix/install/build-plugins.sh
Ayush Rawat 80e7b299f1 Refactor Policy Enforcer to Policy Checker
- Renamed the `PolicyEnforcer` interface and related implementations to `PolicyChecker` for clarity and consistency.
- Updated configuration keys in YAML files to reflect the new `checkPolicy` terminology.
- Adjusted related code, tests, and documentation to support the new naming convention and ensure compatibility.
- Enhanced comments and examples for the `checkPolicy` configuration to improve usability.
2026-03-23 04:08:13 +05:30

40 lines
838 B
Bash
Executable File

#!/bin/bash
# Create plugins directory
mkdir -p plugins
# Build each plugin as a shared library
echo "Building plugins..."
plugins=(
"cache"
"decrypter"
"encrypter"
"keymanager"
"simplekeymanager"
"publisher"
"registry"
"dediregistry"
"reqpreprocessor"
"otelsetup"
"reqmapper"
"router"
"schemavalidator"
"schemav2validator"
"signer"
"signvalidator"
"opapolicychecker"
)
for plugin in "${plugins[@]}"; do
echo "Building $plugin plugin..."
go build -buildmode=plugin -o "plugins/${plugin}.so" "./pkg/plugin/implementation/${plugin}/cmd/plugin.go"
if [ $? -eq 0 ]; then
echo "✓ Successfully built $plugin plugin"
else
echo "✗ Failed to build $plugin plugin"
exit 1
fi
done
echo "All plugins built in ./plugins directory"