(workspaceId string)
| 323 | } |
| 324 | |
| 325 | func (s *Server) GetWorkspaceInfo(workspaceId string) (*p.WorkspaceInfo, error) { |
| 326 | wsInfo := s.workspaceInfoProvider.WorkspaceInfo(workspaceId) |
| 327 | if wsInfo == nil { |
| 328 | if matched, _ := regexp.Match(workspaceIDRegex, []byte(workspaceId)); matched { |
| 329 | return nil, ErrWorkspaceNotFound |
| 330 | } |
| 331 | return nil, ErrWorkspaceIDInvalid |
| 332 | } |
| 333 | return wsInfo, nil |
| 334 | } |
| 335 | |
| 336 | func (s *Server) TrackSSHConnection(wsInfo *p.WorkspaceInfo, phase string, err error) { |
| 337 | // if we didn't find an associated user, we don't want to track |
no test coverage detected