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

Method GetIndex

storage/github/github.go:274–277  ·  view source on GitHub ↗

GetIndex returns the checkup index

()

Source from the content-addressed store, hash-verified

272
273// GetIndex returns the checkup index
274func (gh *Storage) GetIndex() (map[string]int64, error) {
275 m, _, e := gh.readIndex()
276 return m, e
277}
278
279// Maintain deletes check files that are older than gh.CheckExpiry.
280func (gh *Storage) Maintain() error {

Callers

nothing calls this directly

Implementers 5

fakecheckup_test.go
Storagestorage/sql/sql.go
Storagestorage/s3/s3.go
Storagestorage/github/github.go
Storagestorage/fs/fs.go

Calls 1

readIndexMethod · 0.95

Tested by

no test coverage detected