Documentation ¶
Overview ¶
package implements repofunctions to get resources for views
Index ¶
- Constants
- func GetComplianceReports(ctx context.Context, clusterId string) ([]viewsmodels.ComplianceReport, error)
- func GetComplianceReportsGlobal(ctx context.Context) ([]viewsmodels.ComplianceReport, error)
- func GetGlobalViewVulnerabilityReportsById(ctx context.Context, cveId string) ([]viewsmodels.GlobalVulnerabilityReportsViewById, error)
- func GetPolicyReportSummary(ctx context.Context, query viewsmodels.PolicyreportGlobalQuery, ...) ([]viewsmodels.PolicyreportGlobal, error)
- func GetViewVulnerabilityReportsById(ctx context.Context, cveId string) ([]viewsmodels.VulnerabilityByIdDB, error)
- func GetViewVulnerabilityReportsGlobal(ctx context.Context) ([]viewsmodels.VulnerabilityReportsView, error)
Constants ¶
View Source
const (
ResourceCollectionName = "resources"
)
Variables ¶
This section is empty.
Functions ¶
func GetComplianceReports ¶
func GetComplianceReports(ctx context.Context, clusterId string) ([]viewsmodels.ComplianceReport, error)
func GetComplianceReportsGlobal ¶
func GetComplianceReportsGlobal(ctx context.Context) ([]viewsmodels.ComplianceReport, error)
func GetGlobalViewVulnerabilityReportsById ¶
func GetGlobalViewVulnerabilityReportsById(ctx context.Context, cveId string) ([]viewsmodels.GlobalVulnerabilityReportsViewById, error)
func GetPolicyReportSummary ¶
func GetPolicyReportSummary(ctx context.Context, query viewsmodels.PolicyreportGlobalQuery, clusterID string) ([]viewsmodels.PolicyreportGlobal, error)
func GetViewVulnerabilityReportsById ¶
func GetViewVulnerabilityReportsById(ctx context.Context, cveId string) ([]viewsmodels.VulnerabilityByIdDB, error)
func GetViewVulnerabilityReportsGlobal ¶
func GetViewVulnerabilityReportsGlobal(ctx context.Context) ([]viewsmodels.VulnerabilityReportsView, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.