Documentation ¶
Index ¶
- Constants
- func CreatePolicyReport(report *v1alpha1.CISKubeBenchReport) *v1alpha2.ClusterPolicyReport
- func GeneratePolicyReportName(name string) string
- func Map(report *v1alpha1.CISKubeBenchReport, polr *v1alpha2.ClusterPolicyReport) (*v1alpha2.ClusterPolicyReport, bool)
- func MapResult(status string) v1alpha2.PolicyResult
- func MapServerity(severity v1alpha1.Severity) v1alpha2.PolicySeverity
- type Client
- type PolicyReportClient
- type Severity
Constants ¶
View Source
const ( StatusFail = "FAIL" StatusWarn = "WARN" StatusInfo = "INFO" StatusPass = "PASS" )
Variables ¶
This section is empty.
Functions ¶
func CreatePolicyReport ¶
func CreatePolicyReport(report *v1alpha1.CISKubeBenchReport) *v1alpha2.ClusterPolicyReport
func Map ¶
func Map(report *v1alpha1.CISKubeBenchReport, polr *v1alpha2.ClusterPolicyReport) (*v1alpha2.ClusterPolicyReport, bool)
func MapResult ¶
func MapResult(status string) v1alpha2.PolicyResult
func MapServerity ¶
func MapServerity(severity v1alpha1.Severity) v1alpha2.PolicySeverity
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(client controller.Controller, polrClient v1alpha2.Wgpolicyk8sV1alpha2Interface) *Client
type PolicyReportClient ¶
type PolicyReportClient struct {
// contains filtered or unexported fields
}
func NewPolicyReportClient ¶
func NewPolicyReportClient(client pr.Wgpolicyk8sV1alpha2Interface) *PolicyReportClient
func (*PolicyReportClient) DeleteReport ¶
func (p *PolicyReportClient) DeleteReport(ctx context.Context, report *v1alpha1.CISKubeBenchReport) error
func (*PolicyReportClient) GenerateReport ¶
func (p *PolicyReportClient) GenerateReport(ctx context.Context, report *v1alpha1.CISKubeBenchReport) error
Click to show internal directories.
Click to hide internal directories.