utils

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 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(nwo string, language string, outputDir string) error

func DownloadResults

func DownloadResults(controller string, runId int, nwo string, outputDir string) 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(codeqlPath string, queryFile string, language 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 LoadSession

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

func PackPacklist

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

func ResolveQueries

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

func ResolveRepositories

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

func RunCodeQLCommand

func RunCodeQLCommand(codeqlPath 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