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

Method ProvisionerState

coderd/database/dbfake/dbfake.go:148–152  ·  view source on GitHub ↗

ProvisionerState sets the provisioner state for the workspace build. This is stored separately from the seed because ProvisionerState is not part of the WorkspaceBuild view struct.

(state []byte)

Source from the content-addressed store, hash-verified

146// This is stored separately from the seed because ProvisionerState is
147// not part of the WorkspaceBuild view struct.
148func (b WorkspaceBuildBuilder) ProvisionerState(state []byte) WorkspaceBuildBuilder {
149 //nolint: revive // returns modified struct
150 b.provisionerState = state
151 return b
152}
153
154// MarkPrebuiltWorkspaceClaim marks the build's provisioner job as the claim
155// of a prebuilt workspace, mirroring wsbuilder.MarkPrebuiltWorkspaceClaim.

Calls

no outgoing calls