Help us shape the future of Go! Take the 2026 Go Developer Survey

models

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 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 Config

type Config struct {
	Controller string `yaml:"controller"`
	ListFile   string `yaml:"list_file"`
	CodeQLPath string `yaml:"codeql_path"`
}

type DownloadTask

type DownloadTask struct {
	RunId      int
	Nwo        string
	Controller string
	Artifact   string
	OutputDir  string
	Language   string
}

type RepoWithFindings

type RepoWithFindings struct {
	Nwo   string `json:"nwo"`
	Count int    `json:"count"`
	RunId int    `json:"run_id"`
	Stars int    `json:"stars"`
}

type Results

type Results struct {
	Runs                                   []RunStatus        `json:"runs"`
	ResositoriesWithFindings               []RepoWithFindings `json:"repositories_with_findings"`
	TotalFindingsCount                     int                `json:"total_findings_count"`
	TotalSuccessfulScans                   int                `json:"total_successful_scans"`
	TotalFailedScans                       int                `json:"total_failed_scans"`
	TotalRepositoriesWithFindings          int                `json:"total_repositories_with_findings"`
	TotalSkippedRepositories               int                `json:"total_skipped_repositories"`
	TotalSkippedAccessMismatchRepositories int                `json:"total_skipped_access_mismatch_repositories"`
	TotalSkippedNotFoundRepositories       int                `json:"total_skipped_not_found_repositories"`
	TotalSkippedNoDatabaseRepositories     int                `json:"total_skipped_no_database_repositories"`
	TotalSkippedOverLimitRepositories      int                `json:"total_skipped_over_limit_repositories"`
}

type Run

type Run struct {
	Id    int    `yaml:"id"`
	Query string `yaml:"query"`
}

type RunStatus

type RunStatus struct {
	Id            int    `json:"id"`
	Query         string `json:"query"`
	Status        string `json:"status"`
	FailureReason string `json:"failure_reason"`
}

type Session

type Session struct {
	Name            string    `yaml:"name" json:"name"`
	Timestamp       time.Time `yaml:"timestamp" json:"timestamp"`
	Runs            []Run     `yaml:"runs" json:"runs"`
	Controller      string    `yaml:"controller" json:"controller"`
	ListFile        string    `yaml:"list_file" json:"list_file"`
	List            string    `yaml:"list" json:"list"`
	Language        string    `yaml:"language" json:"language"`
	RepositoryCount int       `yaml:"repository_count" json:"repository_count"`
}

Jump to

Keyboard shortcuts

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