( ctx context.Context, id toolspkg.ToolID, workspaceRef string, scope toolspkg.Scope, )
| 4939 | } |
| 4940 | |
| 4941 | func (n *daemonNativeTools) nativeNetworkWorkspaceID( |
| 4942 | ctx context.Context, |
| 4943 | id toolspkg.ToolID, |
| 4944 | workspaceRef string, |
| 4945 | scope toolspkg.Scope, |
| 4946 | ) (string, error) { |
| 4947 | resolved, err := n.nativeResolvedWorkspace(ctx, id, workspaceRef, scope) |
| 4948 | if err != nil { |
| 4949 | return "", err |
| 4950 | } |
| 4951 | workspaceID, err := nativeResolvedRegistryWorkspaceID(&resolved) |
| 4952 | if err != nil { |
| 4953 | return "", nativeNetworkInputError(id, err) |
| 4954 | } |
| 4955 | return workspaceID, nil |
| 4956 | } |
| 4957 | |
| 4958 | func nativeResolvedNetworkWorkspaceID(resolved *workspacepkg.ResolvedWorkspace) (string, error) { |
| 4959 | if resolved == nil { |
no test coverage detected