Documentation
¶
Index ¶
- Variables
- func GenerateResultsZipArchive(runQueryResult *RunQueryResult) ([]byte, error)
- type BQRSInfo
- type BqrsFilePaths
- type CodeQLCommandOutput
- type CodeqlCli
- type CreationMetadata
- type DatabaseMetadata
- type Query
- type QueryMetadata
- type QueryPackRunResults
- type ResolvedDatabase
- type ResultSet
- type RunQueryResult
- type Sarif
- type SarifOutputType
- type SarifRun
Constants ¶
This section is empty.
Variables ¶
View Source
var KnownResultSetNames = []string{"#select", "problems"}
Known result set names
Functions ¶
func GenerateResultsZipArchive ¶
func GenerateResultsZipArchive(runQueryResult *RunQueryResult) ([]byte, error)
Types ¶
type BqrsFilePaths ¶
type CodeQLCommandOutput ¶
type CreationMetadata ¶
type DatabaseMetadata ¶
type DatabaseMetadata struct {
CreationMetadata *CreationMetadata `yaml:"creationMetadata,omitempty"`
}
type Query ¶
type Query struct {
QueryPath string `json:"queryPath"`
QueryMetadata QueryMetadata `json:"queryMetadata"`
RelativeBqrsFilePath string `json:"relativeBqrsFilePath"`
BqrsInfo BQRSInfo `json:"bqrsInfo"`
}
type QueryMetadata ¶
type QueryPackRunResults ¶
type ResolvedDatabase ¶
type ResolvedDatabase struct {
SourceLocationPrefix string `json:"sourceLocationPrefix"`
}
type RunQueryResult ¶
type RunQueryResult struct {
ResultCount int
DatabaseSHA string
SourceLocationPrefix string
BqrsFilePaths BqrsFilePaths
SarifFilePath string
}
func RunQuery ¶
func RunQuery(database string, language queue.QueryLanguage, queryPackPath string, tempDir string) (*RunQueryResult, error)
type SarifOutputType ¶
type SarifOutputType string
const ( Problem SarifOutputType = "problem" PathProblem SarifOutputType = "path-problem" )
Click to show internal directories.
Click to hide internal directories.