diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2021-08-12 13:52:22 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2021-08-24 12:31:26 +0300 |
commit | 8ced7fa57ffc19bc343a8e83b711297597b17e86 (patch) | |
tree | ee8e00315b105910f25aca01927b19c464784bab /proto/hook.proto | |
parent | b78f644f35cf8513667b2f0d18a75809f00254f7 (diff) |
Add proto definition for PackObjectsHookWithSidechannel
The implementation will follow in a later commit.
Diffstat (limited to 'proto/hook.proto')
-rw-r--r-- | proto/hook.proto | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/proto/hook.proto b/proto/hook.proto index 71dd75cd6..1c8a2001f 100644 --- a/proto/hook.proto +++ b/proto/hook.proto @@ -36,6 +36,13 @@ service HookService { op: ACCESSOR }; } + // PackObjectsHookWithSidechannel is an optimized version of PackObjectsHook that uses + // a unix socket side channel. + rpc PackObjectsHookWithSidechannel(PackObjectsHookWithSidechannelRequest) returns (PackObjectsHookWithSidechannelResponse) { + option (op_type) = { + op: ACCESSOR + }; + } } message PreReceiveHookRequest { @@ -110,3 +117,11 @@ message PackObjectsHookResponse { // stderr contains progress messages (such as "Enumerating objects ...") bytes stderr = 2; } + +message PackObjectsHookWithSidechannelRequest { + Repository repository = 1 [(target_repository)=true]; + // args contains the arguments passed to the pack-objects hook, without the leading "git" + repeated string args = 2; +} + +message PackObjectsHookWithSidechannelResponse {} |