json_schemas

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.0 Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const AnalyticsV2EventSchema = `` /* 13768-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