1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

add engine and violation pkg

This commit is contained in:
System Administrator 2019-04-26 18:16:22 -07:00
parent b110f964d1
commit c42f130d1a
2 changed files with 15 additions and 0 deletions

9
engine/policy.go Normal file
View file

@ -0,0 +1,9 @@
package engine
import (
types "github.com/nirmata/kube-policy/pkg/apis/policy/v1alpha1"
)
type policyInterface interface {
Apply(policy types.Policy, kind string, resource string, resourceRaw []byte) []byte,
}

6
violation/violation.go Normal file
View file

@ -0,0 +1,6 @@
package violation
type Violations []Violation
type Violation struct {
}