MCPcopy Create free account
hub / github.com/dagger/dagger / currentWorkspaceLockBinding

Method currentWorkspaceLockBinding

engine/server/session.go:1677–1690  ·  view source on GitHub ↗
(client *daggerClient)

Source from the content-addressed store, hash-verified

1675}
1676
1677func (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
1692func (srv *Server) loadWorkspaceLockStateLocked(
1693 ctx context.Context,

Callers 2

CurrentWorkspaceLockMethod · 0.95

Calls 2

workspaceLockPathFunction · 0.85
HostPathMethod · 0.80

Tested by

no test coverage detected