Skip to content

Commit 2dec021

Browse files
authored
gateway: add GetHome (cs3org#39)
1 parent 342f8ef commit 2dec021

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

cs3/gateway/v0alpha/gateway.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ option php_namespace = "CS3\\GatewayV0Alpha";
3131
import "cs3/auth/v0alpha/auth.proto";
3232
import "cs3/storageprovider/v0alpha/resources.proto";
3333
import "cs3/storageprovider/v0alpha/storageprovider.proto";
34+
import "cs3/storageregistry/v0alpha/storageregistry.proto";
3435
import "cs3/types/types.proto";
3536
import "cs3/usershareprovider/v0alpha/usershareprovider.proto";
3637

@@ -155,6 +156,12 @@ service GatewayService {
155156
// Get the information for the given received share reference.
156157
// MUST return CODE_NOT_FOUND if the received share reference does not exist.
157158
rpc GetReceivedShare(cs3.usershareproviderv0alpha.GetReceivedShareRequest) returns (cs3.usershareproviderv0alpha.GetReceivedShareResponse);
159+
// *****************************************************************/
160+
// ************************ STORAGE REGISTRY ** ********************/
161+
// *****************************************************************/
162+
// Returns the home path for the given authenticated user.
163+
// When a user has access to multiple storage providers, one of them is the home.
164+
rpc GetHome(cs3.storageregistryv0alpha.GetHomeRequest) returns (cs3.storageregistryv0alpha.GetHomeResponse);
158165
}
159166

160167
message GetQuotaRequest {

docs/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2782,6 +2782,16 @@ <h3 id="cs3.gatewayv0alpha.GatewayService">GatewayService</h3>
27822782
MUST return CODE_NOT_FOUND if the received share reference does not exist.</p></td>
27832783
</tr>
27842784

2785+
<tr>
2786+
<td>GetHome</td>
2787+
<td><a href="#cs3.storageregistryv0alpha.GetHomeRequest">.cs3.storageregistryv0alpha.GetHomeRequest</a></td>
2788+
<td><a href="#cs3.storageregistryv0alpha.GetHomeResponse">.cs3.storageregistryv0alpha.GetHomeResponse</a></td>
2789+
<td><p>STORAGE REGISTRY ** ********************/
2790+
*****************************************************************/
2791+
Returns the home path for the given authenticated user.
2792+
When a user has access to multiple storage providers, one of them is the home.</p></td>
2793+
</tr>
2794+
27852795
</tbody>
27862796
</table>
27872797

0 commit comments

Comments
 (0)