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

Method GetFileByID

coderd/database/querier.go:475–475  ·  view source on GitHub ↗
(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

473 GetFailedWorkspaceBuildsByTemplateID(ctx context.Context, arg GetFailedWorkspaceBuildsByTemplateIDParams) ([]GetFailedWorkspaceBuildsByTemplateIDRow, error)
474 GetFileByHashAndCreator(ctx context.Context, arg GetFileByHashAndCreatorParams) (File, error)
475 GetFileByID(ctx context.Context, id uuid.UUID) (File, error)
476 // Get all templates that use a file.
477 GetFileTemplates(ctx context.Context, fileID uuid.UUID) ([]GetFileTemplatesRow, error)
478 // Fetches inbox notifications for a user filtered by templates and targets

Callers 14

fileByIDMethod · 0.65
fetchFunction · 0.65
TestCancelledFetchFunction · 0.65
TestConcurrentFetchFunction · 0.65
TestConcurrencyFunction · 0.65
TestReleaseFunction · 0.65
GetFileByIDMethod · 0.65
GetFileByIDMethod · 0.65
TestFileMethod · 0.65
TestGeneratorFunction · 0.65

Implementers 5

sqlQueriercoderd/database/db.go
queryMetricsStorecoderd/database/dbmetrics/querymetrics
queriercoderd/database/dbauthz/dbauthz.go
MockStorecoderd/database/dbmock/dbmock.go
MockStoreMockRecordercoderd/database/dbmock/dbmock.go

Calls

no outgoing calls

Tested by 7

TestCancelledFetchFunction · 0.52
TestConcurrentFetchFunction · 0.52
TestConcurrencyFunction · 0.52
TestReleaseFunction · 0.52
TestFileMethod · 0.52
TestGeneratorFunction · 0.52