Conversation NamespaceService Crud Methods
Stages:
-
Client Implementation: gitlab-org/gitlab-ce!14274
RPC Endpoints:
NamespaceService::AddNamespace
NamespaceService::RemoveNamespace
NamespaceService::RenameNamespace
NamespaceService::FileExists
Known Client Routes:
- Known client endpoints
Gitlab::Shell namespace CRUD methods
Gitlab::Shell is part of gitlab-ce. This is about methods #add_namespace
, #rm_namespace
, #mv_namespace
.
In addition we should also migrate Gitlab::Shell#exists? while we are here.
service NamespaceService {
rpc AddNamespace(AddNamespaceRequest) returns (AddNamespaceResponse) {}
rpc RemoveNamespace(RemoveNamespaceRequest) returns (RemoveNamespaceResponse) {}
rpc RenameNamespace(RenameNamespaceRequest) returns (RenameNamespaceResponse) {}
rpc FileExists(FileExistsRequest) returns (FileExistsResponse) {}
}
message AddNamespaceRequest {
string storage_name = 1;
string name = 2;
}
message RemoveNamespaceRequest {
string storage_name = 1;
string name = 2;
}
message RenameNamespaceRequest {
string storage_name = 1;
string from = 2;
string to = 3;
}
message FileExistsRequest {
string storage_name = 1;
string name = 2;
}
message FileExistsResponse {
bool exists = 1;
}
// Other response messages are all empty
Edited by Zeger-Jan van de Weg