Introduce structs/interfacess for new storage units

This commit simply splits the interfaces but introduces no new structs

     - Introduce the QueryPackStore, mrvacommander/pkg/qpstore
     - Introduce the CodeQL database store, pkg/qldbstore/interfaces.go
This commit is contained in:
Michael Hohn
2024-06-11 14:16:41 -07:00
committed by =Michael Hohn
parent fc29fc5653
commit 2d88b351ff
8 changed files with 176 additions and 31 deletions

13
pkg/qpstore/interfaces.go Normal file
View File

@@ -0,0 +1,13 @@
package qpstore
import (
"mrvacommander/pkg/common"
"mrvacommander/pkg/qldbstore"
)
type Storage interface {
NextID() int
SaveQueryPack(tgz []byte, sessionID int) (storagePath string, error error)
FindAvailableDBs(analysisReposRequested []common.OwnerRepo) (not_found_repos []common.OwnerRepo,
analysisRepos *map[common.OwnerRepo]qldbstore.DBLocation)
}