sarif

package
v0.0.0-...-448f0e6 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactLocation

type ArtifactLocation struct {
	URI string `json:"uri,omitempty"`
}

type ContextRegion

type ContextRegion struct {
	Snippet   Snippet `json:"snippet,omitempty"`
	EndLine   int     `json:"endLine,omitempty"`
	StartLine int     `json:"startLine,omitempty"`
}

type Conversion

type Conversion struct {
	Tool       Tool       `json:"tool,omitempty"`
	Invocation Invocation `json:"invocation,omitempty"`
}

type Driver

type Driver struct {
	Name  string  `json:"name,omitempty"`
	Rules []Rules `json:"rules,omitempty"`
}

type Invocation

type Invocation struct {
	Arguments           []string         `json:"arguments,omitempty"`
	ExecutionSuccessful bool             `json:"executionSuccessful,omitempty"`
	CommandLine         string           `json:"commandLine,omitempty"`
	EndTimeUtc          time.Time        `json:"endTimeUtc,omitempty"`
	WorkingDirectory    WorkingDirectory `json:"workingDirectory,omitempty"`
}

type Invocations

type Invocations struct {
	ExecutionSuccessful bool             `json:"executionSuccessful,omitempty"`
	EndTimeUtc          time.Time        `json:"endTimeUtc,omitempty"`
	WorkingDirectory    WorkingDirectory `json:"workingDirectory,omitempty"`
}

type Locations

type Locations struct {
	PhysicalLocation PhysicalLocation `json:"physicalLocation,omitempty"`
}

type Message

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

type PhysicalLocation

type PhysicalLocation struct {
	Region           Region           `json:"region,omitempty"`
	ArtifactLocation ArtifactLocation `json:"artifactLocation,omitempty"`
	ContextRegion    ContextRegion    `json:"contextRegion,omitempty"`
}

type Properties

type Properties struct {
}

type Region

type Region struct {
	Snippet   Snippet `json:"snippet,omitempty"`
	StartLine int     `json:"startLine,omitempty"`
}

type Results

type Results struct {
	Message    Message           `json:"message,omitempty"`
	Level      string            `json:"level,omitempty"`
	Locations  []Locations       `json:"locations,omitempty"`
	Properties ResultsProperties `json:"properties,omitempty"`
	RuleID     string            `json:"ruleId,omitempty"`
	RuleIndex  int               `json:"ruleIndex,omitempty"`
}

type ResultsProperties

type ResultsProperties struct {
	IssueConfidence string `json:"issue_confidence,omitempty"`
	IssueSeverity   string `json:"issue_severity,omitempty"`
}

type Rules

type Rules struct {
	ID      string `json:"id,omitempty"`
	Name    string `json:"name,omitempty"`
	HelpURI string `json:"helpUri,omitempty"`
}

type Run

type Run struct {
	Tool        Tool          `json:"tool,omitempty"`
	Conversion  Conversion    `json:"conversion,omitempty"`
	Invocations []Invocations `json:"invocations,omitempty"`
	Properties  Properties    `json:"properties,omitempty"`
	Results     []Results     `json:"results,omitempty"`
}

type Sarif

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

type Snippet

type Snippet struct {
	Text string `json:"text,omitempty"`
}

type Tool

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

type WorkingDirectory

type WorkingDirectory struct {
	URI string `json:"uri,omitempty"`
}

Jump to

Keyboard shortcuts

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