mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 09:56:55 +00:00
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
19 lines
473 B
Go
19 lines
473 B
Go
package common
|
|
|
|
import (
|
|
kyvernov1 "github.com/kyverno/kyverno/api/kyverno/v1"
|
|
"github.com/kyverno/kyverno/pkg/engine/response"
|
|
)
|
|
|
|
// Info stores the policy application results for all matched resources
|
|
// Namespace is set to empty "" if resource is cluster wide resource
|
|
type Info struct {
|
|
PolicyName string
|
|
Namespace string
|
|
Results []EngineResponseResult
|
|
}
|
|
|
|
type EngineResponseResult struct {
|
|
Resource response.ResourceSpec
|
|
Rules []kyvernov1.ViolatedRule
|
|
}
|