Commit 75b97bf1 authored by Nick Thomas's avatar Nick Thomas 💃

Add RepositoryService::Create

parent 129be91a
Pipeline #10888223 passed with stage
in 1 minute and 4 seconds
......@@ -71,6 +71,8 @@ It has these top-level messages:
FindAllBranchesResponse
FindAllTagsRequest
FindAllTagsResponse
RepositoryCreateRequest
RepositoryCreateResponse
RepositoryExistsRequest
RepositoryExistsResponse
RepackIncrementalRequest
......
This diff is collapsed.
......@@ -5,6 +5,7 @@ package gitaly;
import "shared.proto";
service RepositoryService {
rpc Create(RepositoryCreateRequest) returns(RepositoryCreateResponse) {}
rpc RepositoryExists(RepositoryExistsRequest) returns (RepositoryExistsResponse) {}
rpc RepackIncremental(RepackIncrementalRequest) returns (RepackIncrementalResponse) {};
rpc RepackFull(RepackFullRequest) returns (RepackFullResponse) {};
......@@ -17,6 +18,12 @@ service RepositoryService {
rpc Exists(RepositoryExistsRequest) returns (RepositoryExistsResponse) {}
}
message RepositoryCreateRequest {
Repository repository = 1;
}
message RepositoryCreateResponse {}
message RepositoryExistsRequest {
Repository repository = 1;
}
......
......@@ -5,6 +5,11 @@ require 'google/protobuf'
require 'shared_pb'
Google::Protobuf::DescriptorPool.generated_pool.build do
add_message "gitaly.RepositoryCreateRequest" do
optional :repository, :message, 1, "gitaly.Repository"
end
add_message "gitaly.RepositoryCreateResponse" do
end
add_message "gitaly.RepositoryExistsRequest" do
optional :repository, :message, 1, "gitaly.Repository"
end
......@@ -54,6 +59,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
end
module Gitaly
RepositoryCreateRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepositoryCreateRequest").msgclass
RepositoryCreateResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepositoryCreateResponse").msgclass
RepositoryExistsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepositoryExistsRequest").msgclass
RepositoryExistsResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepositoryExistsResponse").msgclass
RepackIncrementalRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.RepackIncrementalRequest").msgclass
......
......@@ -14,6 +14,7 @@ module Gitaly
self.unmarshal_class_method = :decode
self.service_name = 'gitaly.RepositoryService'
rpc :Create, RepositoryCreateRequest, RepositoryCreateResponse
rpc :RepositoryExists, RepositoryExistsRequest, RepositoryExistsResponse
rpc :RepackIncremental, RepackIncrementalRequest, RepackIncrementalResponse
rpc :RepackFull, RepackFullRequest, RepackFullResponse
......
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