Commit 74a4319b authored by John Cai's avatar John Cai

Merge branch 'list-git-remotes' into 'master'

Adding ListRemotes

See merge request gitlab-org/gitaly-proto!250
parents b40fc145 4f8bb418
Pipeline #43795729 passed with stages
in 1 minute and 14 seconds
......@@ -206,6 +206,8 @@ It has these top-level messages:
FindRemoteRepositoryResponse
FindRemoteRootRefRequest
FindRemoteRootRefResponse
ListRemotesRequest
ListRemotesResponse
RepositoryExistsRequest
RepositoryExistsResponse
RepackIncrementalRequest
......
This diff is collapsed.
......@@ -11,6 +11,7 @@ service RemoteService {
rpc UpdateRemoteMirror(stream UpdateRemoteMirrorRequest) returns (UpdateRemoteMirrorResponse) {}
rpc FindRemoteRepository(FindRemoteRepositoryRequest) returns (FindRemoteRepositoryResponse) {}
rpc FindRemoteRootRef(FindRemoteRootRefRequest) returns (FindRemoteRootRefResponse) {}
rpc ListRemotes(ListRemotesRequest) returns (ListRemotesResponse) {}
}
message AddRemoteRequest {
......@@ -72,3 +73,17 @@ message FindRemoteRootRefRequest {
message FindRemoteRootRefResponse {
string ref = 1;
}
message ListRemotesRequest {
Repository repository = 1;
}
message ListRemotesResponse {
message Remote {
string name = 1;
string fetch_url = 2;
string push_url = 3;
}
repeated Remote remotes = 1;
}
......@@ -49,6 +49,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
add_message "gitaly.FindRemoteRootRefResponse" do
optional :ref, :string, 1
end
add_message "gitaly.ListRemotesRequest" do
optional :repository, :message, 1, "gitaly.Repository"
end
add_message "gitaly.ListRemotesResponse" do
repeated :remotes, :message, 1, "gitaly.ListRemotesResponse.Remote"
end
add_message "gitaly.ListRemotesResponse.Remote" do
optional :name, :string, 1
optional :fetch_url, :string, 2
optional :push_url, :string, 3
end
end
module Gitaly
......@@ -64,4 +75,7 @@ module Gitaly
FindRemoteRepositoryResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRemoteRepositoryResponse").msgclass
FindRemoteRootRefRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRemoteRootRefRequest").msgclass
FindRemoteRootRefResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.FindRemoteRootRefResponse").msgclass
ListRemotesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRemotesRequest").msgclass
ListRemotesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRemotesResponse").msgclass
ListRemotesResponse::Remote = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListRemotesResponse.Remote").msgclass
end
......@@ -20,6 +20,7 @@ module Gitaly
rpc :UpdateRemoteMirror, stream(UpdateRemoteMirrorRequest), UpdateRemoteMirrorResponse
rpc :FindRemoteRepository, FindRemoteRepositoryRequest, FindRemoteRepositoryResponse
rpc :FindRemoteRootRef, FindRemoteRootRefRequest, FindRemoteRootRefResponse
rpc :ListRemotes, ListRemotesRequest, ListRemotesResponse
end
Stub = Service.rpc_stub_class
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment