-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSched.proto
More file actions
77 lines (63 loc) · 1.49 KB
/
Copy pathSched.proto
File metadata and controls
77 lines (63 loc) · 1.49 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
syntax="proto3";
package eos.console;
option go_package = "github.com/cern-eos/go-eosgrpc/console";
message SchedProto {
message TypeProto {
// This could be an enum like PlacementStrategyT; but every time we
// introduce a new scheduler, we'd have to modify the cli instead of just
// parsing on the server side
string schedtype = 1;
}
message WeightProto {
sint32 id = 1;
uint32 weight = 2;
string spacename = 3;
}
message ShowProto {
enum Option {
TYPE = 0;
STATE = 1;
}
Option option = 1;
string spacename = 2;
}
message RefreshProto {
}
message DisabledProto {
enum Op {
ADD = 0;
RM = 1;
LS = 2;
}
reserved 4; // was OpType optype, superseded by spec below
Op op = 1;
string spacename = 2;
string geotag = 3;
// Operations to deny below the branch. The legacy "plct", "access" and
// "all" are kept as aliases of the wider grammar the MGM parses, see
// eos::mgm::placement::ParseDeniedSpec. Empty means "all".
string spec = 5;
}
message ConfigureProto {
oneof subopt {
TypeProto type = 1;
WeightProto weight = 2;
ShowProto show = 3;
RefreshProto refresh = 4;
}
}
message LsProto {
enum Option {
BUCKET = 0;
DISK = 1;
ALL = 2;
}
Option option = 1;
string spacename = 2;
}
oneof subcmd {
ConfigureProto config = 1;
LsProto ls = 2;
DisabledProto disabled = 3;
}
}