-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2802848
commit 78c1120
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package armotypes | ||
|
||
import "time" | ||
|
||
type KPIPostureScanWrapper struct { | ||
ReportType string `json:"reportType"` | ||
ReportPayload KPIPostureScan `json:"reportPayload"` | ||
} | ||
|
||
type KPIPostureScan struct { | ||
CustomerGUID string `json:"customerGUID"` | ||
ReportGUID string `json:"reportGUID"` | ||
Frameworks []string `json:"frameworks"` | ||
Timestamp time.Time `json:"timestamp"` | ||
ClusterName string `json:"clusterName"` | ||
SourceType string `json:"sourceType"` //yaml,helm,running - what we actually scanned | ||
OutputFormat string `json:"outputFormat"` // json,junit,prettyprint - output prefered by customers | ||
CICD int `json:"CICD"` // 0 -false , 1- true , 2- unknown | ||
IP string `json:"IP,omitempty"` | ||
} | ||
|
||
type KPIPLoginWrapper struct { | ||
ReportType string `json:"reportType"` | ||
ReportPayload KPIPostureScan `json:"reportPayload"` | ||
} | ||
|
||
type KPILogin struct { | ||
CustomerGUID string `json:"tennantGUID"` | ||
Timestamp time.Time `json:"timestamp"` | ||
Username string `json:"username"` | ||
Email string `json:"e-mail"` | ||
IP string `json:"IP,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters