MCPcopy
hub / github.com/kopia/kopia / mapStorage

Struct mapStorage

internal/blobtesting/map.go:20–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18type DataMap map[blob.ID][]byte
19
20type mapStorage struct {
21 blob.DefaultProviderImplementation
22 // +checklocks:mutex
23 data DataMap
24 // +checklocks:mutex
25 keyTime map[blob.ID]time.Time
26 // +checklocks:mutex
27 timeNow func() time.Time
28 // +checklocks:mutex
29 totalBytes int64
30 // +checklocksignore
31 limit int64
32 mutex sync.RWMutex
33}
34
35func (s *mapStorage) GetCapacity(ctx context.Context) (blob.Capacity, error) {
36 if err := ctx.Err(); err != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected