| @@ -0,0 +1,577 @@ |
| 1 | + | // SPDX-License-Identifier: AGPL-3.0-or-later |
| 2 | + | |
| 3 | + | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 4 | + | // versions: |
| 5 | + | // protoc-gen-go v1.36.12 |
| 6 | + | // protoc (unknown) |
| 7 | + | // source: ermite/storage/mirror.proto |
| 8 | + | |
| 9 | + | package storagepb |
| 10 | + | |
| 11 | + | import ( |
| 12 | + | protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 13 | + | protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 14 | + | timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| 15 | + | reflect "reflect" |
| 16 | + | sync "sync" |
| 17 | + | unsafe "unsafe" |
| 18 | + | ) |
| 19 | + | |
| 20 | + | const ( |
| 21 | + | // Verify that this generated code is sufficiently up-to-date. |
| 22 | + | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 23 | + | // Verify that runtime/protoimpl is sufficiently up-to-date. |
| 24 | + | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 25 | + | ) |
| 26 | + | |
| 27 | + | type MirrorKey struct { |
| 28 | + | state protoimpl.MessageState `protogen:"open.v1"` |
| 29 | + | Sealed []byte `protobuf:"bytes,1,opt,name=sealed,proto3" json:"sealed,omitempty"` |
| 30 | + | CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` |
| 31 | + | unknownFields protoimpl.UnknownFields |
| 32 | + | sizeCache protoimpl.SizeCache |
| 33 | + | } |
| 34 | + | |
| 35 | + | func (x *MirrorKey) Reset() { |
| 36 | + | *x = MirrorKey{} |
| 37 | + | mi := &file_ermite_storage_mirror_proto_msgTypes[0] |
| 38 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 39 | + | ms.StoreMessageInfo(mi) |
| 40 | + | } |
| 41 | + | |
| 42 | + | func (x *MirrorKey) String() string { |
| 43 | + | return protoimpl.X.MessageStringOf(x) |
| 44 | + | } |
| 45 | + | |
| 46 | + | func (*MirrorKey) ProtoMessage() {} |
| 47 | + | |
| 48 | + | func (x *MirrorKey) ProtoReflect() protoreflect.Message { |
| 49 | + | mi := &file_ermite_storage_mirror_proto_msgTypes[0] |
| 50 | + | if x != nil { |
| 51 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 52 | + | if ms.LoadMessageInfo() == nil { |
| 53 | + | ms.StoreMessageInfo(mi) |
| 54 | + | } |
| 55 | + | return ms |
| 56 | + | } |
| 57 | + | return mi.MessageOf(x) |
| 58 | + | } |
| 59 | + | |
| 60 | + | // Deprecated: Use MirrorKey.ProtoReflect.Descriptor instead. |
| 61 | + | func (*MirrorKey) Descriptor() ([]byte, []int) { |
| 62 | + | return file_ermite_storage_mirror_proto_rawDescGZIP(), []int{0} |
| 63 | + | } |
| 64 | + | |
| 65 | + | func (x *MirrorKey) GetSealed() []byte { |
| 66 | + | if x != nil { |
| 67 | + | return x.Sealed |
| 68 | + | } |
| 69 | + | return nil |
| 70 | + | } |
| 71 | + | |
| 72 | + | func (x *MirrorKey) GetCreatedAt() *timestamppb.Timestamp { |
| 73 | + | if x != nil { |
| 74 | + | return x.CreatedAt |
| 75 | + | } |
| 76 | + | return nil |
| 77 | + | } |
| 78 | + | |
| 79 | + | type MirrorGlobal struct { |
| 80 | + | state protoimpl.MessageState `protogen:"open.v1"` |
| 81 | + | Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` |
| 82 | + | UrlTemplate string `protobuf:"bytes,2,opt,name=url_template,json=urlTemplate,proto3" json:"url_template,omitempty"` |
| 83 | + | Cron string `protobuf:"bytes,3,opt,name=cron,proto3" json:"cron,omitempty"` |
| 84 | + | AllBranches bool `protobuf:"varint,4,opt,name=all_branches,json=allBranches,proto3" json:"all_branches,omitempty"` |
| 85 | + | UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` |
| 86 | + | unknownFields protoimpl.UnknownFields |
| 87 | + | sizeCache protoimpl.SizeCache |
| 88 | + | } |
| 89 | + | |
| 90 | + | func (x *MirrorGlobal) Reset() { |
| 91 | + | *x = MirrorGlobal{} |
| 92 | + | mi := &file_ermite_storage_mirror_proto_msgTypes[1] |
| 93 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 94 | + | ms.StoreMessageInfo(mi) |
| 95 | + | } |
| 96 | + | |
| 97 | + | func (x *MirrorGlobal) String() string { |
| 98 | + | return protoimpl.X.MessageStringOf(x) |
| 99 | + | } |
| 100 | + | |
| 101 | + | func (*MirrorGlobal) ProtoMessage() {} |
| 102 | + | |
| 103 | + | func (x *MirrorGlobal) ProtoReflect() protoreflect.Message { |
| 104 | + | mi := &file_ermite_storage_mirror_proto_msgTypes[1] |
| 105 | + | if x != nil { |
| 106 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 107 | + | if ms.LoadMessageInfo() == nil { |
| 108 | + | ms.StoreMessageInfo(mi) |
| 109 | + | } |
| 110 | + | return ms |
| 111 | + | } |
| 112 | + | return mi.MessageOf(x) |
| 113 | + | } |
| 114 | + | |
| 115 | + | // Deprecated: Use MirrorGlobal.ProtoReflect.Descriptor instead. |
| 116 | + | func (*MirrorGlobal) Descriptor() ([]byte, []int) { |
| 117 | + | return file_ermite_storage_mirror_proto_rawDescGZIP(), []int{1} |
| 118 | + | } |
| 119 | + | |
| 120 | + | func (x *MirrorGlobal) GetEnabled() bool { |
| 121 | + | if x != nil { |
| 122 | + | return x.Enabled |
| 123 | + | } |
| 124 | + | return false |
| 125 | + | } |
| 126 | + | |
| 127 | + | func (x *MirrorGlobal) GetUrlTemplate() string { |
| 128 | + | if x != nil { |
| 129 | + | return x.UrlTemplate |
| 130 | + | } |
| 131 | + | return "" |
| 132 | + | } |
| 133 | + | |
| 134 | + | func (x *MirrorGlobal) GetCron() string { |
| 135 | + | if x != nil { |
| 136 | + | return x.Cron |
| 137 | + | } |
| 138 | + | return "" |
| 139 | + | } |
| 140 | + | |
| 141 | + | func (x *MirrorGlobal) GetAllBranches() bool { |
| 142 | + | if x != nil { |
| 143 | + | return x.AllBranches |
| 144 | + | } |
| 145 | + | return false |
| 146 | + | } |
| 147 | + | |
| 148 | + | func (x *MirrorGlobal) GetUpdatedAt() *timestamppb.Timestamp { |
| 149 | + | if x != nil { |
| 150 | + | return x.UpdatedAt |
| 151 | + | } |
| 152 | + | return nil |
| 153 | + | } |
| 154 | + | |
| 155 | + | type MirrorRepo struct { |
| 156 | + | state protoimpl.MessageState `protogen:"open.v1"` |
| 157 | + | Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` |
| 158 | + | Cron string `protobuf:"bytes,2,opt,name=cron,proto3" json:"cron,omitempty"` |
| 159 | + | AllBranches *bool `protobuf:"varint,3,opt,name=all_branches,json=allBranches,proto3,oneof" json:"all_branches,omitempty"` |
| 160 | + | Excluded bool `protobuf:"varint,4,opt,name=excluded,proto3" json:"excluded,omitempty"` |
| 161 | + | UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` |
| 162 | + | unknownFields protoimpl.UnknownFields |
| 163 | + | sizeCache protoimpl.SizeCache |
| 164 | + | } |
| 165 | + | |
| 166 | + | func (x *MirrorRepo) Reset() { |
| 167 | + | *x = MirrorRepo{} |
| 168 | + | mi := &file_ermite_storage_mirror_proto_msgTypes[2] |
| 169 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 170 | + | ms.StoreMessageInfo(mi) |
| 171 | + | } |
| 172 | + | |
| 173 | + | func (x *MirrorRepo) String() string { |
| 174 | + | return protoimpl.X.MessageStringOf(x) |
| 175 | + | } |
| 176 | + | |
| 177 | + | func (*MirrorRepo) ProtoMessage() {} |
| 178 | + | |
| 179 | + | func (x *MirrorRepo) ProtoReflect() protoreflect.Message { |
| 180 | + | mi := &file_ermite_storage_mirror_proto_msgTypes[2] |
| 181 | + | if x != nil { |
| 182 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 183 | + | if ms.LoadMessageInfo() == nil { |
| 184 | + | ms.StoreMessageInfo(mi) |
| 185 | + | } |
| 186 | + | return ms |
| 187 | + | } |
| 188 | + | return mi.MessageOf(x) |
| 189 | + | } |
| 190 | + | |
| 191 | + | // Deprecated: Use MirrorRepo.ProtoReflect.Descriptor instead. |
| 192 | + | func (*MirrorRepo) Descriptor() ([]byte, []int) { |
| 193 | + | return file_ermite_storage_mirror_proto_rawDescGZIP(), []int{2} |
| 194 | + | } |
| 195 | + | |
| 196 | + | func (x *MirrorRepo) GetUrl() string { |
| 197 | + | if x != nil { |
| 198 | + | return x.Url |
| 199 | + | } |
| 200 | + | return "" |
| 201 | + | } |
| 202 | + | |
| 203 | + | func (x *MirrorRepo) GetCron() string { |
| 204 | + | if x != nil { |
| 205 | + | return x.Cron |
| 206 | + | } |
| 207 | + | return "" |
| 208 | + | } |
| 209 | + | |
| 210 | + | func (x *MirrorRepo) GetAllBranches() bool { |
| 211 | + | if x != nil && x.AllBranches != nil { |
| 212 | + | return *x.AllBranches |
| 213 | + | } |
| 214 | + | return false |
| 215 | + | } |
| 216 | + | |
| 217 | + | func (x *MirrorRepo) GetExcluded() bool { |
| 218 | + | if x != nil { |
| 219 | + | return x.Excluded |
| 220 | + | } |
| 221 | + | return false |
| 222 | + | } |
| 223 | + | |
| 224 | + | func (x *MirrorRepo) GetUpdatedAt() *timestamppb.Timestamp { |
| 225 | + | if x != nil { |
| 226 | + | return x.UpdatedAt |
| 227 | + | } |
| 228 | + | return nil |
| 229 | + | } |
| 230 | + | |
| 231 | + | type MirrorState struct { |
| 232 | + | state protoimpl.MessageState `protogen:"open.v1"` |
| 233 | + | State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` |
| 234 | + | Class string `protobuf:"bytes,2,opt,name=class,proto3" json:"class,omitempty"` |
| 235 | + | Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` |
| 236 | + | Detail string `protobuf:"bytes,4,opt,name=detail,proto3" json:"detail,omitempty"` |
| 237 | + | ConsecutiveFailures int32 `protobuf:"varint,5,opt,name=consecutive_failures,json=consecutiveFailures,proto3" json:"consecutive_failures,omitempty"` |
| 238 | + | LastAttemptAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last_attempt_at,json=lastAttemptAt,proto3" json:"last_attempt_at,omitempty"` |
| 239 | + | LastSuccessAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_success_at,json=lastSuccessAt,proto3" json:"last_success_at,omitempty"` |
| 240 | + | NextRetryAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=next_retry_at,json=nextRetryAt,proto3" json:"next_retry_at,omitempty"` |
| 241 | + | PausedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=paused_at,json=pausedAt,proto3" json:"paused_at,omitempty"` |
| 242 | + | UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` |
| 243 | + | unknownFields protoimpl.UnknownFields |
| 244 | + | sizeCache protoimpl.SizeCache |
| 245 | + | } |
| 246 | + | |
| 247 | + | func (x *MirrorState) Reset() { |
| 248 | + | *x = MirrorState{} |
| 249 | + | mi := &file_ermite_storage_mirror_proto_msgTypes[3] |
| 250 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 251 | + | ms.StoreMessageInfo(mi) |
| 252 | + | } |
| 253 | + | |
| 254 | + | func (x *MirrorState) String() string { |
| 255 | + | return protoimpl.X.MessageStringOf(x) |
| 256 | + | } |
| 257 | + | |
| 258 | + | func (*MirrorState) ProtoMessage() {} |
| 259 | + | |
| 260 | + | func (x *MirrorState) ProtoReflect() protoreflect.Message { |
| 261 | + | mi := &file_ermite_storage_mirror_proto_msgTypes[3] |
| 262 | + | if x != nil { |
| 263 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 264 | + | if ms.LoadMessageInfo() == nil { |
| 265 | + | ms.StoreMessageInfo(mi) |
| 266 | + | } |
| 267 | + | return ms |
| 268 | + | } |
| 269 | + | return mi.MessageOf(x) |
| 270 | + | } |
| 271 | + | |
| 272 | + | // Deprecated: Use MirrorState.ProtoReflect.Descriptor instead. |
| 273 | + | func (*MirrorState) Descriptor() ([]byte, []int) { |
| 274 | + | return file_ermite_storage_mirror_proto_rawDescGZIP(), []int{3} |
| 275 | + | } |
| 276 | + | |
| 277 | + | func (x *MirrorState) GetState() string { |
| 278 | + | if x != nil { |
| 279 | + | return x.State |
| 280 | + | } |
| 281 | + | return "" |
| 282 | + | } |
| 283 | + | |
| 284 | + | func (x *MirrorState) GetClass() string { |
| 285 | + | if x != nil { |
| 286 | + | return x.Class |
| 287 | + | } |
| 288 | + | return "" |
| 289 | + | } |
| 290 | + | |
| 291 | + | func (x *MirrorState) GetReason() string { |
| 292 | + | if x != nil { |
| 293 | + | return x.Reason |
| 294 | + | } |
| 295 | + | return "" |
| 296 | + | } |
| 297 | + | |
| 298 | + | func (x *MirrorState) GetDetail() string { |
| 299 | + | if x != nil { |
| 300 | + | return x.Detail |
| 301 | + | } |
| 302 | + | return "" |
| 303 | + | } |
| 304 | + | |
| 305 | + | func (x *MirrorState) GetConsecutiveFailures() int32 { |
| 306 | + | if x != nil { |
| 307 | + | return x.ConsecutiveFailures |
| 308 | + | } |
| 309 | + | return 0 |
| 310 | + | } |
| 311 | + | |
| 312 | + | func (x *MirrorState) GetLastAttemptAt() *timestamppb.Timestamp { |
| 313 | + | if x != nil { |
| 314 | + | return x.LastAttemptAt |
| 315 | + | } |
| 316 | + | return nil |
| 317 | + | } |
| 318 | + | |
| 319 | + | func (x *MirrorState) GetLastSuccessAt() *timestamppb.Timestamp { |
| 320 | + | if x != nil { |
| 321 | + | return x.LastSuccessAt |
| 322 | + | } |
| 323 | + | return nil |
| 324 | + | } |
| 325 | + | |
| 326 | + | func (x *MirrorState) GetNextRetryAt() *timestamppb.Timestamp { |
| 327 | + | if x != nil { |
| 328 | + | return x.NextRetryAt |
| 329 | + | } |
| 330 | + | return nil |
| 331 | + | } |
| 332 | + | |
| 333 | + | func (x *MirrorState) GetPausedAt() *timestamppb.Timestamp { |
| 334 | + | if x != nil { |
| 335 | + | return x.PausedAt |
| 336 | + | } |
| 337 | + | return nil |
| 338 | + | } |
| 339 | + | |
| 340 | + | func (x *MirrorState) GetUpdatedAt() *timestamppb.Timestamp { |
| 341 | + | if x != nil { |
| 342 | + | return x.UpdatedAt |
| 343 | + | } |
| 344 | + | return nil |
| 345 | + | } |
| 346 | + | |
| 347 | + | type MirrorSnapshotRef struct { |
| 348 | + | state protoimpl.MessageState `protogen:"open.v1"` |
| 349 | + | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 350 | + | Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` |
| 351 | + | unknownFields protoimpl.UnknownFields |
| 352 | + | sizeCache protoimpl.SizeCache |
| 353 | + | } |
| 354 | + | |
| 355 | + | func (x *MirrorSnapshotRef) Reset() { |
| 356 | + | *x = MirrorSnapshotRef{} |
| 357 | + | mi := &file_ermite_storage_mirror_proto_msgTypes[4] |
| 358 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 359 | + | ms.StoreMessageInfo(mi) |
| 360 | + | } |
| 361 | + | |
| 362 | + | func (x *MirrorSnapshotRef) String() string { |
| 363 | + | return protoimpl.X.MessageStringOf(x) |
| 364 | + | } |
| 365 | + | |
| 366 | + | func (*MirrorSnapshotRef) ProtoMessage() {} |
| 367 | + | |
| 368 | + | func (x *MirrorSnapshotRef) ProtoReflect() protoreflect.Message { |
| 369 | + | mi := &file_ermite_storage_mirror_proto_msgTypes[4] |
| 370 | + | if x != nil { |
| 371 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 372 | + | if ms.LoadMessageInfo() == nil { |
| 373 | + | ms.StoreMessageInfo(mi) |
| 374 | + | } |
| 375 | + | return ms |
| 376 | + | } |
| 377 | + | return mi.MessageOf(x) |
| 378 | + | } |
| 379 | + | |
| 380 | + | // Deprecated: Use MirrorSnapshotRef.ProtoReflect.Descriptor instead. |
| 381 | + | func (*MirrorSnapshotRef) Descriptor() ([]byte, []int) { |
| 382 | + | return file_ermite_storage_mirror_proto_rawDescGZIP(), []int{4} |
| 383 | + | } |
| 384 | + | |
| 385 | + | func (x *MirrorSnapshotRef) GetName() string { |
| 386 | + | if x != nil { |
| 387 | + | return x.Name |
| 388 | + | } |
| 389 | + | return "" |
| 390 | + | } |
| 391 | + | |
| 392 | + | func (x *MirrorSnapshotRef) GetId() string { |
| 393 | + | if x != nil { |
| 394 | + | return x.Id |
| 395 | + | } |
| 396 | + | return "" |
| 397 | + | } |
| 398 | + | |
| 399 | + | type MirrorSnapshot struct { |
| 400 | + | state protoimpl.MessageState `protogen:"open.v1"` |
| 401 | + | Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` |
| 402 | + | Refs []*MirrorSnapshotRef `protobuf:"bytes,2,rep,name=refs,proto3" json:"refs,omitempty"` |
| 403 | + | AllBranches bool `protobuf:"varint,3,opt,name=all_branches,json=allBranches,proto3" json:"all_branches,omitempty"` |
| 404 | + | At *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=at,proto3" json:"at,omitempty"` |
| 405 | + | unknownFields protoimpl.UnknownFields |
| 406 | + | sizeCache protoimpl.SizeCache |
| 407 | + | } |
| 408 | + | |
| 409 | + | func (x *MirrorSnapshot) Reset() { |
| 410 | + | *x = MirrorSnapshot{} |
| 411 | + | mi := &file_ermite_storage_mirror_proto_msgTypes[5] |
| 412 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 413 | + | ms.StoreMessageInfo(mi) |
| 414 | + | } |
| 415 | + | |
| 416 | + | func (x *MirrorSnapshot) String() string { |
| 417 | + | return protoimpl.X.MessageStringOf(x) |
| 418 | + | } |
| 419 | + | |
| 420 | + | func (*MirrorSnapshot) ProtoMessage() {} |
| 421 | + | |
| 422 | + | func (x *MirrorSnapshot) ProtoReflect() protoreflect.Message { |
| 423 | + | mi := &file_ermite_storage_mirror_proto_msgTypes[5] |
| 424 | + | if x != nil { |
| 425 | + | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 426 | + | if ms.LoadMessageInfo() == nil { |
| 427 | + | ms.StoreMessageInfo(mi) |
| 428 | + | } |
| 429 | + | return ms |
| 430 | + | } |
| 431 | + | return mi.MessageOf(x) |
| 432 | + | } |
| 433 | + | |
| 434 | + | // Deprecated: Use MirrorSnapshot.ProtoReflect.Descriptor instead. |
| 435 | + | func (*MirrorSnapshot) Descriptor() ([]byte, []int) { |
| 436 | + | return file_ermite_storage_mirror_proto_rawDescGZIP(), []int{5} |
| 437 | + | } |
| 438 | + | |
| 439 | + | func (x *MirrorSnapshot) GetUrl() string { |
| 440 | + | if x != nil { |
| 441 | + | return x.Url |
| 442 | + | } |
| 443 | + | return "" |
| 444 | + | } |
| 445 | + | |
| 446 | + | func (x *MirrorSnapshot) GetRefs() []*MirrorSnapshotRef { |
| 447 | + | if x != nil { |
| 448 | + | return x.Refs |
| 449 | + | } |
| 450 | + | return nil |
| 451 | + | } |
| 452 | + | |
| 453 | + | func (x *MirrorSnapshot) GetAllBranches() bool { |
| 454 | + | if x != nil { |
| 455 | + | return x.AllBranches |
| 456 | + | } |
| 457 | + | return false |
| 458 | + | } |
| 459 | + | |
| 460 | + | func (x *MirrorSnapshot) GetAt() *timestamppb.Timestamp { |
| 461 | + | if x != nil { |
| 462 | + | return x.At |
| 463 | + | } |
| 464 | + | return nil |
| 465 | + | } |
| 466 | + | |
| 467 | + | var File_ermite_storage_mirror_proto protoreflect.FileDescriptor |
| 468 | + | |
| 469 | + | const file_ermite_storage_mirror_proto_rawDesc = "" + |
| 470 | + | "\n" + |
| 471 | + | "\x1bermite/storage/mirror.proto\x12\x0eermite.storage\x1a\x1fgoogle/protobuf/timestamp.proto\"^\n" + |
| 472 | + | "\tMirrorKey\x12\x16\n" + |
| 473 | + | "\x06sealed\x18\x01 \x01(\fR\x06sealed\x129\n" + |
| 474 | + | "\n" + |
| 475 | + | "created_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\"\xbd\x01\n" + |
| 476 | + | "\fMirrorGlobal\x12\x18\n" + |
| 477 | + | "\aenabled\x18\x01 \x01(\bR\aenabled\x12!\n" + |
| 478 | + | "\furl_template\x18\x02 \x01(\tR\vurlTemplate\x12\x12\n" + |
| 479 | + | "\x04cron\x18\x03 \x01(\tR\x04cron\x12!\n" + |
| 480 | + | "\fall_branches\x18\x04 \x01(\bR\vallBranches\x129\n" + |
| 481 | + | "\n" + |
| 482 | + | "updated_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"\xc2\x01\n" + |
| 483 | + | "\n" + |
| 484 | + | "MirrorRepo\x12\x10\n" + |
| 485 | + | "\x03url\x18\x01 \x01(\tR\x03url\x12\x12\n" + |
| 486 | + | "\x04cron\x18\x02 \x01(\tR\x04cron\x12&\n" + |
| 487 | + | "\fall_branches\x18\x03 \x01(\bH\x00R\vallBranches\x88\x01\x01\x12\x1a\n" + |
| 488 | + | "\bexcluded\x18\x04 \x01(\bR\bexcluded\x129\n" + |
| 489 | + | "\n" + |
| 490 | + | "updated_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAtB\x0f\n" + |
| 491 | + | "\r_all_branches\"\xd8\x03\n" + |
| 492 | + | "\vMirrorState\x12\x14\n" + |
| 493 | + | "\x05state\x18\x01 \x01(\tR\x05state\x12\x14\n" + |
| 494 | + | "\x05class\x18\x02 \x01(\tR\x05class\x12\x16\n" + |
| 495 | + | "\x06reason\x18\x03 \x01(\tR\x06reason\x12\x16\n" + |
| 496 | + | "\x06detail\x18\x04 \x01(\tR\x06detail\x121\n" + |
| 497 | + | "\x14consecutive_failures\x18\x05 \x01(\x05R\x13consecutiveFailures\x12B\n" + |
| 498 | + | "\x0flast_attempt_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\rlastAttemptAt\x12B\n" + |
| 499 | + | "\x0flast_success_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\rlastSuccessAt\x12>\n" + |
| 500 | + | "\rnext_retry_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\vnextRetryAt\x127\n" + |
| 501 | + | "\tpaused_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\bpausedAt\x129\n" + |
| 502 | + | "\n" + |
| 503 | + | "updated_at\x18\n" + |
| 504 | + | " \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"7\n" + |
| 505 | + | "\x11MirrorSnapshotRef\x12\x12\n" + |
| 506 | + | "\x04name\x18\x01 \x01(\tR\x04name\x12\x0e\n" + |
| 507 | + | "\x02id\x18\x02 \x01(\tR\x02id\"\xa8\x01\n" + |
| 508 | + | "\x0eMirrorSnapshot\x12\x10\n" + |
| 509 | + | "\x03url\x18\x01 \x01(\tR\x03url\x125\n" + |
| 510 | + | "\x04refs\x18\x02 \x03(\v2!.ermite.storage.MirrorSnapshotRefR\x04refs\x12!\n" + |
| 511 | + | "\fall_branches\x18\x03 \x01(\bR\vallBranches\x12*\n" + |
| 512 | + | "\x02at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\x02atB/Z-bnema.dev/ermite/gen/ermite/storage;storagepbb\x06proto3" |
| 513 | + | |
| 514 | + | var ( |
| 515 | + | file_ermite_storage_mirror_proto_rawDescOnce sync.Once |
| 516 | + | file_ermite_storage_mirror_proto_rawDescData []byte |
| 517 | + | ) |
| 518 | + | |
| 519 | + | func file_ermite_storage_mirror_proto_rawDescGZIP() []byte { |
| 520 | + | file_ermite_storage_mirror_proto_rawDescOnce.Do(func() { |
| 521 | + | file_ermite_storage_mirror_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ermite_storage_mirror_proto_rawDesc), len(file_ermite_storage_mirror_proto_rawDesc))) |
| 522 | + | }) |
| 523 | + | return file_ermite_storage_mirror_proto_rawDescData |
| 524 | + | } |
| 525 | + | |
| 526 | + | var file_ermite_storage_mirror_proto_msgTypes = make([]protoimpl.MessageInfo, 6) |
| 527 | + | var file_ermite_storage_mirror_proto_goTypes = []any{ |
| 528 | + | (*MirrorKey)(nil), // 0: ermite.storage.MirrorKey |
| 529 | + | (*MirrorGlobal)(nil), // 1: ermite.storage.MirrorGlobal |
| 530 | + | (*MirrorRepo)(nil), // 2: ermite.storage.MirrorRepo |
| 531 | + | (*MirrorState)(nil), // 3: ermite.storage.MirrorState |
| 532 | + | (*MirrorSnapshotRef)(nil), // 4: ermite.storage.MirrorSnapshotRef |
| 533 | + | (*MirrorSnapshot)(nil), // 5: ermite.storage.MirrorSnapshot |
| 534 | + | (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp |
| 535 | + | } |
| 536 | + | var file_ermite_storage_mirror_proto_depIdxs = []int32{ |
| 537 | + | 6, // 0: ermite.storage.MirrorKey.created_at:type_name -> google.protobuf.Timestamp |
| 538 | + | 6, // 1: ermite.storage.MirrorGlobal.updated_at:type_name -> google.protobuf.Timestamp |
| 539 | + | 6, // 2: ermite.storage.MirrorRepo.updated_at:type_name -> google.protobuf.Timestamp |
| 540 | + | 6, // 3: ermite.storage.MirrorState.last_attempt_at:type_name -> google.protobuf.Timestamp |
| 541 | + | 6, // 4: ermite.storage.MirrorState.last_success_at:type_name -> google.protobuf.Timestamp |
| 542 | + | 6, // 5: ermite.storage.MirrorState.next_retry_at:type_name -> google.protobuf.Timestamp |
| 543 | + | 6, // 6: ermite.storage.MirrorState.paused_at:type_name -> google.protobuf.Timestamp |
| 544 | + | 6, // 7: ermite.storage.MirrorState.updated_at:type_name -> google.protobuf.Timestamp |
| 545 | + | 4, // 8: ermite.storage.MirrorSnapshot.refs:type_name -> ermite.storage.MirrorSnapshotRef |
| 546 | + | 6, // 9: ermite.storage.MirrorSnapshot.at:type_name -> google.protobuf.Timestamp |
| 547 | + | 10, // [10:10] is the sub-list for method output_type |
| 548 | + | 10, // [10:10] is the sub-list for method input_type |
| 549 | + | 10, // [10:10] is the sub-list for extension type_name |
| 550 | + | 10, // [10:10] is the sub-list for extension extendee |
| 551 | + | 0, // [0:10] is the sub-list for field type_name |
| 552 | + | } |
| 553 | + | |
| 554 | + | func init() { file_ermite_storage_mirror_proto_init() } |
| 555 | + | func file_ermite_storage_mirror_proto_init() { |
| 556 | + | if File_ermite_storage_mirror_proto != nil { |
| 557 | + | return |
| 558 | + | } |
| 559 | + | file_ermite_storage_mirror_proto_msgTypes[2].OneofWrappers = []any{} |
| 560 | + | type x struct{} |
| 561 | + | out := protoimpl.TypeBuilder{ |
| 562 | + | File: protoimpl.DescBuilder{ |
| 563 | + | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 564 | + | RawDescriptor: unsafe.Slice(unsafe.StringData(file_ermite_storage_mirror_proto_rawDesc), len(file_ermite_storage_mirror_proto_rawDesc)), |
| 565 | + | NumEnums: 0, |
| 566 | + | NumMessages: 6, |
| 567 | + | NumExtensions: 0, |
| 568 | + | NumServices: 0, |
| 569 | + | }, |
| 570 | + | GoTypes: file_ermite_storage_mirror_proto_goTypes, |
| 571 | + | DependencyIndexes: file_ermite_storage_mirror_proto_depIdxs, |
| 572 | + | MessageInfos: file_ermite_storage_mirror_proto_msgTypes, |
| 573 | + | }.Build() |
| 574 | + | File_ermite_storage_mirror_proto = out.File |
| 575 | + | file_ermite_storage_mirror_proto_goTypes = nil |
| 576 | + | file_ermite_storage_mirror_proto_depIdxs = nil |
| 577 | + | } |