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

Method GetTemplateByOrganizationAndName

coderd/database/querier.go:701–701  ·  view source on GitHub ↗
(ctx context.Context, arg GetTemplateByOrganizationAndNameParams)

Source from the content-addressed store, hash-verified

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
704 // usage_seconds all reflect any usage in the template, including apps.

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 2

TestTemplateMethod · 0.52