Skip to content

Commit

Permalink
refactor:删除标志位调整 (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
chuntaojun authored Aug 21, 2024
1 parent fae5485 commit e65a538
Show file tree
Hide file tree
Showing 28 changed files with 1,631 additions and 1,338 deletions.
3 changes: 3 additions & 0 deletions api/v1/config_manage/config_file.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ message ConfigFileGroup {
google.protobuf.StringValue business = 17;
google.protobuf.StringValue department = 18;
map<string, string> metadata = 19;

// 删除操作标志位
google.protobuf.BoolValue deleteable = 20;
}

message ConfigFile {
Expand Down
3 changes: 3 additions & 0 deletions api/v1/fault_tolerance/circuitbreaker.proto
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,9 @@ message CircuitBreakerRule {
uint32 priority = 30 [ json_name = "priority" ];
// 熔断规则标签数据
map<string, string> metadata = 31 [ json_name = "metadata" ];
// 操作标志位
bool editable = 40 [ json_name = "editable" ];
bool deleteable = 41 [ json_name = "deleteable" ];
}

// the condition to judge an input invocation as an error
Expand Down
3 changes: 3 additions & 0 deletions api/v1/fault_tolerance/fault_detector.proto
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ message FaultDetectRule {
map<string, string> metadata = 30 [ json_name = "metadata" ];
// extend info, put some custom info to display in console
map<string, string> extendInfo = 31 [ json_name = "extend_info" ];
// 操作标志位
bool editable = 40 [ json_name = "editable" ];
bool deleteable = 41 [ json_name = "deleteable" ];
}

message HttpProtocolConfig {
Expand Down
3 changes: 3 additions & 0 deletions api/v1/model/namespace.proto
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,7 @@ message Namespace {
google.protobuf.BoolValue editable = 15;

repeated google.protobuf.StringValue service_export_to = 16 [ json_name = "service_export_to" ];

map<string, string> metadata = 17;
google.protobuf.BoolValue deleteable = 18;
}
1 change: 1 addition & 0 deletions api/v1/service_manage/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ message Service {
google.protobuf.StringValue id = 21;
google.protobuf.BoolValue editable = 24;
repeated google.protobuf.StringValue export_to = 25 [ json_name = "export_to" ];
google.protobuf.BoolValue deleteable = 26;
}

enum AliasType {
Expand Down
3 changes: 3 additions & 0 deletions api/v1/traffic_manage/lane.proto
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ message LaneGroup {
repeated LaneRule rules = 11;
// 泳道组标签信息
map<string, string> metadata = 12;
// 操作标志位
bool editable = 20 [ json_name = "editable" ];
bool deleteable = 21 [ json_name = "deleteable" ];
}

// TrafficMatchRule 流量匹配规则
Expand Down
3 changes: 3 additions & 0 deletions api/v1/traffic_manage/lossless.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ message LosslessRule {
LosslessOffline losslessOffline = 8 [ json_name = "lossless_offline" ];
// rule labels
map<string, string> metadata = 9 [ json_name = "metadata" ];
// 操作标志位
bool editable = 30 [ json_name = "editable" ];
bool deleteable = 31 [ json_name = "deleteable" ];
}

message LosslessOnline {
Expand Down
3 changes: 3 additions & 0 deletions api/v1/traffic_manage/ratelimit.proto
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ message Rule {
CustomResponse customResponse = 28 [ json_name = "custom_response" ];
// 限流规则标签数据
map<string, string> metadata = 29 [ json_name = "metadata" ];
// 操作标志位
bool editable = 30 [ json_name = "editable" ];
bool deleteable = 31 [ json_name = "deleteable" ];
}

message MatchArgument {
Expand Down
3 changes: 3 additions & 0 deletions api/v1/traffic_manage/routing.proto
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ message RouteRule {
map<string, string> extendInfo = 20;
// 路由规则标签数据
map<string, string> metadata = 21;
// 操作标志位
bool editable = 30 [ json_name = "editable" ];
bool deleteable = 31 [ json_name = "deleteable" ];
}

message MetadataFailover {
Expand Down
1,018 changes: 516 additions & 502 deletions source/go/api/v1/config_manage/config_file.pb.go

Large diffs are not rendered by default.

199 changes: 110 additions & 89 deletions source/go/api/v1/fault_tolerance/circuitbreaker.pb.go

Large diffs are not rendered by default.

172 changes: 106 additions & 66 deletions source/go/api/v1/fault_tolerance/fault_detector.pb.go

Large diffs are not rendered by default.

104 changes: 67 additions & 37 deletions source/go/api/v1/model/namespace.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e65a538

Please sign in to comment.