json_schemas

package
v0.0.0-...-470703e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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

type TestSummaryResult struct {
	Severity string `json:"severity"`
	Total    int    `json:"total"`
	Open     int    `json:"open"`
	Ignored  int    `json:"ignored"`
}

type UniqueIssueCount

type UniqueIssueCount struct {
	Critical int `json:"critical"`
	High     int `json:"high"`
	Medium   int `json:"medium"`
	Low      int `json:"low"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL