(w Workspace)
| 953 | } |
| 954 | |
| 955 | func 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. |
| 969 | func (r GetWorkspaceAgentAndWorkspaceByIDRow) RBACObject() rbac.Object { |
no outgoing calls
no test coverage detected