1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00
kyverno/pkg/engine/policy.go
2019-04-26 18:53:38 -07:00

13 lines
409 B
Go

package engine
import (
types "github.com/nirmata/kube-policy/pkg/apis/policy/v1alpha1"
"github.com/nirmata/kube-policy/pkg/violation"
"github.com/nirmata/kube-policy/webhooks"
)
type policyInterface interface {
ApplySingle(policy types.Policy, resourceRaw []byte) (webhooks.PatchBytes, violation.Violations, error)
ApplyRegex(policy types.Policy) (webhooks.PatchBytes, violation.Violations, error)
}