report

package
v1.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL