qldbstore

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QL_DB_BUCKETNAME = "qldb"
)

XX: static types: split by type? Restrict the keys / values and centralize the common ones here

Variables

This section is empty.

Functions

This section is empty.

Types

type FilesystemCodeQLDatabaseStore

type FilesystemCodeQLDatabaseStore struct {
	// contains filtered or unexported fields
}

func NewLocalFilesystemCodeQLDatabaseStore

func NewLocalFilesystemCodeQLDatabaseStore(basePath string) *FilesystemCodeQLDatabaseStore

func (*FilesystemCodeQLDatabaseStore) FindAvailableDBs

func (store *FilesystemCodeQLDatabaseStore) FindAvailableDBs(analysisReposRequested []common.NameWithOwner) (
	notFoundRepos []common.NameWithOwner,
	foundRepos []common.NameWithOwner)

func (*FilesystemCodeQLDatabaseStore) GetDatabase

func (store *FilesystemCodeQLDatabaseStore) GetDatabase(location common.NameWithOwner) ([]byte, error)

type MinIOCodeQLDatabaseStore

type MinIOCodeQLDatabaseStore struct {
	// contains filtered or unexported fields
}

func NewMinIOCodeQLDatabaseStore

func NewMinIOCodeQLDatabaseStore(endpoint, id, secret string) (*MinIOCodeQLDatabaseStore, error)

func (*MinIOCodeQLDatabaseStore) FindAvailableDBs

func (store *MinIOCodeQLDatabaseStore) FindAvailableDBs(analysisReposRequested []common.NameWithOwner) (
	notFoundRepos []common.NameWithOwner,
	foundRepos []common.NameWithOwner)

func (*MinIOCodeQLDatabaseStore) GetDatabase

func (store *MinIOCodeQLDatabaseStore) GetDatabase(location common.NameWithOwner) ([]byte, error)

type Store

type Store interface {
	FindAvailableDBs(analysisReposRequested []common.NameWithOwner) (
		notFoundRepos []common.NameWithOwner,
		foundRepos []common.NameWithOwner)

	// GetDatabase: return the database as a byte slice for the specified repository.
	// The slice is a CodeQL database -- a zip archive to be processed by the CodeQL CLI.
	GetDatabase(location common.NameWithOwner) ([]byte, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL