diff options
author | Paul Okstad <pokstad@gitlab.com> | 2020-03-02 19:31:26 +0300 |
---|---|---|
committer | Pavlo Strokov <pstrokov@gitlab.com> | 2020-03-02 19:31:26 +0300 |
commit | f3f4ae8bc2945b8363835e6c6862a7044311aa9e (patch) | |
tree | d8a64ffce1c0f4b394708fad6f168c225a75bd3d /proto/internal.proto | |
parent | 6f1501aa013a71139e6ffa6c5b49287cdeaf59ef (diff) |
New service InternalGitaly and RPC WalkRepos
Diffstat (limited to 'proto/internal.proto')
-rw-r--r-- | proto/internal.proto | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/proto/internal.proto b/proto/internal.proto new file mode 100644 index 000000000..235b0f728 --- /dev/null +++ b/proto/internal.proto @@ -0,0 +1,28 @@ +syntax = "proto3"; + +package gitaly; + +option go_package = "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb"; + +import "shared.proto"; + +// InternalGitaly is a gRPC service meant to be served by a Gitaly node, but +// only reachable by Praefect or other Gitalies +service InternalGitaly { + // WalkRepos walks the storage and streams back all known git repos on the + // requested storage + rpc WalkRepos (WalkReposRequest) returns (stream WalkReposResponse) { + option (op_type) = { + op: ACCESSOR + scope_level: STORAGE + }; + } +} + +message WalkReposRequest { + string storage_name = 1 [(storage)=true]; +} + +message WalkReposResponse { + string relative_path = 1; +} |