aboutsummaryrefslogtreecommitdiff
path: root/lib/policy/checkresult.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/policy/checkresult.go')
-rw-r--r--lib/policy/checkresult.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/policy/checkresult.go b/lib/policy/checkresult.go
new file mode 100644
index 0000000..c84f326
--- /dev/null
+++ b/lib/policy/checkresult.go
@@ -0,0 +1,18 @@
+package policy
+
+import (
+ "log/slog"
+
+ "github.com/TecharoHQ/anubis/lib/policy/config"
+)
+
+type CheckResult struct {
+ Name string
+ Rule config.Rule
+}
+
+func (cr CheckResult) LogValue() slog.Value {
+ return slog.GroupValue(
+ slog.String("name", cr.Name),
+ slog.String("rule", string(cr.Rule)))
+}