nuke/lib/policy/checkresult.go
fucksophie 02b9aebbe5
Some checks failed
Docker image builds / build (push) Failing after 4m22s
NUKE
2026-02-07 14:27:38 +02:00

21 lines
336 B
Go

package policy
import (
"log/slog"
"git.sad.ovh/sophie/nuke/lib/config"
)
type CheckResult struct {
Name string
Rule config.Rule
Weight int
}
func (cr CheckResult) LogValue() slog.Value {
return slog.GroupValue(
slog.String("name", cr.Name),
slog.String("rule", string(cr.Rule)),
slog.Int("weight", cr.Weight),
)
}