utils

package
v1.0.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(srcPath string, targetPath string) error

func DownloadDatabase

func DownloadDatabase(task models.DownloadTask) error

func DownloadResults

func DownloadResults(task models.DownloadTask) error

func DownloadWorker

func DownloadWorker(wg *sync.WaitGroup, taskChannel <-chan models.DownloadTask, resultChannel chan models.DownloadTask)

func FindPackRoot

func FindPackRoot(queryFile string) string

func FixPackFile

func FixPackFile(queryPackDir string, packRelativePath string) error

func GenerateQueryPack

func GenerateQueryPack(queryFile string, language string, additionalPacks string) (string, string, error)

func GetConfig

func GetConfig() (models.Config, error)

func GetConfigFilePath

func GetConfigFilePath() string

func GetRunDetails

func GetRunDetails(controller string, runId int) (map[string]interface{}, error)

func GetRunRepositoryDetails

func GetRunRepositoryDetails(controller string, runId int, nwo string) (map[string]interface{}, error)

func GetSessions

func GetSessions() (map[string]models.Session, error)

func GetSessionsFilePath

func GetSessionsFilePath() string

func GetSessionsStartingWith added in v1.0.7

func GetSessionsStartingWith(prefix string) ([]string, error)

func LoadRun added in v1.0.8

func LoadRun(id int) (string, []models.Run, string, error)

func LoadSession

func LoadSession(name string) (string, []models.Run, string, error)

func PackPacklist

func PackPacklist(dir string, includeQueries bool) []string

func ResolveQueries

func ResolveQueries(additionalPacks string, querySuite string) []string

func ResolveQueryId added in v1.0.8

func ResolveQueryId(queryFile string) (string, error)

func ResolveRepositories

func ResolveRepositories(listFile string, list string) ([]string, error)

func RunCodeQLCommand

func RunCodeQLCommand(additionalPacks string, combined bool, args ...string) ([]byte, error)

func SaveSession

func SaveSession(name string, controller string, runs []models.Run, language string, listFile string, list string, query string, count int) error

func SetConfigFilePath

func SetConfigFilePath(path string)

func SetSessionsFilePath

func SetSessionsFilePath(path string)

func SubmitRun

func SubmitRun(controller string, language string, repoChunk []string, bundle string) (int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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