From 0dc285bece04ef49b566be85d8dae260dde1793d Mon Sep 17 00:00:00 2001 From: Mostafa Moradian Date: Thu, 23 May 2024 19:43:57 +0200 Subject: [PATCH] Add Hook to the policy Input for enrichment --- act/io.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/act/io.go b/act/io.go index 927823e..c4c0212 100644 --- a/act/io.go +++ b/act/io.go @@ -1,9 +1,17 @@ package act +type Hook struct { + Name string `json:"name"` + Priority uint `json:"priority"` + Params map[string]any `json:"params"` + Result map[string]any `json:"result"` +} + type Input struct { Name string `json:"name"` Policy map[string]any `json:"policy"` Signal map[string]any `json:"signal"` + Hook Hook `json:"hook"` Sync bool `json:"sync"` }