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

Struct Workspace

coderd/database/models.go:5809–5842  ·  view source on GitHub ↗

Joins in the display name information such as username, avatar, and organization name.

Source from the content-addressed store, hash-verified

5807
5808// Joins in the display name information such as username, avatar, and organization name.
5809type Workspace struct {
5810 ID uuid.UUID `db:"id" json:"id"`
5811 CreatedAt time.Time `db:"created_at" json:"created_at"`
5812 UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
5813 OwnerID uuid.UUID `db:"owner_id" json:"owner_id"`
5814 OrganizationID uuid.UUID `db:"organization_id" json:"organization_id"`
5815 TemplateID uuid.UUID `db:"template_id" json:"template_id"`
5816 Deleted bool `db:"deleted" json:"deleted"`
5817 Name string `db:"name" json:"name"`
5818 AutostartSchedule sql.NullString `db:"autostart_schedule" json:"autostart_schedule"`
5819 Ttl sql.NullInt64 `db:"ttl" json:"ttl"`
5820 LastUsedAt time.Time `db:"last_used_at" json:"last_used_at"`
5821 DormantAt sql.NullTime `db:"dormant_at" json:"dormant_at"`
5822 DeletingAt sql.NullTime `db:"deleting_at" json:"deleting_at"`
5823 AutomaticUpdates AutomaticUpdates `db:"automatic_updates" json:"automatic_updates"`
5824 Favorite bool `db:"favorite" json:"favorite"`
5825 NextStartAt sql.NullTime `db:"next_start_at" json:"next_start_at"`
5826 GroupACL WorkspaceACL `db:"group_acl" json:"group_acl"`
5827 UserACL WorkspaceACL `db:"user_acl" json:"user_acl"`
5828 OwnerAvatarUrl string `db:"owner_avatar_url" json:"owner_avatar_url"`
5829 OwnerUsername string `db:"owner_username" json:"owner_username"`
5830 OwnerName string `db:"owner_name" json:"owner_name"`
5831 OrganizationName string `db:"organization_name" json:"organization_name"`
5832 OrganizationDisplayName string `db:"organization_display_name" json:"organization_display_name"`
5833 OrganizationIcon string `db:"organization_icon" json:"organization_icon"`
5834 OrganizationDescription string `db:"organization_description" json:"organization_description"`
5835 TemplateName string `db:"template_name" json:"template_name"`
5836 TemplateDisplayName string `db:"template_display_name" json:"template_display_name"`
5837 TemplateIcon string `db:"template_icon" json:"template_icon"`
5838 TemplateDescription string `db:"template_description" json:"template_description"`
5839 TaskID uuid.NullUUID `db:"task_id" json:"task_id"`
5840 GroupACLDisplayInfo WorkspaceACLDisplayInfo `db:"group_acl_display_info" json:"group_acl_display_info"`
5841 UserACLDisplayInfo WorkspaceACLDisplayInfo `db:"user_acl_display_info" json:"user_acl_display_info"`
5842}
5843
5844type WorkspaceAgent struct {
5845 ID uuid.UUID `db:"id" json:"id"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected