consul/internal/catalog/internal
Matt Keeler 5698353652
Resource Hook Pre-Decode Utilities (#18548)
Add some generic type hook wrappers to first decode the data

There seems to be a pattern for Validation, Mutation and Write Authorization hooks where they first need to decode the Any data before doing the domain specific work.

This PR introduces 3 new functions to generate wrappers around the other hooks to pre-decode the data into a DecodedResource and pass that in instead of the original pbresource.Resource.

This PR also updates the various catalog data types to use the new hook generators.
2023-10-26 16:39:06 -04:00
..
controllers catalog, mesh: implement missing ACL hooks (#19143) 2023-10-13 23:16:26 +00:00
mappers NET-5799 - ensure catalog controllers and dependency mappers function correctly for tenancy fields (#19142) 2023-10-12 02:07:50 +00:00
testhelpers acls,catalog,mesh: properly authorize workload selectors on writes (#19260) 2023-10-19 11:09:41 -06:00
types Resource Hook Pre-Decode Utilities (#18548) 2023-10-26 16:39:06 -04:00