-
Notifications
You must be signed in to change notification settings - Fork 0
/
enum.go
1347 lines (1116 loc) · 51.4 KB
/
enum.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: MPL-2.0
//
// Code generated by gen.go; DO NOT EDIT.
package mondoogql
// APITokenOrderField
type APITokenOrderField string
const (
APITokenOrderFieldName APITokenOrderField = "NAME"
APITokenOrderFieldLastUsed APITokenOrderField = "LAST_USED"
APITokenOrderFieldCreatedAt APITokenOrderField = "CREATED_AT"
)
// Access represents access level of the object.
type Access string
// Access level of the object.
const (
AccessAll Access = "ALL"
AccessPublic Access = "PUBLIC"
AccessAuthenticated Access = "AUTHENTICATED"
AccessPrivate Access = "PRIVATE"
)
// ActionType represents action type used when triggering action on client integration.
type ActionType string
// Action type used when triggering action on client integration.
const (
ActionTypeRetrySetup ActionType = "RETRY_SETUP"
ActionTypeRunScan ActionType = "RUN_SCAN"
ActionTypeRunExport ActionType = "RUN_EXPORT"
ActionTypeRunImport ActionType = "RUN_IMPORT"
ActionTypePause ActionType = "PAUSE"
ActionTypeUnpause ActionType = "UNPAUSE"
ActionTypeMetrics ActionType = "METRICS"
ActionTypeUpdate ActionType = "UPDATE"
ActionTypeDiagnostics ActionType = "DIAGNOSTICS"
ActionTypeClearScanQueue ActionType = "CLEAR_SCAN_QUEUE"
)
// ActivePolicyOrderField
type ActivePolicyOrderField string
const (
ActivePolicyOrderFieldAffectedAssets ActivePolicyOrderField = "AFFECTED_ASSETS"
ActivePolicyOrderFieldName ActivePolicyOrderField = "NAME"
)
// AdvisoryOrderField represents possible advisory order fields.
type AdvisoryOrderField string
// possible advisory order fields.
const (
AdvisoryOrderFieldID AdvisoryOrderField = "ID"
AdvisoryOrderFieldTitle AdvisoryOrderField = "TITLE"
AdvisoryOrderFieldPublished AdvisoryOrderField = "PUBLISHED"
AdvisoryOrderFieldScore AdvisoryOrderField = "SCORE"
)
// AdvisoryPlatformFilter represents possible Advisory filters.
type AdvisoryPlatformFilter string
// possible Advisory filters.
const (
AdvisoryPlatformFilterRedhat AdvisoryPlatformFilter = "REDHAT"
AdvisoryPlatformFilterAmazon AdvisoryPlatformFilter = "AMAZON"
AdvisoryPlatformFilterDebian AdvisoryPlatformFilter = "DEBIAN"
AdvisoryPlatformFilterUbuntu AdvisoryPlatformFilter = "UBUNTU"
AdvisoryPlatformFilterAlpine AdvisoryPlatformFilter = "ALPINE"
AdvisoryPlatformFilterOracle AdvisoryPlatformFilter = "ORACLE"
AdvisoryPlatformFilterSuse AdvisoryPlatformFilter = "SUSE"
)
// AdvisorySummaryOrderField represents possible advisory summary order fields.
type AdvisorySummaryOrderField string
// possible advisory summary order fields.
const (
AdvisorySummaryOrderFieldID AdvisorySummaryOrderField = "ID"
AdvisorySummaryOrderFieldTitle AdvisorySummaryOrderField = "TITLE"
AdvisorySummaryOrderFieldPublished AdvisorySummaryOrderField = "PUBLISHED"
AdvisorySummaryOrderFieldScore AdvisorySummaryOrderField = "SCORE"
AdvisorySummaryOrderFieldRiskfactors AdvisorySummaryOrderField = "RISKFACTORS"
)
// AgentOrderField represents supported sorting fields for agents.
type AgentOrderField string
// Supported sorting fields for agents.
const (
AgentOrderFieldID AgentOrderField = "ID"
AgentOrderFieldName AgentOrderField = "NAME"
AgentOrderFieldPlatform AgentOrderField = "PLATFORM"
AgentOrderFieldIP AgentOrderField = "IP"
AgentOrderFieldVersion AgentOrderField = "VERSION"
AgentOrderFieldStatus AgentOrderField = "STATUS"
AgentOrderFieldLastCheckin AgentOrderField = "LAST_CHECKIN"
AgentOrderFieldHostname AgentOrderField = "HOSTNAME"
)
// AgentState represents describes agent state.
type AgentState string
// Describes agent state.
const (
AgentStateActive AgentState = "ACTIVE"
AgentStateMissing AgentState = "MISSING"
)
// AggregateScoreOrderField represents aggregate score order field.
type AggregateScoreOrderField string
// Aggregate score order field.
const (
AggregateScoreOrderFieldRiskScore AggregateScoreOrderField = "RISK_SCORE" // Risk score field.
AggregateScoreOrderFieldRank AggregateScoreOrderField = "RANK" // Risk rank.
AggregateScoreOrderFieldBlastRadius AggregateScoreOrderField = "BLAST_RADIUS" // Risk score blast radius.
AggregateScoreOrderFieldTitle AggregateScoreOrderField = "TITLE" // Title.
)
// AggregateScoreState
type AggregateScoreState string
const (
AggregateScoreStatePreview AggregateScoreState = "PREVIEW"
AggregateScoreStateEnabled AggregateScoreState = "ENABLED"
AggregateScoreStateSnoozed AggregateScoreState = "SNOOZED"
AggregateScoreStateDisabled AggregateScoreState = "DISABLED"
)
// AggregateScoreType represents aggregate score type field.
type AggregateScoreType string
// Aggregate score type field.
const (
AggregateScoreTypeVulnerability AggregateScoreType = "VULNERABILITY"
AggregateScoreTypeAdvisory AggregateScoreType = "ADVISORY"
AggregateScoreTypeCheck AggregateScoreType = "CHECK"
AggregateScoreTypePolicy AggregateScoreType = "POLICY"
AggregateScoreTypeRisk AggregateScoreType = "RISK"
AggregateScoreTypeAsset AggregateScoreType = "ASSET"
AggregateScoreTypeControl AggregateScoreType = "CONTROL"
AggregateScoreTypeFramework AggregateScoreType = "FRAMEWORK"
AggregateScoreTypeSoftware AggregateScoreType = "SOFTWARE" // Aggregate score for a software package across all versions currently affected by a vulnerability.
AggregateScoreTypeVersionedSoftware AggregateScoreType = "VERSIONED_SOFTWARE" // Aggregate score for a software package with a specific version affected by a vulnerability.
AggregateScoreTypeOther AggregateScoreType = "OTHER"
)
// AssetLinkType represents asset link type.
type AssetLinkType string
// Asset link type.
const (
AssetLinkTypeFleet AssetLinkType = "FLEET"
AssetLinkTypeCi AssetLinkType = "CI"
)
// AssetOrderField represents asset order field.
type AssetOrderField string
// Asset order field.
const (
AssetOrderFieldID AssetOrderField = "ID"
AssetOrderFieldName AssetOrderField = "NAME"
AssetOrderFieldPlatform AssetOrderField = "PLATFORM"
AssetOrderFieldScore AssetOrderField = "SCORE"
AssetOrderFieldLastUpdated AssetOrderField = "LAST_UPDATED"
)
// AssetOverviewReferenceTypeEnum represents an enumeration of the possible reference types for a item for an asset overview.
type AssetOverviewReferenceTypeEnum string
// An enumeration of the possible reference types for a item for an asset overview.
const (
AssetOverviewReferenceTypeEnumAsset AssetOverviewReferenceTypeEnum = "ASSET"
AssetOverviewReferenceTypeEnumIntegration AssetOverviewReferenceTypeEnum = "INTEGRATION"
)
// AssetReportQueryOrderField represents asset report query order field.
type AssetReportQueryOrderField string
// Asset report query order field.
const (
AssetReportQueryOrderFieldSeverity AssetReportQueryOrderField = "SEVERITY"
AssetReportQueryOrderFieldTitle AssetReportQueryOrderField = "TITLE"
AssetReportQueryOrderFieldScore AssetReportQueryOrderField = "SCORE"
)
// AssetSearchOrderField
type AssetSearchOrderField string
const (
AssetSearchOrderFieldID AssetSearchOrderField = "ID"
AssetSearchOrderFieldName AssetSearchOrderField = "NAME"
)
// AssetState represents asset state.
type AssetState string
// Asset state.
const (
AssetStateUnknown AssetState = "UNKNOWN"
AssetStateError AssetState = "ERROR"
AssetStateDeleted AssetState = "DELETED"
AssetStatePending AssetState = "PENDING"
AssetStateRunning AssetState = "RUNNING"
AssetStateStopping AssetState = "STOPPING"
AssetStateStopped AssetState = "STOPPED"
AssetStateShutdown AssetState = "SHUTDOWN"
AssetStateTerminated AssetState = "TERMINATED"
AssetStateReboot AssetState = "REBOOT"
AssetStateOnline AssetState = "ONLINE"
AssetStateOffline AssetState = "OFFLINE"
)
// AssetSummaryOrderField represents asset summary order field.
type AssetSummaryOrderField string
// Asset summary order field.
const (
AssetSummaryOrderFieldID AssetSummaryOrderField = "ID"
AssetSummaryOrderFieldTitle AssetSummaryOrderField = "TITLE"
AssetSummaryOrderFieldPublished AssetSummaryOrderField = "PUBLISHED"
AssetSummaryOrderFieldModified AssetSummaryOrderField = "MODIFIED"
AssetSummaryOrderFieldScore AssetSummaryOrderField = "SCORE"
)
// AssetUrlStatsCategory
type AssetUrlStatsCategory string
const (
AssetUrlStatsCategoryUnscored AssetUrlStatsCategory = "UNSCORED"
AssetUrlStatsCategoryOk AssetUrlStatsCategory = "OK"
AssetUrlStatsCategoryLow AssetUrlStatsCategory = "LOW"
AssetUrlStatsCategoryMedium AssetUrlStatsCategory = "MEDIUM"
AssetUrlStatsCategoryHigh AssetUrlStatsCategory = "HIGH"
AssetUrlStatsCategoryCritical AssetUrlStatsCategory = "CRITICAL"
)
// AssetUrlStatsScope
type AssetUrlStatsScope string
const (
AssetUrlStatsScopeAll AssetUrlStatsScope = "ALL" // Score based on vulnerabilities and security.
AssetUrlStatsScopeVulnerabilities AssetUrlStatsScope = "VULNERABILITIES" // Score based on vulnerabilities.
AssetUrlStatsScopeSecurity AssetUrlStatsScope = "SECURITY" // Score based on security.
)
// AuditLogOrderField
type AuditLogOrderField string
const (
AuditLogOrderFieldTimestamp AuditLogOrderField = "TIMESTAMP"
)
// AzureDevopsTicketContextType represents the type of the ticket context.
type AzureDevopsTicketContextType string
// The type of the ticket context.
const (
AzureDevopsTicketContextTypeProjects AzureDevopsTicketContextType = "PROJECTS" // The ticket context for Azure Devops projects.
)
// BucketOutputType represents format of the reports for the bucket.
type BucketOutputType string
// Format of the reports for the bucket.
const (
BucketOutputTypeUnknown BucketOutputType = "UNKNOWN"
BucketOutputTypeCsv BucketOutputType = "CSV"
BucketOutputTypeJsonl BucketOutputType = "JSONL"
)
// CaseRefStatus represents case reference status.
type CaseRefStatus string
// Case reference status.
const (
CaseRefStatusOpen CaseRefStatus = "OPEN"
CaseRefStatusClosed CaseRefStatus = "CLOSED"
)
// CaseStatus represents case status.
type CaseStatus string
// Case status.
const (
CaseStatusPending CaseStatus = "PENDING"
CaseStatusOpen CaseStatus = "OPEN"
CaseStatusClosed CaseStatus = "CLOSED"
CaseStatusError CaseStatus = "ERROR"
)
// CatalogType represents type of the object.
type CatalogType string
// Type of the object.
const (
CatalogTypeAll CatalogType = "ALL"
CatalogTypePolicy CatalogType = "POLICY"
CatalogTypeQuerypack CatalogType = "QUERYPACK"
CatalogTypeQuery CatalogType = "QUERY"
)
// CheckScoreOrderField represents asset order field.
type CheckScoreOrderField string
// Asset order field.
const (
CheckScoreOrderFieldAssetName CheckScoreOrderField = "ASSET_NAME"
CheckScoreOrderFieldScore CheckScoreOrderField = "SCORE"
CheckScoreOrderFieldLastUpdated CheckScoreOrderField = "LAST_UPDATED"
)
// CheckState represents check state.
type CheckState string
// Check state.
const (
CheckStateActive CheckState = "ACTIVE"
CheckStateSnoozed CheckState = "SNOOZED"
CheckStateDisabled CheckState = "DISABLED"
)
// ChecksOrderField represents checks order field.
type ChecksOrderField string
// Checks order field.
const (
ChecksOrderFieldAssetsCount ChecksOrderField = "ASSETS_COUNT"
ChecksOrderFieldName ChecksOrderField = "NAME"
ChecksOrderFieldCompletion ChecksOrderField = "COMPLETION"
)
// CicdProjectOrderField
type CicdProjectOrderField string
const (
CicdProjectOrderFieldName CicdProjectOrderField = "NAME"
)
// ClientIntegrationType represents type of the client integration.
type ClientIntegrationType string
// Type of the client integration.
const (
ClientIntegrationTypeUnknown ClientIntegrationType = "UNKNOWN"
ClientIntegrationTypeK8s ClientIntegrationType = "K8S"
ClientIntegrationTypeAws ClientIntegrationType = "AWS"
ClientIntegrationTypeManagedClient ClientIntegrationType = "MANAGED_CLIENT"
ClientIntegrationTypeAzure ClientIntegrationType = "AZURE"
ClientIntegrationTypeMs365 ClientIntegrationType = "MS365"
ClientIntegrationTypeGcp ClientIntegrationType = "GCP"
ClientIntegrationTypeGoogleWorkspace ClientIntegrationType = "GOOGLE_WORKSPACE"
ClientIntegrationTypeOkta ClientIntegrationType = "OKTA"
ClientIntegrationTypeBigquery ClientIntegrationType = "BIGQUERY"
ClientIntegrationTypeSnowflake ClientIntegrationType = "SNOWFLAKE"
ClientIntegrationTypeAwsS3 ClientIntegrationType = "AWS_S3"
ClientIntegrationTypeS3 ClientIntegrationType = "S3"
ClientIntegrationTypeHostedSlack ClientIntegrationType = "HOSTED_SLACK"
ClientIntegrationTypeGitHub ClientIntegrationType = "GITHUB"
ClientIntegrationTypeGitLab ClientIntegrationType = "GITLAB"
ClientIntegrationTypeGcsBucket ClientIntegrationType = "GCS_BUCKET"
ClientIntegrationTypePostgres ClientIntegrationType = "POSTGRES"
ClientIntegrationTypeOci ClientIntegrationType = "OCI"
ClientIntegrationTypeTicketSystemJira ClientIntegrationType = "TICKET_SYSTEM_JIRA"
ClientIntegrationTypeAwsHosted ClientIntegrationType = "AWS_HOSTED"
ClientIntegrationTypeAzureBlob ClientIntegrationType = "AZURE_BLOB"
ClientIntegrationTypeHost ClientIntegrationType = "HOST"
ClientIntegrationTypeTicketSystemEmail ClientIntegrationType = "TICKET_SYSTEM_EMAIL"
ClientIntegrationTypeTicketSystemZendesk ClientIntegrationType = "TICKET_SYSTEM_ZENDESK"
ClientIntegrationTypeMicrosoftDefender ClientIntegrationType = "MICROSOFT_DEFENDER"
ClientIntegrationTypeTicketSystemGitHub ClientIntegrationType = "TICKET_SYSTEM_GITHUB"
ClientIntegrationTypeTicketSystemGitLab ClientIntegrationType = "TICKET_SYSTEM_GITLAB"
ClientIntegrationTypeShodan ClientIntegrationType = "SHODAN"
ClientIntegrationTypeTicketSystemAzureDevOps ClientIntegrationType = "TICKET_SYSTEM_AZURE_DEVOPS"
ClientIntegrationTypeSentinelOne ClientIntegrationType = "SENTINEL_ONE"
)
// ComparisonOperator represents comparison operators for filtering.
type ComparisonOperator string
// Comparison operators for filtering.
const (
ComparisonOperatorGt ComparisonOperator = "GT" // Greater than.
ComparisonOperatorLt ComparisonOperator = "LT" // Less than.
)
// ComplianceAssetOrderField represents compliance asset order field.
type ComplianceAssetOrderField string
// Compliance asset order field.
const (
ComplianceAssetOrderFieldID ComplianceAssetOrderField = "ID"
ComplianceAssetOrderFieldName ComplianceAssetOrderField = "NAME"
ComplianceAssetOrderFieldPlatform ComplianceAssetOrderField = "PLATFORM"
ComplianceAssetOrderFieldCompletion ComplianceAssetOrderField = "COMPLETION"
ComplianceAssetOrderFieldLastUpdated ComplianceAssetOrderField = "LAST_UPDATED"
)
// ComplianceFrameworkMutationAction represents compliance framework mutation action.
type ComplianceFrameworkMutationAction string
// Compliance framework mutation action.
const (
ComplianceFrameworkMutationActionEnable ComplianceFrameworkMutationAction = "ENABLE"
ComplianceFrameworkMutationActionPreview ComplianceFrameworkMutationAction = "PREVIEW"
ComplianceFrameworkMutationActionDisable ComplianceFrameworkMutationAction = "DISABLE"
)
// ComplianceFrameworkState represents compliance framework state.
type ComplianceFrameworkState string
// Compliance framework state.
const (
ComplianceFrameworkStateActive ComplianceFrameworkState = "ACTIVE"
ComplianceFrameworkStatePreview ComplianceFrameworkState = "PREVIEW"
ComplianceFrameworkStateDisabled ComplianceFrameworkState = "DISABLED"
)
// ContentSearchResultItemOrderField represents order fields for content search results.
type ContentSearchResultItemOrderField string
// Order fields for content search results.
const (
ContentSearchResultItemOrderFieldName ContentSearchResultItemOrderField = "NAME"
)
// ControlScoreOrderField represents control Score order field.
type ControlScoreOrderField string
// Control Score order field.
const (
ControlScoreOrderFieldAssetName ControlScoreOrderField = "ASSET_NAME"
ControlScoreOrderFieldScore ControlScoreOrderField = "SCORE"
ControlScoreOrderFieldLastUpdated ControlScoreOrderField = "LAST_UPDATED"
)
// ControlState represents control state.
type ControlState string
// Control state.
const (
ControlStateActive ControlState = "ACTIVE"
ControlStateSnoozed ControlState = "SNOOZED"
ControlStateDisabled ControlState = "DISABLED"
ControlStateOutOfScope ControlState = "OUT_OF_SCOPE"
)
// ControlsOrderField represents controls order field.
type ControlsOrderField string
// Controls order field.
const (
ControlsOrderFieldID ControlsOrderField = "ID"
ControlsOrderFieldTitle ControlsOrderField = "TITLE"
ControlsOrderFieldCompletion ControlsOrderField = "COMPLETION"
ControlsOrderFieldChecks ControlsOrderField = "CHECKS"
ControlsOrderFieldAssets ControlsOrderField = "ASSETS"
ControlsOrderFieldExceptions ControlsOrderField = "EXCEPTIONS"
ControlsOrderFieldQueries ControlsOrderField = "QUERIES"
)
// CveOrderField represents cVE order fields.
type CveOrderField string
// CVE order fields.
const (
CveOrderFieldID CveOrderField = "ID"
CveOrderFieldTitle CveOrderField = "TITLE"
CveOrderFieldPublished CveOrderField = "PUBLISHED"
CveOrderFieldModified CveOrderField = "MODIFIED"
CveOrderFieldScore CveOrderField = "SCORE"
)
// CveState represents possible CVE states.
type CveState string
// Possible CVE states.
const (
CveStateInvalid CveState = "INVALID"
CveStatePublic CveState = "PUBLIC"
CveStateReserved CveState = "RESERVED"
CveStateReplacedBy CveState = "REPLACED_BY"
CveStateSplitFrom CveState = "SPLIT_FROM"
CveStateMergedTo CveState = "MERGED_TO"
)
// CveSummaryOrderField represents possible cve summary order field.
type CveSummaryOrderField string
// possible cve summary order field.
const (
CveSummaryOrderFieldID CveSummaryOrderField = "ID"
CveSummaryOrderFieldTitle CveSummaryOrderField = "TITLE"
CveSummaryOrderFieldPublished CveSummaryOrderField = "PUBLISHED"
CveSummaryOrderFieldModified CveSummaryOrderField = "MODIFIED"
CveSummaryOrderFieldScore CveSummaryOrderField = "SCORE"
CveSummaryOrderFieldRiskfactors CveSummaryOrderField = "RISKFACTORS"
)
// DataQueryOrderField represents data query order field.
type DataQueryOrderField string
// Data query order field.
const (
DataQueryOrderFieldAssetName DataQueryOrderField = "ASSET_NAME"
DataQueryOrderFieldLastUpdated DataQueryOrderField = "LAST_UPDATED"
)
// DocumentFormat represents document format.
type DocumentFormat string
// Document format.
const (
DocumentFormatPdf DocumentFormat = "PDF"
)
// DocumentStatus represents document status.
type DocumentStatus string
// Document status.
const (
DocumentStatusQueued DocumentStatus = "QUEUED"
DocumentStatusRunning DocumentStatus = "RUNNING"
DocumentStatusCompleted DocumentStatus = "COMPLETED"
DocumentStatusFailed DocumentStatus = "FAILED"
)
// DocumentType represents document type.
type DocumentType string
// Document type.
const (
DocumentTypeFrameworkReport DocumentType = "FRAMEWORK_REPORT"
DocumentTypeControlReport DocumentType = "CONTROL_REPORT"
)
// EOLStatus represents end-of-life status.
type EOLStatus string
// End-of-life status.
const (
EOLStatusScheduled EOLStatus = "SCHEDULED"
EOLStatusEol EOLStatus = "EOL"
)
// EmailPreferenceList
type EmailPreferenceList string
const (
EmailPreferenceListNewsletterGeneral EmailPreferenceList = "NEWSLETTER_GENERAL"
EmailPreferenceListNewsletterProduct EmailPreferenceList = "NEWSLETTER_PRODUCT"
EmailPreferenceListNewsletterEvents EmailPreferenceList = "NEWSLETTER_EVENTS"
EmailPreferenceListNotificationWeeklyReports EmailPreferenceList = "NOTIFICATION_WEEKLY_REPORTS"
EmailPreferenceListNotificationSpaceAlerts EmailPreferenceList = "NOTIFICATION_SPACE_ALERTS"
)
// ExceptionMutationAction represents the action to apply to the exception.
type ExceptionMutationAction string
// The action to apply to the exception.
const (
ExceptionMutationActionEnable ExceptionMutationAction = "ENABLE"
ExceptionMutationActionDisable ExceptionMutationAction = "DISABLE"
ExceptionMutationActionSnooze ExceptionMutationAction = "SNOOZE"
ExceptionMutationActionOutOfScope ExceptionMutationAction = "OUT_OF_SCOPE" // Applicable only for compliance.
)
// ExceptionReviewAction represents the type of review action.
type ExceptionReviewAction string
// The type of review action.
const (
ExceptionReviewActionApproved ExceptionReviewAction = "APPROVED"
ExceptionReviewActionRejected ExceptionReviewAction = "REJECTED"
)
// ExceptionType represents the type of the exception.
type ExceptionType string
// The type of the exception.
const (
ExceptionTypeCompliance ExceptionType = "COMPLIANCE"
ExceptionTypeSecurity ExceptionType = "SECURITY"
ExceptionTypeCve ExceptionType = "CVE"
ExceptionTypeAdvisory ExceptionType = "ADVISORY"
)
// FormatType represents output format.
type FormatType string
// Output format.
const (
FormatTypeJSON FormatType = "JSON"
FormatTypeCsv FormatType = "CSV"
)
// GitPipelineKind
type GitPipelineKind string
const (
GitPipelineKindPullRequest GitPipelineKind = "PULL_REQUEST"
GitPipelineKindBranch GitPipelineKind = "BRANCH"
GitPipelineKindTag GitPipelineKind = "TAG"
GitPipelineKindUnknown GitPipelineKind = "UNKNOWN"
)
// GithubIntegrationType represents github integration type.
type GithubIntegrationType string
// Github integration type.
const (
GithubIntegrationTypeRepo GithubIntegrationType = "REPO"
GithubIntegrationTypeOrg GithubIntegrationType = "ORG"
)
// GitlabIntegrationType represents gitlab configuration options.
type GitlabIntegrationType string
// Gitlab configuration options.
const (
GitlabIntegrationTypeGroup GitlabIntegrationType = "GROUP" // denotes a limiting group for the integration, we do not want to discover groups not related to this group.
GitlabIntegrationTypeNone GitlabIntegrationType = "NONE" // nothing is limited, discover all groups.
)
// Grade represents deprecated, use Score.grade instead.
type Grade string
// deprecated, use Score.grade instead.
const (
GradeA Grade = "A"
GradeB Grade = "B"
GradeC Grade = "C"
GradeD Grade = "D"
GradeF Grade = "F"
GradeU Grade = "U"
)
// ICON_IDS represents eNUM for icon ids.
type ICON_IDS string
// ENUM for icon ids.
const (
ICON_IDSDefault ICON_IDS = "DEFAULT"
ICON_IDSAix ICON_IDS = "AIX"
ICON_IDSAtlassian ICON_IDS = "ATLASSIAN"
ICON_IDSArista ICON_IDS = "ARISTA"
ICON_IDSArch ICON_IDS = "ARCH"
ICON_IDSManjaro ICON_IDS = "MANJARO"
ICON_IDSEquinix ICON_IDS = "EQUINIX"
ICON_IDSIpmi ICON_IDS = "IPMI"
ICON_IDSOpcua ICON_IDS = "OPCUA"
ICON_IDSVcd ICON_IDS = "VCD"
ICON_IDSRaspbian ICON_IDS = "RASPBIAN"
ICON_IDSKali ICON_IDS = "KALI"
ICON_IDSPop ICON_IDS = "POP"
ICON_IDSEuroLinux ICON_IDS = "EURO_LINUX"
ICON_IDSRockyLinux ICON_IDS = "ROCKY_LINUX"
ICON_IDSAlmaLinux ICON_IDS = "ALMA_LINUX"
ICON_IDSScientificLinux ICON_IDS = "SCIENTIFIC_LINUX"
ICON_IDSWrLinux ICON_IDS = "WR_LINUX"
ICON_IDSGentoo ICON_IDS = "GENTOO"
ICON_IDSUbios ICON_IDS = "UBIOS"
ICON_IDSBusybox ICON_IDS = "BUSYBOX"
ICON_IDSOpenwrt ICON_IDS = "OPENWRT"
ICON_IDSAws ICON_IDS = "AWS"
ICON_IDSAzure ICON_IDS = "AZURE"
ICON_IDSGcp ICON_IDS = "GCP"
ICON_IDSK8s ICON_IDS = "K8S"
ICON_IDSTerraform ICON_IDS = "TERRAFORM"
ICON_IDSGitHub ICON_IDS = "GITHUB"
ICON_IDSGitLab ICON_IDS = "GITLAB"
ICON_IDSOkta ICON_IDS = "OKTA"
ICON_IDSGoogleWorkspace ICON_IDS = "GOOGLE_WORKSPACE"
ICON_IDSMacos ICON_IDS = "MACOS"
ICON_IDSSlack ICON_IDS = "SLACK"
ICON_IDSWindows ICON_IDS = "WINDOWS"
ICON_IDSMs365 ICON_IDS = "MS365"
ICON_IDSDNS ICON_IDS = "DNS"
ICON_IDSOci ICON_IDS = "OCI"
ICON_IDSRedhat ICON_IDS = "REDHAT"
ICON_IDSAmazon ICON_IDS = "AMAZON"
ICON_IDSDebian ICON_IDS = "DEBIAN"
ICON_IDSUbuntu ICON_IDS = "UBUNTU"
ICON_IDSAlpine ICON_IDS = "ALPINE"
ICON_IDSOracle ICON_IDS = "ORACLE"
ICON_IDSSuse ICON_IDS = "SUSE"
ICON_IDSMicrosoft ICON_IDS = "MICROSOFT"
ICON_IDSMicrosoftEdge ICON_IDS = "MICROSOFT_EDGE"
ICON_IDSMicrosoftVisualStudioCode ICON_IDS = "MICROSOFT_VISUAL_STUDIO_CODE"
ICON_IDSMicrosoftDotnet ICON_IDS = "MICROSOFT_DOTNET"
ICON_IDSLinux ICON_IDS = "LINUX"
ICON_IDSLinuxMint ICON_IDS = "LINUX_MINT"
ICON_IDSFedora ICON_IDS = "FEDORA"
ICON_IDSCentos ICON_IDS = "CENTOS"
ICON_IDSVmware ICON_IDS = "VMWARE"
ICON_IDSVmwarePhoton ICON_IDS = "VMWARE_PHOTON"
ICON_IDSMozilla ICON_IDS = "MOZILLA"
ICON_IDSGoogleChrome ICON_IDS = "GOOGLE_CHROME"
ICON_IDSMozillaFirefox ICON_IDS = "MOZILLA_FIREFOX"
ICON_IDSCve ICON_IDS = "CVE"
ICON_IDSPolicy ICON_IDS = "POLICY"
ICON_IDSCheck ICON_IDS = "CHECK"
ICON_IDSOther ICON_IDS = "OTHER"
ICON_IDSRisk ICON_IDS = "RISK"
ICON_IDSAsset ICON_IDS = "ASSET"
ICON_IDSOperatingSystem ICON_IDS = "OPERATING_SYSTEM"
ICON_IDSNetworkDevices ICON_IDS = "NETWORK_DEVICES"
ICON_IDSDomainsAndHosts ICON_IDS = "DOMAINS_AND_HOSTS"
ICON_IDSContainers ICON_IDS = "CONTAINERS"
ICON_IDSIac ICON_IDS = "IAC"
)
// IntegrationMessageStatus represents integrationMessageStatus denotes the status of the message reported by the integration.
type IntegrationMessageStatus string
// IntegrationMessageStatus denotes the status of the message reported by the integration.
const (
IntegrationMessageStatusInfo IntegrationMessageStatus = "INFO"
IntegrationMessageStatusWarning IntegrationMessageStatus = "WARNING"
IntegrationMessageStatusError IntegrationMessageStatus = "ERROR"
)
// IntegrationType represents summary of client integrations.
type IntegrationType string
// Summary of client integrations.
const (
IntegrationTypeUnknown IntegrationType = "UNKNOWN"
IntegrationTypeManagedClient IntegrationType = "MANAGED_CLIENT"
IntegrationTypeK8s IntegrationType = "K8S"
IntegrationTypeAws IntegrationType = "AWS"
IntegrationTypeAzure IntegrationType = "AZURE"
IntegrationTypeMs365 IntegrationType = "MS365"
IntegrationTypeSlack IntegrationType = "SLACK"
IntegrationTypeMsteams IntegrationType = "MSTEAMS"
IntegrationTypeTelegram IntegrationType = "TELEGRAM"
IntegrationTypeHttppost IntegrationType = "HTTPPOST"
IntegrationTypeGcp IntegrationType = "GCP"
IntegrationTypeGoogleWorkspace IntegrationType = "GOOGLE_WORKSPACE"
IntegrationTypeOkta IntegrationType = "OKTA"
IntegrationTypeBigquery IntegrationType = "BIGQUERY"
IntegrationTypeSnowflake IntegrationType = "SNOWFLAKE"
IntegrationTypeAwsS3 IntegrationType = "AWS_S3"
IntegrationTypeS3 IntegrationType = "S3"
IntegrationTypeHostedSlack IntegrationType = "HOSTED_SLACK"
IntegrationTypeGitHub IntegrationType = "GITHUB"
IntegrationTypeGitLab IntegrationType = "GITLAB"
IntegrationTypeGcsBucket IntegrationType = "GCS_BUCKET"
IntegrationTypePostgres IntegrationType = "POSTGRES"
IntegrationTypeOci IntegrationType = "OCI"
IntegrationTypeTicketSystemJira IntegrationType = "TICKET_SYSTEM_JIRA"
IntegrationTypeAzureBlob IntegrationType = "AZURE_BLOB"
IntegrationTypeHost IntegrationType = "HOST"
IntegrationTypeAwsHosted IntegrationType = "AWS_HOSTED"
IntegrationTypeTicketSystemEmail IntegrationType = "TICKET_SYSTEM_EMAIL"
IntegrationTypeTicketSystemZendesk IntegrationType = "TICKET_SYSTEM_ZENDESK"
IntegrationTypeMicrosoftDefender IntegrationType = "MICROSOFT_DEFENDER"
IntegrationTypeTicketSystemGitHub IntegrationType = "TICKET_SYSTEM_GITHUB"
IntegrationTypeTicketSystemGitLab IntegrationType = "TICKET_SYSTEM_GITLAB"
IntegrationTypeShodan IntegrationType = "SHODAN"
IntegrationTypeTicketSystemAzureDevOps IntegrationType = "TICKET_SYSTEM_AZURE_DEVOPS"
IntegrationTypeSentinelOne IntegrationType = "SENTINEL_ONE"
)
// InvitationOrderField
type InvitationOrderField string
const (
InvitationOrderFieldCreated InvitationOrderField = "CREATED"
)
// InvitationState
type InvitationState string
const (
InvitationStatePending InvitationState = "PENDING"
InvitationStateAccepted InvitationState = "ACCEPTED"
InvitationStateDeclined InvitationState = "DECLINED"
InvitationStateCanceled InvitationState = "CANCELED"
)
// JiraTicketContextType represents the type of the ticket context.
type JiraTicketContextType string
// The type of the ticket context.
const (
JiraTicketContextTypeProjects JiraTicketContextType = "PROJECTS" // The ticket context for Jira projects.
JiraTicketContextTypeUsers JiraTicketContextType = "USERS" // The ticket context for Jira users.
)
// K8sScanNodesStyle represents k8s node scanning style.
type K8sScanNodesStyle string
// K8s node scanning style.
const (
K8sScanNodesStyleUnknown K8sScanNodesStyle = "UNKNOWN"
K8sScanNodesStyleCronjob K8sScanNodesStyle = "CRONJOB"
K8sScanNodesStyleDeployment K8sScanNodesStyle = "DEPLOYMENT"
K8sScanNodesStyleDaemonset K8sScanNodesStyle = "DAEMONSET"
)
// LibraryItemType represents libraryItemType.
type LibraryItemType string
// LibraryItemType.
const (
LibraryItemTypeAdvisory LibraryItemType = "ADVISORY"
LibraryItemTypeCve LibraryItemType = "CVE"
LibraryItemTypeExploit LibraryItemType = "EXPLOIT"
)
// LibraryOrderField represents library order field.
type LibraryOrderField string
// Library order field.
const (
LibraryOrderFieldID LibraryOrderField = "ID"
LibraryOrderFieldTitle LibraryOrderField = "TITLE"
LibraryOrderFieldPublished LibraryOrderField = "PUBLISHED"
LibraryOrderFieldModified LibraryOrderField = "MODIFIED"
LibraryOrderFieldScore LibraryOrderField = "SCORE"
)
// LibraryQueryResolution represents library query resolution.
type LibraryQueryResolution string
// Library query resolution.
const (
LibraryQueryResolutionYear LibraryQueryResolution = "YEAR"
LibraryQueryResolutionMonth LibraryQueryResolution = "MONTH"
)
// ListFrameworksFilterState
type ListFrameworksFilterState string
const (
ListFrameworksFilterStateActive ListFrameworksFilterState = "ACTIVE"
ListFrameworksFilterStateAvailable ListFrameworksFilterState = "AVAILABLE"
)
// MembershipOrderField
type MembershipOrderField string
const (
MembershipOrderFieldName MembershipOrderField = "NAME"
)
// MqueryAssetDataFormat represents mquery asset data format.
type MqueryAssetDataFormat string
// Mquery asset data format.
const (
MqueryAssetDataFormatJSON MqueryAssetDataFormat = "JSON"
)
// MqueryState represents mquery state.
type MqueryState string
// Mquery state.
const (
MqueryStateEnabled MqueryState = "ENABLED"
MqueryStateDisabled MqueryState = "DISABLED"
MqueryStateIgnored MqueryState = "IGNORED"
MqueryStateSnoozed MqueryState = "SNOOZED"
)
// MqueryType represents mquery type.
type MqueryType string
// Mquery type.
const (
MqueryTypeData MqueryType = "DATA"
MqueryTypeScoring MqueryType = "SCORING"
)
// MvdEntryType represents mVD entry type.
type MvdEntryType string
// MVD entry type.
const (
MvdEntryTypeAdvisory MvdEntryType = "ADVISORY"
MvdEntryTypeCve MvdEntryType = "CVE"
)
// MvdOrderField represents mVD order field.
type MvdOrderField string
// MVD order field.
const (
MvdOrderFieldID MvdOrderField = "ID"
MvdOrderFieldTitle MvdOrderField = "TITLE"
MvdOrderFieldPublished MvdOrderField = "PUBLISHED"
MvdOrderFieldModified MvdOrderField = "MODIFIED"
MvdOrderFieldScore MvdOrderField = "SCORE"
)
// OrderDirection represents defines the possible directions in which to sort a list of items.
type OrderDirection string
// Defines the possible directions in which to sort a list of items.
const (
OrderDirectionAsc OrderDirection = "ASC" // Ascending order. For example, from A to Z or from lowest to highest.
OrderDirectionDesc OrderDirection = "DESC" // Descending order. For example, from Z to A or from highest to lowest.
)
// PackageManager represents remediation script type.
type PackageManager string
// Remediation script type.
const (
PackageManagerDpkg PackageManager = "DPKG" // DPKG.
PackageManagerYum PackageManager = "YUM" // YUM.
PackageManagerDnf PackageManager = "DNF" // DNF.
PackageManagerZypper PackageManager = "ZYPPER" // ZYPPER.
PackageManagerPowershell PackageManager = "POWERSHELL" // POWERSHELL.
)
// PackageScoresOrderField represents packageScores order fields.
type PackageScoresOrderField string
// PackageScores order fields.
const (
PackageScoresOrderFieldScore PackageScoresOrderField = "SCORE"
PackageScoresOrderFieldAssetName PackageScoresOrderField = "ASSET_NAME"
PackageScoresOrderFieldLastUpdated PackageScoresOrderField = "LAST_UPDATED"
PackageScoresOrderFieldRiskFactors PackageScoresOrderField = "RISK_FACTORS"
PackageScoresOrderFieldFirstFound PackageScoresOrderField = "FIRST_FOUND"
PackageScoresOrderFieldPackageName PackageScoresOrderField = "PACKAGE_NAME"
PackageScoresOrderFieldRiskScore PackageScoresOrderField = "RISK_SCORE"
)
// PackageType represents possible package types.
type PackageType string
// possible package types.
const (
PackageTypeOsPackage PackageType = "OS_PACKAGE"
PackageTypeApplication PackageType = "APPLICATION"
)
// PackagesOrderField represents possible package order fields.
type PackagesOrderField string
// possible package order fields.
const (
PackagesOrderFieldName PackagesOrderField = "NAME"
PackagesOrderFieldScore PackagesOrderField = "SCORE"
PackagesOrderFieldFirstFound PackagesOrderField = "FIRST_FOUND"
PackagesOrderFieldRiskFactors PackagesOrderField = "RISK_FACTORS"
)
// PlatformKind represents platform kind.
type PlatformKind string
// Platform kind.
const (
PlatformKindUnknown PlatformKind = "UNKNOWN"
PlatformKindVirtualMachineImage PlatformKind = "VIRTUAL_MACHINE_IMAGE"
PlatformKindContainerImage PlatformKind = "CONTAINER_IMAGE"
PlatformKindCode PlatformKind = "CODE"
PlatformKindPackage PlatformKind = "PACKAGE"
PlatformKindVirtualMachine PlatformKind = "VIRTUAL_MACHINE"
PlatformKindContainer PlatformKind = "CONTAINER"
PlatformKindProcess PlatformKind = "PROCESS"
PlatformKindAPI PlatformKind = "API"
PlatformKindBareMetal PlatformKind = "BARE_METAL"
)
// PolicyAction represents policy action.
type PolicyAction string
// Policy action.
const (
PolicyActionActive PolicyAction = "ACTIVE"
PolicyActionIgnore PolicyAction = "IGNORE"
)
// PolicyReportEntryState represents policy report entry state.
type PolicyReportEntryState string
// Policy report entry state.
const (
PolicyReportEntryStatePass PolicyReportEntryState = "PASS"
PolicyReportEntryStateFail PolicyReportEntryState = "FAIL"
PolicyReportEntryStateIgnore PolicyReportEntryState = "IGNORE"
PolicyReportEntryStateError PolicyReportEntryState = "ERROR"
)
// PolicyReportMquerySummaryOrderField represents policy report mquery summary order field.
type PolicyReportMquerySummaryOrderField string
// Policy report mquery summary order field.
const (
PolicyReportMquerySummaryOrderFieldID PolicyReportMquerySummaryOrderField = "ID"