diff options
author | Quang-Minh Nguyen <qmnguyen@gitlab.com> | 2021-09-17 11:28:12 +0300 |
---|---|---|
committer | Quang-Minh Nguyen <qmnguyen@gitlab.com> | 2021-09-30 13:58:52 +0300 |
commit | 7d681ebd6c531e048a9e5d41f524dafc02e76516 (patch) | |
tree | f285556273e5995e33434673748867ebe7e08cc3 /proto/smarthttp.proto | |
parent | dc297bbcb3bf33b798b58b934259ce94335294c3 (diff) |
Implement PostUploadPackWithSidechannel using sidechannel protocol
Issue: https://gitlab.com/gitlab-com/gl-infra/scalability/-/issues/1219
Changelog: added
Diffstat (limited to 'proto/smarthttp.proto')
-rw-r--r-- | proto/smarthttp.proto | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/proto/smarthttp.proto b/proto/smarthttp.proto index 26d057685..f9e3977d6 100644 --- a/proto/smarthttp.proto +++ b/proto/smarthttp.proto @@ -33,6 +33,13 @@ service SmartHTTPService { }; } + // Request and response body for POST /upload-pack using sidechannel protocol + rpc PostUploadPackWithSidechannel(PostUploadPackWithSidechannelRequest) returns (PostUploadPackWithSidechannelResponse) { + option (op_type) = { + op: ACCESSOR + }; + } + // Request and response body for POST /receive-pack rpc PostReceivePack(stream PostReceivePackRequest) returns (stream PostReceivePackResponse) { option (op_type) = { @@ -71,6 +78,17 @@ message PostUploadPackResponse { bytes data = 1; } +message PostUploadPackWithSidechannelRequest { + // repository should only be present in the first message of the stream + Repository repository = 1 [(target_repository)=true]; + // Parameters to use with git -c (key=value pairs) + repeated string git_config_options = 2; + // Git protocol version + string git_protocol = 3; +} + +message PostUploadPackWithSidechannelResponse { } + message PostReceivePackRequest { // repository should only be present in the first message of the stream Repository repository = 1 [(target_repository)=true]; |