Documentation ¶
Index ¶
- func AddResultToClusterPolicyReport(policyReport *wgpolicy.ClusterPolicyReport, policy policiesv1.Policy, ...) *wgpolicy.PolicyReportResult
- func AddResultToPolicyReport(policyReport *wgpolicy.PolicyReport, policy policiesv1.Policy, ...) *wgpolicy.PolicyReportResult
- func NewClusterPolicyReport(resource unstructured.Unstructured) *wgpolicy.ClusterPolicyReport
- func NewPolicyReport(resource unstructured.Unstructured) *wgpolicy.PolicyReport
- type PolicyReportStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddResultToClusterPolicyReport ¶ added in v1.11.0
func AddResultToClusterPolicyReport( policyReport *wgpolicy.ClusterPolicyReport, policy policiesv1.Policy, admissionReview *admissionv1.AdmissionReview, errored bool, ) *wgpolicy.PolicyReportResult
AddResultToClusterPolicyReport adds a result to a ClusterPolicyReport and updates the summary
func AddResultToPolicyReport ¶ added in v1.11.0
func AddResultToPolicyReport( policyReport *wgpolicy.PolicyReport, policy policiesv1.Policy, admissionReview *admissionv1.AdmissionReview, errored bool, ) *wgpolicy.PolicyReportResult
AddResultToPolicyReport adds a result to a PolicyReport and updates the summary
func NewClusterPolicyReport ¶
func NewClusterPolicyReport(resource unstructured.Unstructured) *wgpolicy.ClusterPolicyReport
NewClusterPolicyReport creates a new ClusterPolicyReport from a given resource
func NewPolicyReport ¶
func NewPolicyReport(resource unstructured.Unstructured) *wgpolicy.PolicyReport
NewPolicyReport creates a new PolicyReport from a given resource
Types ¶
type PolicyReportStore ¶
type PolicyReportStore struct {
// contains filtered or unexported fields
}
PolicyReportStore is a store for PolicyReport and ClusterPolicyReport
func NewPolicyReportStore ¶
func NewPolicyReportStore(client client.Client) *PolicyReportStore
NewPolicyReportStore creates a new PolicyReportStore
func (*PolicyReportStore) CreateOrPatchClusterPolicyReport ¶ added in v1.11.0
func (s *PolicyReportStore) CreateOrPatchClusterPolicyReport(ctx context.Context, clusterPolicyReport *wgpolicy.ClusterPolicyReport) error
CreateOrPatchClusterPolicyReport creates or patches a ClusterPolicyReport
func (*PolicyReportStore) CreateOrPatchPolicyReport ¶ added in v1.11.0
func (s *PolicyReportStore) CreateOrPatchPolicyReport(ctx context.Context, policyReport *wgpolicy.PolicyReport) error
CreateOrPatchPolicyReport creates or patches a PolicyReport
Click to show internal directories.
Click to hide internal directories.