blob: 298ef9cb445d9800f09acc036250ea6fff103c99 (
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
54
55
56
57
58
59
60
61
62
63
|
syntax = "proto3";
package gitaly;
option go_package = "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb";
import "lint.proto";
service NamespaceService {
rpc AddNamespace(AddNamespaceRequest) returns (AddNamespaceResponse) {
option (op_type) = {
op: MUTATOR
scope_level: STORAGE,
};
}
rpc RemoveNamespace(RemoveNamespaceRequest) returns (RemoveNamespaceResponse) {
option (op_type) = {
op: MUTATOR
scope_level: STORAGE,
};
}
rpc RenameNamespace(RenameNamespaceRequest) returns (RenameNamespaceResponse) {
option (op_type) = {
op: MUTATOR
scope_level: STORAGE,
};
}
rpc NamespaceExists(NamespaceExistsRequest) returns (NamespaceExistsResponse) {
option (op_type) = {
op: ACCESSOR
scope_level: STORAGE,
};
}
}
message AddNamespaceRequest {
string storage_name = 1 [(storage)=true];
string name = 2;
}
message RemoveNamespaceRequest {
string storage_name = 1 [(storage)=true];
string name = 2;
}
message RenameNamespaceRequest {
string storage_name = 1 [(storage)=true];
string from = 2;
string to = 3;
}
message NamespaceExistsRequest {
string storage_name = 1 [(storage)=true];
string name = 2;
}
message NamespaceExistsResponse {
bool exists = 1;
}
message AddNamespaceResponse {}
message RemoveNamespaceResponse {}
message RenameNamespaceResponse {}
|