Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPolicyClient ¶
func NewPolicyClient( client PolicyAdapter, store *kyverno.PolicyStore, mapper Mapper, ) kyverno.PolicyClient
NewPolicyClient creates a new PolicyReportClient based on the kubernetes go-client
Types ¶
type Mapper ¶
type Mapper interface { // MapPolicy maps a map into a PolicyReport MapPolicy(reportMap map[string]interface{}) kyverno.Policy }
Mapper converts maps into report structs
type PolicyAdapter ¶
type PolicyAdapter interface { ListClusterPolicies() (*unstructured.UnstructuredList, error) ListPolicies() (*unstructured.UnstructuredList, error) WatchClusterPolicies() (watch.Interface, error) WatchPolicies() (watch.Interface, error) }
func NewPolicyAdapter ¶
func NewPolicyAdapter(dynamic dynamic.Interface, version string) PolicyAdapter
NewPolicAdapter new Adapter for Policy Report Kubernetes API
Click to show internal directories.
Click to hide internal directories.