mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 01:46:55 +00:00
12 lines
433 B
Go
12 lines
433 B
Go
|
package common
|
||
|
|
||
|
import (
|
||
|
"github.com/kyverno/kyverno/pkg/clients/dclient"
|
||
|
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||
|
)
|
||
|
|
||
|
// ResourceInterface abstracts the matched resources by either Kyverno Policies or Validating Admission Policies
|
||
|
type ResourceInterface interface {
|
||
|
FetchResourcesFromPolicy(resourcePaths []string, dClient dclient.Interface, namespace string, policyReport bool) ([]*unstructured.Unstructured, error)
|
||
|
}
|