github.com/kaleido-io/firefly@v0.0.0-20210622132723-8b4b6aacb971/mocks/orchestratormocks/orchestrator.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 package orchestratormocks 4 5 import ( 6 context "context" 7 8 broadcast "github.com/kaleido-io/firefly/internal/broadcast" 9 10 data "github.com/kaleido-io/firefly/internal/data" 11 12 database "github.com/kaleido-io/firefly/pkg/database" 13 14 events "github.com/kaleido-io/firefly/internal/events" 15 16 fftypes "github.com/kaleido-io/firefly/pkg/fftypes" 17 18 mock "github.com/stretchr/testify/mock" 19 20 networkmap "github.com/kaleido-io/firefly/internal/networkmap" 21 22 privatemessaging "github.com/kaleido-io/firefly/internal/privatemessaging" 23 ) 24 25 // Orchestrator is an autogenerated mock type for the Orchestrator type 26 type Orchestrator struct { 27 mock.Mock 28 } 29 30 // Broadcast provides a mock function with given fields: 31 func (_m *Orchestrator) Broadcast() broadcast.Manager { 32 ret := _m.Called() 33 34 var r0 broadcast.Manager 35 if rf, ok := ret.Get(0).(func() broadcast.Manager); ok { 36 r0 = rf() 37 } else { 38 if ret.Get(0) != nil { 39 r0 = ret.Get(0).(broadcast.Manager) 40 } 41 } 42 43 return r0 44 } 45 46 // CreateSubscription provides a mock function with given fields: ctx, ns, subDef 47 func (_m *Orchestrator) CreateSubscription(ctx context.Context, ns string, subDef *fftypes.Subscription) (*fftypes.Subscription, error) { 48 ret := _m.Called(ctx, ns, subDef) 49 50 var r0 *fftypes.Subscription 51 if rf, ok := ret.Get(0).(func(context.Context, string, *fftypes.Subscription) *fftypes.Subscription); ok { 52 r0 = rf(ctx, ns, subDef) 53 } else { 54 if ret.Get(0) != nil { 55 r0 = ret.Get(0).(*fftypes.Subscription) 56 } 57 } 58 59 var r1 error 60 if rf, ok := ret.Get(1).(func(context.Context, string, *fftypes.Subscription) error); ok { 61 r1 = rf(ctx, ns, subDef) 62 } else { 63 r1 = ret.Error(1) 64 } 65 66 return r0, r1 67 } 68 69 // Data provides a mock function with given fields: 70 func (_m *Orchestrator) Data() data.Manager { 71 ret := _m.Called() 72 73 var r0 data.Manager 74 if rf, ok := ret.Get(0).(func() data.Manager); ok { 75 r0 = rf() 76 } else { 77 if ret.Get(0) != nil { 78 r0 = ret.Get(0).(data.Manager) 79 } 80 } 81 82 return r0 83 } 84 85 // DeleteSubscription provides a mock function with given fields: ctx, ns, id 86 func (_m *Orchestrator) DeleteSubscription(ctx context.Context, ns string, id string) error { 87 ret := _m.Called(ctx, ns, id) 88 89 var r0 error 90 if rf, ok := ret.Get(0).(func(context.Context, string, string) error); ok { 91 r0 = rf(ctx, ns, id) 92 } else { 93 r0 = ret.Error(0) 94 } 95 96 return r0 97 } 98 99 // Events provides a mock function with given fields: 100 func (_m *Orchestrator) Events() events.EventManager { 101 ret := _m.Called() 102 103 var r0 events.EventManager 104 if rf, ok := ret.Get(0).(func() events.EventManager); ok { 105 r0 = rf() 106 } else { 107 if ret.Get(0) != nil { 108 r0 = ret.Get(0).(events.EventManager) 109 } 110 } 111 112 return r0 113 } 114 115 // GetBatchByID provides a mock function with given fields: ctx, ns, id 116 func (_m *Orchestrator) GetBatchByID(ctx context.Context, ns string, id string) (*fftypes.Batch, error) { 117 ret := _m.Called(ctx, ns, id) 118 119 var r0 *fftypes.Batch 120 if rf, ok := ret.Get(0).(func(context.Context, string, string) *fftypes.Batch); ok { 121 r0 = rf(ctx, ns, id) 122 } else { 123 if ret.Get(0) != nil { 124 r0 = ret.Get(0).(*fftypes.Batch) 125 } 126 } 127 128 var r1 error 129 if rf, ok := ret.Get(1).(func(context.Context, string, string) error); ok { 130 r1 = rf(ctx, ns, id) 131 } else { 132 r1 = ret.Error(1) 133 } 134 135 return r0, r1 136 } 137 138 // GetBatches provides a mock function with given fields: ctx, ns, filter 139 func (_m *Orchestrator) GetBatches(ctx context.Context, ns string, filter database.AndFilter) ([]*fftypes.Batch, error) { 140 ret := _m.Called(ctx, ns, filter) 141 142 var r0 []*fftypes.Batch 143 if rf, ok := ret.Get(0).(func(context.Context, string, database.AndFilter) []*fftypes.Batch); ok { 144 r0 = rf(ctx, ns, filter) 145 } else { 146 if ret.Get(0) != nil { 147 r0 = ret.Get(0).([]*fftypes.Batch) 148 } 149 } 150 151 var r1 error 152 if rf, ok := ret.Get(1).(func(context.Context, string, database.AndFilter) error); ok { 153 r1 = rf(ctx, ns, filter) 154 } else { 155 r1 = ret.Error(1) 156 } 157 158 return r0, r1 159 } 160 161 // GetData provides a mock function with given fields: ctx, ns, filter 162 func (_m *Orchestrator) GetData(ctx context.Context, ns string, filter database.AndFilter) ([]*fftypes.Data, error) { 163 ret := _m.Called(ctx, ns, filter) 164 165 var r0 []*fftypes.Data 166 if rf, ok := ret.Get(0).(func(context.Context, string, database.AndFilter) []*fftypes.Data); ok { 167 r0 = rf(ctx, ns, filter) 168 } else { 169 if ret.Get(0) != nil { 170 r0 = ret.Get(0).([]*fftypes.Data) 171 } 172 } 173 174 var r1 error 175 if rf, ok := ret.Get(1).(func(context.Context, string, database.AndFilter) error); ok { 176 r1 = rf(ctx, ns, filter) 177 } else { 178 r1 = ret.Error(1) 179 } 180 181 return r0, r1 182 } 183 184 // GetDataByID provides a mock function with given fields: ctx, ns, id 185 func (_m *Orchestrator) GetDataByID(ctx context.Context, ns string, id string) (*fftypes.Data, error) { 186 ret := _m.Called(ctx, ns, id) 187 188 var r0 *fftypes.Data 189 if rf, ok := ret.Get(0).(func(context.Context, string, string) *fftypes.Data); ok { 190 r0 = rf(ctx, ns, id) 191 } else { 192 if ret.Get(0) != nil { 193 r0 = ret.Get(0).(*fftypes.Data) 194 } 195 } 196 197 var r1 error 198 if rf, ok := ret.Get(1).(func(context.Context, string, string) error); ok { 199 r1 = rf(ctx, ns, id) 200 } else { 201 r1 = ret.Error(1) 202 } 203 204 return r0, r1 205 } 206 207 // GetDatatypeByID provides a mock function with given fields: ctx, ns, id 208 func (_m *Orchestrator) GetDatatypeByID(ctx context.Context, ns string, id string) (*fftypes.Datatype, error) { 209 ret := _m.Called(ctx, ns, id) 210 211 var r0 *fftypes.Datatype 212 if rf, ok := ret.Get(0).(func(context.Context, string, string) *fftypes.Datatype); ok { 213 r0 = rf(ctx, ns, id) 214 } else { 215 if ret.Get(0) != nil { 216 r0 = ret.Get(0).(*fftypes.Datatype) 217 } 218 } 219 220 var r1 error 221 if rf, ok := ret.Get(1).(func(context.Context, string, string) error); ok { 222 r1 = rf(ctx, ns, id) 223 } else { 224 r1 = ret.Error(1) 225 } 226 227 return r0, r1 228 } 229 230 // GetDatatypes provides a mock function with given fields: ctx, ns, filter 231 func (_m *Orchestrator) GetDatatypes(ctx context.Context, ns string, filter database.AndFilter) ([]*fftypes.Datatype, error) { 232 ret := _m.Called(ctx, ns, filter) 233 234 var r0 []*fftypes.Datatype 235 if rf, ok := ret.Get(0).(func(context.Context, string, database.AndFilter) []*fftypes.Datatype); ok { 236 r0 = rf(ctx, ns, filter) 237 } else { 238 if ret.Get(0) != nil { 239 r0 = ret.Get(0).([]*fftypes.Datatype) 240 } 241 } 242 243 var r1 error 244 if rf, ok := ret.Get(1).(func(context.Context, string, database.AndFilter) error); ok { 245 r1 = rf(ctx, ns, filter) 246 } else { 247 r1 = ret.Error(1) 248 } 249 250 return r0, r1 251 } 252 253 // GetEventByID provides a mock function with given fields: ctx, ns, id 254 func (_m *Orchestrator) GetEventByID(ctx context.Context, ns string, id string) (*fftypes.Event, error) { 255 ret := _m.Called(ctx, ns, id) 256 257 var r0 *fftypes.Event 258 if rf, ok := ret.Get(0).(func(context.Context, string, string) *fftypes.Event); ok { 259 r0 = rf(ctx, ns, id) 260 } else { 261 if ret.Get(0) != nil { 262 r0 = ret.Get(0).(*fftypes.Event) 263 } 264 } 265 266 var r1 error 267 if rf, ok := ret.Get(1).(func(context.Context, string, string) error); ok { 268 r1 = rf(ctx, ns, id) 269 } else { 270 r1 = ret.Error(1) 271 } 272 273 return r0, r1 274 } 275 276 // GetEvents provides a mock function with given fields: ctx, ns, filter 277 func (_m *Orchestrator) GetEvents(ctx context.Context, ns string, filter database.AndFilter) ([]*fftypes.Event, error) { 278 ret := _m.Called(ctx, ns, filter) 279 280 var r0 []*fftypes.Event 281 if rf, ok := ret.Get(0).(func(context.Context, string, database.AndFilter) []*fftypes.Event); ok { 282 r0 = rf(ctx, ns, filter) 283 } else { 284 if ret.Get(0) != nil { 285 r0 = ret.Get(0).([]*fftypes.Event) 286 } 287 } 288 289 var r1 error 290 if rf, ok := ret.Get(1).(func(context.Context, string, database.AndFilter) error); ok { 291 r1 = rf(ctx, ns, filter) 292 } else { 293 r1 = ret.Error(1) 294 } 295 296 return r0, r1 297 } 298 299 // GetMessageByID provides a mock function with given fields: ctx, ns, id, withValues 300 func (_m *Orchestrator) GetMessageByID(ctx context.Context, ns string, id string, withValues bool) (*fftypes.MessageInput, error) { 301 ret := _m.Called(ctx, ns, id, withValues) 302 303 var r0 *fftypes.MessageInput 304 if rf, ok := ret.Get(0).(func(context.Context, string, string, bool) *fftypes.MessageInput); ok { 305 r0 = rf(ctx, ns, id, withValues) 306 } else { 307 if ret.Get(0) != nil { 308 r0 = ret.Get(0).(*fftypes.MessageInput) 309 } 310 } 311 312 var r1 error 313 if rf, ok := ret.Get(1).(func(context.Context, string, string, bool) error); ok { 314 r1 = rf(ctx, ns, id, withValues) 315 } else { 316 r1 = ret.Error(1) 317 } 318 319 return r0, r1 320 } 321 322 // GetMessageData provides a mock function with given fields: ctx, ns, id 323 func (_m *Orchestrator) GetMessageData(ctx context.Context, ns string, id string) ([]*fftypes.Data, error) { 324 ret := _m.Called(ctx, ns, id) 325 326 var r0 []*fftypes.Data 327 if rf, ok := ret.Get(0).(func(context.Context, string, string) []*fftypes.Data); ok { 328 r0 = rf(ctx, ns, id) 329 } else { 330 if ret.Get(0) != nil { 331 r0 = ret.Get(0).([]*fftypes.Data) 332 } 333 } 334 335 var r1 error 336 if rf, ok := ret.Get(1).(func(context.Context, string, string) error); ok { 337 r1 = rf(ctx, ns, id) 338 } else { 339 r1 = ret.Error(1) 340 } 341 342 return r0, r1 343 } 344 345 // GetMessageEvents provides a mock function with given fields: ctx, ns, id, filter 346 func (_m *Orchestrator) GetMessageEvents(ctx context.Context, ns string, id string, filter database.AndFilter) ([]*fftypes.Event, error) { 347 ret := _m.Called(ctx, ns, id, filter) 348 349 var r0 []*fftypes.Event 350 if rf, ok := ret.Get(0).(func(context.Context, string, string, database.AndFilter) []*fftypes.Event); ok { 351 r0 = rf(ctx, ns, id, filter) 352 } else { 353 if ret.Get(0) != nil { 354 r0 = ret.Get(0).([]*fftypes.Event) 355 } 356 } 357 358 var r1 error 359 if rf, ok := ret.Get(1).(func(context.Context, string, string, database.AndFilter) error); ok { 360 r1 = rf(ctx, ns, id, filter) 361 } else { 362 r1 = ret.Error(1) 363 } 364 365 return r0, r1 366 } 367 368 // GetMessageOperations provides a mock function with given fields: ctx, ns, id 369 func (_m *Orchestrator) GetMessageOperations(ctx context.Context, ns string, id string) ([]*fftypes.Operation, error) { 370 ret := _m.Called(ctx, ns, id) 371 372 var r0 []*fftypes.Operation 373 if rf, ok := ret.Get(0).(func(context.Context, string, string) []*fftypes.Operation); ok { 374 r0 = rf(ctx, ns, id) 375 } else { 376 if ret.Get(0) != nil { 377 r0 = ret.Get(0).([]*fftypes.Operation) 378 } 379 } 380 381 var r1 error 382 if rf, ok := ret.Get(1).(func(context.Context, string, string) error); ok { 383 r1 = rf(ctx, ns, id) 384 } else { 385 r1 = ret.Error(1) 386 } 387 388 return r0, r1 389 } 390 391 // GetMessageTransaction provides a mock function with given fields: ctx, ns, id 392 func (_m *Orchestrator) GetMessageTransaction(ctx context.Context, ns string, id string) (*fftypes.Transaction, error) { 393 ret := _m.Called(ctx, ns, id) 394 395 var r0 *fftypes.Transaction 396 if rf, ok := ret.Get(0).(func(context.Context, string, string) *fftypes.Transaction); ok { 397 r0 = rf(ctx, ns, id) 398 } else { 399 if ret.Get(0) != nil { 400 r0 = ret.Get(0).(*fftypes.Transaction) 401 } 402 } 403 404 var r1 error 405 if rf, ok := ret.Get(1).(func(context.Context, string, string) error); ok { 406 r1 = rf(ctx, ns, id) 407 } else { 408 r1 = ret.Error(1) 409 } 410 411 return r0, r1 412 } 413 414 // GetMessages provides a mock function with given fields: ctx, ns, filter 415 func (_m *Orchestrator) GetMessages(ctx context.Context, ns string, filter database.AndFilter) ([]*fftypes.Message, error) { 416 ret := _m.Called(ctx, ns, filter) 417 418 var r0 []*fftypes.Message 419 if rf, ok := ret.Get(0).(func(context.Context, string, database.AndFilter) []*fftypes.Message); ok { 420 r0 = rf(ctx, ns, filter) 421 } else { 422 if ret.Get(0) != nil { 423 r0 = ret.Get(0).([]*fftypes.Message) 424 } 425 } 426 427 var r1 error 428 if rf, ok := ret.Get(1).(func(context.Context, string, database.AndFilter) error); ok { 429 r1 = rf(ctx, ns, filter) 430 } else { 431 r1 = ret.Error(1) 432 } 433 434 return r0, r1 435 } 436 437 // GetMessagesForData provides a mock function with given fields: ctx, ns, dataID, filter 438 func (_m *Orchestrator) GetMessagesForData(ctx context.Context, ns string, dataID string, filter database.AndFilter) ([]*fftypes.Message, error) { 439 ret := _m.Called(ctx, ns, dataID, filter) 440 441 var r0 []*fftypes.Message 442 if rf, ok := ret.Get(0).(func(context.Context, string, string, database.AndFilter) []*fftypes.Message); ok { 443 r0 = rf(ctx, ns, dataID, filter) 444 } else { 445 if ret.Get(0) != nil { 446 r0 = ret.Get(0).([]*fftypes.Message) 447 } 448 } 449 450 var r1 error 451 if rf, ok := ret.Get(1).(func(context.Context, string, string, database.AndFilter) error); ok { 452 r1 = rf(ctx, ns, dataID, filter) 453 } else { 454 r1 = ret.Error(1) 455 } 456 457 return r0, r1 458 } 459 460 // GetNamespace provides a mock function with given fields: ctx, ns 461 func (_m *Orchestrator) GetNamespace(ctx context.Context, ns string) (*fftypes.Namespace, error) { 462 ret := _m.Called(ctx, ns) 463 464 var r0 *fftypes.Namespace 465 if rf, ok := ret.Get(0).(func(context.Context, string) *fftypes.Namespace); ok { 466 r0 = rf(ctx, ns) 467 } else { 468 if ret.Get(0) != nil { 469 r0 = ret.Get(0).(*fftypes.Namespace) 470 } 471 } 472 473 var r1 error 474 if rf, ok := ret.Get(1).(func(context.Context, string) error); ok { 475 r1 = rf(ctx, ns) 476 } else { 477 r1 = ret.Error(1) 478 } 479 480 return r0, r1 481 } 482 483 // GetNamespaces provides a mock function with given fields: ctx, filter 484 func (_m *Orchestrator) GetNamespaces(ctx context.Context, filter database.AndFilter) ([]*fftypes.Namespace, error) { 485 ret := _m.Called(ctx, filter) 486 487 var r0 []*fftypes.Namespace 488 if rf, ok := ret.Get(0).(func(context.Context, database.AndFilter) []*fftypes.Namespace); ok { 489 r0 = rf(ctx, filter) 490 } else { 491 if ret.Get(0) != nil { 492 r0 = ret.Get(0).([]*fftypes.Namespace) 493 } 494 } 495 496 var r1 error 497 if rf, ok := ret.Get(1).(func(context.Context, database.AndFilter) error); ok { 498 r1 = rf(ctx, filter) 499 } else { 500 r1 = ret.Error(1) 501 } 502 503 return r0, r1 504 } 505 506 // GetOperationByID provides a mock function with given fields: ctx, ns, id 507 func (_m *Orchestrator) GetOperationByID(ctx context.Context, ns string, id string) (*fftypes.Operation, error) { 508 ret := _m.Called(ctx, ns, id) 509 510 var r0 *fftypes.Operation 511 if rf, ok := ret.Get(0).(func(context.Context, string, string) *fftypes.Operation); ok { 512 r0 = rf(ctx, ns, id) 513 } else { 514 if ret.Get(0) != nil { 515 r0 = ret.Get(0).(*fftypes.Operation) 516 } 517 } 518 519 var r1 error 520 if rf, ok := ret.Get(1).(func(context.Context, string, string) error); ok { 521 r1 = rf(ctx, ns, id) 522 } else { 523 r1 = ret.Error(1) 524 } 525 526 return r0, r1 527 } 528 529 // GetOperations provides a mock function with given fields: ctx, ns, filter 530 func (_m *Orchestrator) GetOperations(ctx context.Context, ns string, filter database.AndFilter) ([]*fftypes.Operation, error) { 531 ret := _m.Called(ctx, ns, filter) 532 533 var r0 []*fftypes.Operation 534 if rf, ok := ret.Get(0).(func(context.Context, string, database.AndFilter) []*fftypes.Operation); ok { 535 r0 = rf(ctx, ns, filter) 536 } else { 537 if ret.Get(0) != nil { 538 r0 = ret.Get(0).([]*fftypes.Operation) 539 } 540 } 541 542 var r1 error 543 if rf, ok := ret.Get(1).(func(context.Context, string, database.AndFilter) error); ok { 544 r1 = rf(ctx, ns, filter) 545 } else { 546 r1 = ret.Error(1) 547 } 548 549 return r0, r1 550 } 551 552 // GetSubscriptionByID provides a mock function with given fields: ctx, ns, id 553 func (_m *Orchestrator) GetSubscriptionByID(ctx context.Context, ns string, id string) (*fftypes.Subscription, error) { 554 ret := _m.Called(ctx, ns, id) 555 556 var r0 *fftypes.Subscription 557 if rf, ok := ret.Get(0).(func(context.Context, string, string) *fftypes.Subscription); ok { 558 r0 = rf(ctx, ns, id) 559 } else { 560 if ret.Get(0) != nil { 561 r0 = ret.Get(0).(*fftypes.Subscription) 562 } 563 } 564 565 var r1 error 566 if rf, ok := ret.Get(1).(func(context.Context, string, string) error); ok { 567 r1 = rf(ctx, ns, id) 568 } else { 569 r1 = ret.Error(1) 570 } 571 572 return r0, r1 573 } 574 575 // GetSubscriptions provides a mock function with given fields: ctx, ns, filter 576 func (_m *Orchestrator) GetSubscriptions(ctx context.Context, ns string, filter database.AndFilter) ([]*fftypes.Subscription, error) { 577 ret := _m.Called(ctx, ns, filter) 578 579 var r0 []*fftypes.Subscription 580 if rf, ok := ret.Get(0).(func(context.Context, string, database.AndFilter) []*fftypes.Subscription); ok { 581 r0 = rf(ctx, ns, filter) 582 } else { 583 if ret.Get(0) != nil { 584 r0 = ret.Get(0).([]*fftypes.Subscription) 585 } 586 } 587 588 var r1 error 589 if rf, ok := ret.Get(1).(func(context.Context, string, database.AndFilter) error); ok { 590 r1 = rf(ctx, ns, filter) 591 } else { 592 r1 = ret.Error(1) 593 } 594 595 return r0, r1 596 } 597 598 // GetTransactionByID provides a mock function with given fields: ctx, ns, id 599 func (_m *Orchestrator) GetTransactionByID(ctx context.Context, ns string, id string) (*fftypes.Transaction, error) { 600 ret := _m.Called(ctx, ns, id) 601 602 var r0 *fftypes.Transaction 603 if rf, ok := ret.Get(0).(func(context.Context, string, string) *fftypes.Transaction); ok { 604 r0 = rf(ctx, ns, id) 605 } else { 606 if ret.Get(0) != nil { 607 r0 = ret.Get(0).(*fftypes.Transaction) 608 } 609 } 610 611 var r1 error 612 if rf, ok := ret.Get(1).(func(context.Context, string, string) error); ok { 613 r1 = rf(ctx, ns, id) 614 } else { 615 r1 = ret.Error(1) 616 } 617 618 return r0, r1 619 } 620 621 // GetTransactionOperations provides a mock function with given fields: ctx, ns, id 622 func (_m *Orchestrator) GetTransactionOperations(ctx context.Context, ns string, id string) ([]*fftypes.Operation, error) { 623 ret := _m.Called(ctx, ns, id) 624 625 var r0 []*fftypes.Operation 626 if rf, ok := ret.Get(0).(func(context.Context, string, string) []*fftypes.Operation); ok { 627 r0 = rf(ctx, ns, id) 628 } else { 629 if ret.Get(0) != nil { 630 r0 = ret.Get(0).([]*fftypes.Operation) 631 } 632 } 633 634 var r1 error 635 if rf, ok := ret.Get(1).(func(context.Context, string, string) error); ok { 636 r1 = rf(ctx, ns, id) 637 } else { 638 r1 = ret.Error(1) 639 } 640 641 return r0, r1 642 } 643 644 // GetTransactions provides a mock function with given fields: ctx, ns, filter 645 func (_m *Orchestrator) GetTransactions(ctx context.Context, ns string, filter database.AndFilter) ([]*fftypes.Transaction, error) { 646 ret := _m.Called(ctx, ns, filter) 647 648 var r0 []*fftypes.Transaction 649 if rf, ok := ret.Get(0).(func(context.Context, string, database.AndFilter) []*fftypes.Transaction); ok { 650 r0 = rf(ctx, ns, filter) 651 } else { 652 if ret.Get(0) != nil { 653 r0 = ret.Get(0).([]*fftypes.Transaction) 654 } 655 } 656 657 var r1 error 658 if rf, ok := ret.Get(1).(func(context.Context, string, database.AndFilter) error); ok { 659 r1 = rf(ctx, ns, filter) 660 } else { 661 r1 = ret.Error(1) 662 } 663 664 return r0, r1 665 } 666 667 // Init provides a mock function with given fields: ctx 668 func (_m *Orchestrator) Init(ctx context.Context) error { 669 ret := _m.Called(ctx) 670 671 var r0 error 672 if rf, ok := ret.Get(0).(func(context.Context) error); ok { 673 r0 = rf(ctx) 674 } else { 675 r0 = ret.Error(0) 676 } 677 678 return r0 679 } 680 681 // NetworkMap provides a mock function with given fields: 682 func (_m *Orchestrator) NetworkMap() networkmap.Manager { 683 ret := _m.Called() 684 685 var r0 networkmap.Manager 686 if rf, ok := ret.Get(0).(func() networkmap.Manager); ok { 687 r0 = rf() 688 } else { 689 if ret.Get(0) != nil { 690 r0 = ret.Get(0).(networkmap.Manager) 691 } 692 } 693 694 return r0 695 } 696 697 // PrivateMessaging provides a mock function with given fields: 698 func (_m *Orchestrator) PrivateMessaging() privatemessaging.Manager { 699 ret := _m.Called() 700 701 var r0 privatemessaging.Manager 702 if rf, ok := ret.Get(0).(func() privatemessaging.Manager); ok { 703 r0 = rf() 704 } else { 705 if ret.Get(0) != nil { 706 r0 = ret.Get(0).(privatemessaging.Manager) 707 } 708 } 709 710 return r0 711 } 712 713 // Start provides a mock function with given fields: 714 func (_m *Orchestrator) Start() error { 715 ret := _m.Called() 716 717 var r0 error 718 if rf, ok := ret.Get(0).(func() error); ok { 719 r0 = rf() 720 } else { 721 r0 = ret.Error(0) 722 } 723 724 return r0 725 } 726 727 // WaitStop provides a mock function with given fields: 728 func (_m *Orchestrator) WaitStop() { 729 _m.Called() 730 }