(resolved *workspacepkg.ResolvedWorkspace)
| 4967 | } |
| 4968 | |
| 4969 | func nativeResolvedRegistryWorkspaceID(resolved *workspacepkg.ResolvedWorkspace) (string, error) { |
| 4970 | if resolved == nil { |
| 4971 | return "", errors.New("daemon: resolved workspace is required") |
| 4972 | } |
| 4973 | workspaceID := strings.TrimSpace(resolved.ID) |
| 4974 | if workspaceID == "" { |
| 4975 | return "", errors.New("daemon: resolved workspace registry id is empty") |
| 4976 | } |
| 4977 | return workspaceID, nil |
| 4978 | } |
| 4979 | |
| 4980 | func (n *daemonNativeTools) requireNativeSessionWorkspace( |
| 4981 | ctx context.Context, |
no outgoing calls
no test coverage detected