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

Method IsPrebuild

coderd/database/modelmethods.go:531–533  ·  view source on GitHub ↗

IsPrebuild returns true if the workspace is a prebuild workspace. A workspace is considered a prebuild if its owner is the prebuild system user.

()

Source from the content-addressed store, hash-verified

529// IsPrebuild returns true if the workspace is a prebuild workspace.
530// A workspace is considered a prebuild if its owner is the prebuild system user.
531func (w WorkspaceTable) IsPrebuild() bool {
532 return w.OwnerID == PrebuildsSystemUserID
533}
534
535// AsPrebuild returns the RBAC object corresponding to the workspace type.
536// If the workspace is a prebuild, it returns a prebuilt_workspace RBAC object.

Callers 1

AsPrebuildMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected