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

Function New

coderd/wsbuilder/wsbuilder.go:148–150  ·  view source on GitHub ↗
(w database.Workspace, t database.WorkspaceTransition, uc UsageChecker)

Source from the content-addressed store, hash-verified

146}
147
148func New(w database.Workspace, t database.WorkspaceTransition, uc UsageChecker) Builder {
149 return Builder{workspace: w, trans: t, usageChecker: uc}
150}
151
152// Methods that customize the build are public, have a struct receiver and return a new Builder.
153

Callers 15

createWorkspaceFunction · 0.92
runOnceMethod · 0.92
TestBuilder_NoOptionsFunction · 0.92
TestBuilder_InitiatorFunction · 0.92
TestBuilder_BaggageFunction · 0.92
TestBuilder_ReasonFunction · 0.92

Calls

no outgoing calls

Tested by 11

TestBuilder_NoOptionsFunction · 0.74
TestBuilder_InitiatorFunction · 0.74
TestBuilder_BaggageFunction · 0.74
TestBuilder_ReasonFunction · 0.74