sarif

package
v0.0.0-...-9b912b9 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	Location Location `json:"location"`
}

type ArtifactLocation

type ArtifactLocation struct {
	Uri   string `json:"uri"`
	Index int    `json:"index"`
}

type Description

type Description struct {
	Text string `json:"text"`
}

type Driver

type Driver struct {
	Name           string `json:"name"`
	InformationUri string `json:"informationUri"`
	Rules          []Rule `json:"rules"`
}

type Location

type Location struct {
	Uri string `json:"uri"`
}

type Message

type Message struct {
	Text string `json:"text"`
}

type PhysicalLocation

type PhysicalLocation struct {
	ArtifactLocation ArtifactLocation `json:"artifactLocation"`
	Region           Region           `json:"region"`
}

type Property

type Property struct {
	Category string `json:"category"`
}

type Region

type Region struct {
	StartLine   int `json:"startLine"`
	StartColumn int `json:"startColumn"`
}

type Result

type Result struct {
	Level     string           `json:"level"`
	Message   Message          `json:"message"`
	Locations []ResultLocation `json:"locations"`
	RuleId    string           `json:"ruleId"`
	RuleIndex *int             `json:"ruleIndex,omitempty"`
}

type ResultLocation

type ResultLocation struct {
	PhysicalLocation PhysicalLocation `json:"physicalLocation"`
}

type Results

type Results struct {
	Version string `json:"version"`
	Schema  string `json:"$schema"`
	Runs    []Run  `json:"runs"`
}

type Rule

type Rule struct {
	Id               string      `json:"id"`
	ShortDescription Description `json:"shortDescription,omitempty"`
	HelpUri          string      `json:"helpUri,omitempty"`
	Properties       []Property  `json:"properties,omitempty"`
}

type Run

type Run struct {
	Tool      Tool       `json:"tool"`
	Artifacts []Artifact `json:"artifacts"`
	Results   []Result   `json:"results"`
}

type Tool

type Tool struct {
	Driver Driver `json:"driver"`
}

Jump to

Keyboard shortcuts

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