/
clusterapis.go
51 lines (48 loc) · 2.28 KB
/
clusterapis.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package apis
// WebsocketScanCommand api
const (
VulnerabilityScanCommandVersion string = "v1"
ContainerScanCommandPath string = "scanImage"
RegistryScanCommandPath string = "scanRegistryImage"
SBOMCalculationCommandPath string = "generateSBOM"
DBCommandPath string = "DBCommand"
ServerReady string = "ready"
)
// Supported NotificationTypes
//
// swagger:enum NotificationPolicyType
type NotificationPolicyType string
const (
TypeValidateRules NotificationPolicyType = "validateRules"
// Execute a posture scan
TypeExecPostureScan NotificationPolicyType = "execPostureScan"
TypeUpdateRules NotificationPolicyType = "updateRules"
TypeRunKubescapeJob NotificationPolicyType = "runKubescapeJob"
// Trigger a Kubescape scan
TypeRunKubescape NotificationPolicyType = "kubescapeScan"
// Create a CronJob that runs a Kubescape scan
TypeSetKubescapeCronJob NotificationPolicyType = "setKubescapeCronJob"
// Update a CronJob that runs a Kubescape scan
TypeUpdateKubescapeCronJob NotificationPolicyType = "updateKubescapeCronJob"
// Delete a CronJob that runs a Kubescape scan
TypeDeleteKubescapeCronJob NotificationPolicyType = "deleteKubescapeCronJob"
// Create a CronJob that runs a Vulnerability Scan
TypeSetVulnScanCronJob NotificationPolicyType = "setVulnScanCronJob"
// Update a CronJob that runs a Vulnerability Scan
TypeUpdateVulnScanCronJob NotificationPolicyType = "updateVulnScanCronJob"
// Delete a CronJob that runs a Vulnerability Scan
TypeDeleteVulnScanCronJob NotificationPolicyType = "deleteVulnScanCronJob"
// Trigger an image scan
TypeScanImages NotificationPolicyType = "scan"
// Trigger a relevancy image scan
TypeCalculateSBOM NotificationPolicyType = "calculateSBOM"
// Trigger a registry scan
TypeScanRegistry NotificationPolicyType = "scanRegistry"
// Create a CronJob that runs registry scans
TypeSetRegistryScanCronJob NotificationPolicyType = "setRegistryScanCronJob"
// Update a CronJob that runs registry scans
TypeUpdateRegistryScanCronJob NotificationPolicyType = "updateRegistryScanCronJob"
// Delete a CronJob that runs registry scans
TypeDeleteRegistryScanCronJob NotificationPolicyType = "deleteRegistryScanCronJob"
TypeTestRegistryConnectivity NotificationPolicyType = "testRegistryConnectivity"
)