mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
af2941bb92
Used in combination with https://github.com/coder/terraform-provider-coder/pull/396 This is required by both https://github.com/coder/coder/pull/17475 and https://github.com/coder/coder/pull/17571 Operators may need to conditionalize their templates to perform certain operations once a prebuilt workspace has been claimed. This value will **only** be set once a claim takes place and a subsequent `terraform apply` occurs. Any `terraform apply` runs thereafter will be indistinguishable from a normal run on a workspace. --------- Signed-off-by: Danny Kopping <dannykopping@gmail.com>
10 lines
243 B
Go
Generated
10 lines
243 B
Go
Generated
package proto
|
|
|
|
func (p PrebuiltWorkspaceBuildStage) IsPrebuild() bool {
|
|
return p == PrebuiltWorkspaceBuildStage_CREATE
|
|
}
|
|
|
|
func (p PrebuiltWorkspaceBuildStage) IsPrebuiltWorkspaceClaim() bool {
|
|
return p == PrebuiltWorkspaceBuildStage_CLAIM
|
|
}
|