Generic policy evaluation with hardcoded query
This is an experiment to produce a generic evaluation function for different polices, which is able to return arbitrary JSON result after policy execution. For the moment a lot of conventions have to be followed in order for this to work, which is not so good. More experiments will follow to reduce the conventions to minimum (it would be best to remove all of them).
parent
826fe358
No related branches found
No related tags found
Showing
- cmd/policy/main.go 5 additions, 2 deletionscmd/policy/main.go
- internal/service/policy/service.go 58 additions, 5 deletionsinternal/service/policy/service.go
- internal/storage/policies_tmp_store.go 25 additions, 0 deletionsinternal/storage/policies_tmp_store.go
- internal/storage/storage.go 36 additions, 0 deletionsinternal/storage/storage.go
internal/storage/policies_tmp_store.go
0 → 100644
internal/storage/storage.go
0 → 100644
Please register or sign in to comment