MCPcopy Index your code
hub / github.com/coder/coder / Acquire

Method Acquire

coderd/files/cache.go:23–23  ·  view source on GitHub ↗
(ctx context.Context, db database.Store, fileID uuid.UUID)

Source from the content-addressed store, hash-verified

21
22type FileAcquirer interface {
23 Acquire(ctx context.Context, db database.Store, fileID uuid.UUID) (*CloseFS, error)
24}
25
26// New returns a file cache that will fetch files from a database

Callers 7

AcquireMethod · 0.65
AcquireMethod · 0.65
TestCancelledFetchFunction · 0.65
TestConcurrentFetchFunction · 0.65
TestCacheRBACFunction · 0.65
TestConcurrencyFunction · 0.65
TestReleaseFunction · 0.65

Implementers 6

Cachecoderd/files/cache.go
LeakCachecoderd/files/cache_internal_test.go
CacheClosercoderd/files/closer.go
CachedBridgePoolcoderd/aibridged/pool.go
MockPoolercoderd/aibridged/aibridgedmock/poolmoc
MockPoolerMockRecordercoderd/aibridged/aibridgedmock/poolmoc

Calls

no outgoing calls

Tested by 6

AcquireMethod · 0.52
TestCancelledFetchFunction · 0.52
TestConcurrentFetchFunction · 0.52
TestCacheRBACFunction · 0.52
TestConcurrencyFunction · 0.52
TestReleaseFunction · 0.52