MCPcopy
hub / github.com/kopia/kopia / NewMapStorage

Function NewMapStorage

internal/blobtesting/map.go:237–239  ·  view source on GitHub ↗

NewMapStorage returns an implementation of Storage backed by the contents of given map. Used primarily for testing.

(data DataMap, keyTime map[blob.ID]time.Time, timeNow func() time.Time)

Source from the content-addressed store, hash-verified

235// NewMapStorage returns an implementation of Storage backed by the contents of given map.
236// Used primarily for testing.
237func NewMapStorage(data DataMap, keyTime map[blob.ID]time.Time, timeNow func() time.Time) blob.Storage {
238 return NewMapStorageWithLimit(data, keyTime, timeNow, -1)
239}
240
241// NewMapStorageWithLimit returns an implementation of Storage backed by the contents of given map.
242// Used primarily for testing.

Calls 1

NewMapStorageWithLimitFunction · 0.85