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

Method GetTemplateByID

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

Source from the content-addressed store, hash-verified

698 GetTemplateAppInsightsByTemplate(ctx context.Context, arg GetTemplateAppInsightsByTemplateParams) ([]GetTemplateAppInsightsByTemplateRow, error)
699 GetTemplateAverageBuildTime(ctx context.Context, templateID uuid.NullUUID) (GetTemplateAverageBuildTimeRow, error)
700 GetTemplateByID(ctx context.Context, id uuid.UUID) (Template, error)
701 GetTemplateByOrganizationAndName(ctx context.Context, arg GetTemplateByOrganizationAndNameParams) (Template, error)
702 // GetTemplateInsights returns the aggregate user-produced usage of all
703 // workspaces in a given timeframe. The template IDs, active users, and

Callers 15

patchTemplateMetaMethod · 0.65
requestTemplateFunction · 0.65
putWorkspaceDormantMethod · 0.65
resolveAutostartMethod · 0.65
TestPatchTemplateMetaFunction · 0.65
chatStartWorkspaceMethod · 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 15

TestPatchTemplateMetaFunction · 0.52
insertRunningFunction · 0.52
TestProvisionerJobMethod · 0.52
TestTemplateMethod · 0.52
TestWorkspaceMethod · 0.52
TestTasksMethod · 0.52
TestSystemFunctionsMethod · 0.52
TestPrebuildsMethod · 0.52
TestGeneratorFunction · 0.52
withTemplateFunction · 0.52