feat: add @cloud_event_handler() decorator
This decorator takes care of the common functionality that typical event-handler functions need when they process CloudEvents. It provides support for: - Validating the type of incoming CloudEvents - Parsing/validating the data payload of CloudEvents - Recording the CloudEvent's metadata in the function's ExecutionInfo result Handler functions can focus on processing a primary data value without needing to do their own parsing and validation or event metadata logging/reporting. To use this module, handler functions are wrapped with this module's `@cloud_event_handler(...)` decorator. The decorator takes a parser function that is responsible for validating CloudEvent values, and extracting their data payload. Handler functions receive the primary value from the parser function, and also have access to the the full CloudEvent via the `CLOUD_EVENT_HANDLER_CONTEXT` `ContextVar`. Metadata from the CloudEvent is automatically included in `CloudEventHandlerExecutionInfo` values created within the handler function's scope.
-
mentioned in merge request uis/devops/gsuite/management-functions!38
-
mentioned in merge request uis/devops/iam/activate-account/account-data-manager!2
-
mentioned in merge request uis/devops/iam/activate-account/entra-event-handler!26
-
mentioned in merge request uis/devops/devhub/lookup-gitlab-sync/faas!35
-
mentioned in merge request uis/devops/iam/ibis/institution-mapping-tool!13
-
mentioned in merge request uis/devops/infra/terraform/ucam-faas-long!82 (merged)
-
mentioned in merge request uis/devops/infra/terraform/ucam-faas!130 (merged)
-
mentioned in merge request uis/devops/gsuite/management-functions!49
-
mentioned in merge request uis/devops/devhub/lookup-gitlab-sync/faas!57
-
mentioned in merge request uis/devops/iam/activate-account/account-data-manager!64
-
mentioned in merge request uis/devops/iam/activate-account/entra-event-handler!47