MCPcopy
hub / github.com/sourcegraph/checkup / StorageReader

Interface StorageReader

interfaces.go:20–26  ·  view source on GitHub ↗

StorageReader can read results from the Storage.

Source from the content-addressed store, hash-verified

18
19// StorageReader can read results from the Storage.
20type StorageReader interface {
21 // Fetch returns the contents of a check file.
22 Fetch(checkFile string) ([]types.Result, error)
23 // GetIndex returns the storage index, as a map where keys are check
24 // result filenames and values are the associated check timestamps.
25 GetIndex() (map[string]int64, error)
26}
27
28// Maintainer can maintain a store of results by
29// deleting old check files that are no longer

Callers

nothing calls this directly

Implementers 3

Storagestorage/sql/sql.go
Storagestorage/github/github.go
Storagestorage/fs/fs.go

Calls

no outgoing calls

Tested by

no test coverage detected