Documentation ¶
Index ¶
- func CreateObjectReference(report *v1alpha1.RbacAssessmentReport) *corev1.ObjectReference
- func CreateSummary(report *v1alpha1.RbacAssessmentReport) v1alpha2.PolicyReportSummary
- func GeneratePolicyReportName(report *v1alpha1.RbacAssessmentReport) string
- func MapResult(success bool) v1alpha2.PolicyResult
- type Client
- type PolicyReportClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateObjectReference ¶
func CreateObjectReference(report *v1alpha1.RbacAssessmentReport) *corev1.ObjectReference
func CreateSummary ¶
func CreateSummary(report *v1alpha1.RbacAssessmentReport) v1alpha2.PolicyReportSummary
func GeneratePolicyReportName ¶
func GeneratePolicyReportName(report *v1alpha1.RbacAssessmentReport) string
func MapResult ¶
func MapResult(success bool) v1alpha2.PolicyResult
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(mgr manager.Manager, client controller.Controller, polrClient v1alpha2.Wgpolicyk8sV1alpha2Interface, applyLabels []string) *Client
type PolicyReportClient ¶
type PolicyReportClient struct {
// contains filtered or unexported fields
}
func NewPolicyReportClient ¶
func NewPolicyReportClient(client pr.Wgpolicyk8sV1alpha2Interface, applyLabels []string) *PolicyReportClient
func (*PolicyReportClient) DeleteReport ¶
func (p *PolicyReportClient) DeleteReport(ctx context.Context, report *v1alpha1.RbacAssessmentReport) error
func (*PolicyReportClient) GenerateReport ¶
func (p *PolicyReportClient) GenerateReport(ctx context.Context, report *v1alpha1.RbacAssessmentReport) error
Click to show internal directories.
Click to hide internal directories.