mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-29 02:45:06 +00:00
add engine and violation pkg
This commit is contained in:
parent
b110f964d1
commit
c42f130d1a
2 changed files with 15 additions and 0 deletions
9
engine/policy.go
Normal file
9
engine/policy.go
Normal 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
6
violation/violation.go
Normal file
|
@ -0,0 +1,6 @@
|
|||
package violation
|
||||
|
||||
type Violations []Violation
|
||||
|
||||
type Violation struct {
|
||||
}
|
Loading…
Add table
Reference in a new issue