wip: port most of MirvaRequest from ghes-mirva-server
This commit is contained in:
committed by
=Michael Hohn
parent
f1dd151891
commit
198453ee90
@@ -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
6
types/tsto/storage.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package tsto
|
||||
|
||||
type DBLocation struct {
|
||||
Prefix string
|
||||
File string
|
||||
}
|
||||
Reference in New Issue
Block a user