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

Function WorkspaceIdentityFromWorkspace

coderd/database/modelmethods.go:955–966  ·  view source on GitHub ↗
(w Workspace)

Source from the content-addressed store, hash-verified

953}
954
955func WorkspaceIdentityFromWorkspace(w Workspace) WorkspaceIdentity {
956 return WorkspaceIdentity{
957 ID: w.ID,
958 OwnerID: w.OwnerID,
959 OrganizationID: w.OrganizationID,
960 TemplateID: w.TemplateID,
961 Name: w.Name,
962 OwnerUsername: w.OwnerUsername,
963 TemplateName: w.TemplateName,
964 AutostartSchedule: w.AutostartSchedule,
965 }
966}
967
968// A workspace agent belongs to the owner of the associated workspace.
969func (r GetWorkspaceAgentAndWorkspaceByIDRow) RBACObject() rbac.Object {

Callers 4

postWorkspaceUsageMethod · 0.92
UpdateStatsMethod · 0.92
ReportConnectionMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected