Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0bde254

Browse files
committed
chore: add comment to IsPrebuild parameter on codersdk.Workspaces
1 parent450b3e1 commit0bde254

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎codersdk/workspaces.go‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,12 @@ type Workspace struct {
6666
AllowRenamesbool`json:"allow_renames"`
6767
Favoritebool`json:"favorite"`
6868
NextStartAt*time.Time`json:"next_start_at" format:"date-time"`
69-
IsPrebuildbool`json:"is_prebuild"`
69+
// IsPrebuild indicates whether the workspace is a prebuilt workspace.
70+
// Prebuilt workspaces are owned by the prebuilds system user and have specific behavior,
71+
// such as being managed differently from regular workspaces.
72+
// Once a prebuilt workspace is claimed by a user, it transitions to a regular workspace,
73+
// and IsPrebuild returns false.
74+
IsPrebuildbool`json:"is_prebuild"`
7075
}
7176

7277
func (wWorkspace)FullName()string {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp