blob: a64e050fd5752c45569750f9f1567211bf68b1d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
syntax = "proto3";
package gitaly;
option go_package = "gitlab.com/gitlab-org/gitaly/proto/go/gitalypb";
import "lint.proto";
import "shared.proto";
service ServerService {
rpc ServerInfo(ServerInfoRequest) returns (ServerInfoResponse) {
option (op_type) = {
op: ACCESSOR
scope_level: SERVER
};
}
rpc DiskStatistics(DiskStatisticsRequest) returns (DiskStatisticsResponse) {
option (op_type) = {
op: ACCESSOR
scope_level: SERVER
};
}
}
message ServerInfoRequest {}
message ServerInfoResponse {
message StorageStatus {
string storage_name = 1;
bool readable = 2;
bool writeable = 3;
string fs_type = 4;
string filesystem_id = 5;
}
string server_version = 1;
string git_version = 2;
repeated StorageStatus storage_statuses = 3;
}
message DiskStatisticsRequest {}
message DiskStatisticsResponse {
message StorageStatus {
// When both available and used fields are equal 0 that means that
// Gitaly was unable to determine storage stats.
string storage_name = 1;
int64 available = 2;
int64 used = 3;
}
repeated StorageStatus storage_statuses = 1;
}
|