wip: port most of MirvaRequest from ghes-mirva-server

This commit is contained in:
Michael Hohn
2024-05-14 18:57:30 -07:00
committed by =Michael Hohn
parent f1dd151891
commit 198453ee90
6 changed files with 184 additions and 25 deletions

View File

View File

@@ -1,4 +1,9 @@
package mct
package tcmdr
import (
"github.com/advanced-security/mrvacommander/types/tsto"
co "github.com/hohn/ghes-mirva-server/common"
)
type DownloadResponse struct {
Repository DownloadRepo `json:"repository"`
@@ -217,3 +222,20 @@ type SubmitMsg struct {
QueryPack string `json:"query_pack"`
Repositories []string `json:"repositories"`
}
type SessionInfo struct {
ID int
Owner string
ControllerRepo string
QueryPack string
Language string
Repositories []co.OwnerRepo
AccessMismatchRepos []co.OwnerRepo
NotFoundRepos []co.OwnerRepo
NoCodeqlDBRepos []co.OwnerRepo
OverLimitRepos []co.OwnerRepo
AnalysisRepos *map[co.OwnerRepo]tsto.DBLocation
}

6
types/tsto/storage.go Normal file
View File

@@ -0,0 +1,6 @@
package tsto
type DBLocation struct {
Prefix string
File string
}