workspaceRefFromClientMetadata returns the explicitly declared workspace binding, if present.
(clientMD *engine.ClientMetadata)
| 116 | // workspaceRefFromClientMetadata returns the explicitly declared workspace |
| 117 | // binding, if present. |
| 118 | func workspaceRefFromClientMetadata(clientMD *engine.ClientMetadata) (string, bool) { |
| 119 | if clientMD == nil { |
| 120 | return "", false |
| 121 | } |
| 122 | if clientMD.Workspace != nil { |
| 123 | return *clientMD.Workspace, true |
| 124 | } |
| 125 | return "", false |
| 126 | } |
| 127 | |
| 128 | // inheritWorkspaceBinding copies the nearest available parent workspace binding |
| 129 | // onto the current client. This keeps nested clients aligned with their parent |
no outgoing calls
no test coverage detected