Skip to content

Commit

Permalink
Add Hook to the policy Input for enrichment
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa committed May 23, 2024
1 parent 57631ac commit 0dc285b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions act/io.go
Original file line number Diff line number Diff line change
@@ -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"`
}

Expand Down

0 comments on commit 0dc285b

Please sign in to comment.