(client *daggerClient)
| 1675 | } |
| 1676 | |
| 1677 | func (srv *Server) currentWorkspaceLockBinding(client *daggerClient) (*core.Workspace, workspaceLockKey, string, bool, error) { |
| 1678 | ws := client.workspace |
| 1679 | if ws == nil || ws.HostPath() == "" { |
| 1680 | return nil, workspaceLockKey{}, "", false, nil |
| 1681 | } |
| 1682 | lockPath, err := workspaceLockPath(ws) |
| 1683 | if err != nil { |
| 1684 | return nil, workspaceLockKey{}, "", false, err |
| 1685 | } |
| 1686 | return ws, workspaceLockKey{ |
| 1687 | ownerClientID: ws.ClientID, |
| 1688 | lockPath: lockPath, |
| 1689 | }, lockPath, true, nil |
| 1690 | } |
| 1691 | |
| 1692 | func (srv *Server) loadWorkspaceLockStateLocked( |
| 1693 | ctx context.Context, |
no test coverage detected