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:
committed by
=Michael Hohn
parent
fc29fc5653
commit
2d88b351ff
13
pkg/qpstore/interfaces.go
Normal file
13
pkg/qpstore/interfaces.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user