Documentation ¶
Index ¶
Constants ¶
View Source
const AnalyticsV2EventSchema = `` /* 12260-byte string literal not displayed */
TODO: this should be dynamically fetched if possible; it is owned by Analytics API not by GAF
View Source
const ScanDoneEventSchema = `` /* 4129-byte string literal not displayed */
View Source
const TestSummarySchema = `` /* 1141-byte string literal not displayed */
Variables ¶
View Source
var DEFAULT_SEVERITIES = []string{"low", "medium", "high", "critical"}
Functions ¶
This section is empty.
Types ¶
type ScanDoneEvent ¶
type ScanDoneEvent struct { Data struct { Type string `json:"type"` Attributes struct { DeviceId string `json:"device_id"` Application string `json:"application"` ApplicationVersion string `json:"application_version"` Os string `json:"os"` Arch string `json:"arch"` IntegrationName string `json:"integration_name"` IntegrationVersion string `json:"integration_version"` IntegrationEnvironment string `json:"integration_environment"` IntegrationEnvironmentVersion string `json:"integration_environment_version"` EventType string `json:"event_type"` Status string `json:"status"` ScanType string `json:"scan_type"` UniqueIssueCount UniqueIssueCount `json:"unique_issue_count"` DurationMs string `json:"duration_ms"` TimestampFinished time.Time `json:"timestamp_finished"` Path string `json:"path,omitempty"` } `json:"attributes"` } `json:"data"` }
type TestSummary ¶
type TestSummary struct { Results []TestSummaryResult `json:"results"` SeverityOrderAsc []string `json:"severity_order_asc,omitempty"` Type string `json:"type"` Artifacts int `json:"artifacts"` Path string `json:"path"` }
func NewTestSummary ¶
func NewTestSummary(t string, p string) *TestSummary
type TestSummaryResult ¶
Click to show internal directories.
Click to hide internal directories.