1// Package mocks Code generated by mockery v1.0.0. DO NOT EDIT.
2// mockery -recursive -dir=vendor/github.com/gambol99/ -name=Marathon -output=provider/marathon/mocks
3package mocks
4
5import (
6	"net/url"
7	"time"
8
9	"github.com/gambol99/go-marathon"
10	"github.com/stretchr/testify/mock"
11)
12
13// Marathon is an autogenerated mock type for the Marathon type
14type Marathon struct {
15	mock.Mock
16}
17
18// AbdicateLeader provides a mock function with given fields:
19func (_m *Marathon) AbdicateLeader() (string, error) {
20	ret := _m.Called()
21
22	var r0 string
23	if rf, ok := ret.Get(0).(func() string); ok {
24		r0 = rf()
25	} else {
26		r0 = ret.Get(0).(string)
27	}
28
29	var r1 error
30	if rf, ok := ret.Get(1).(func() error); ok {
31		r1 = rf()
32	} else {
33		r1 = ret.Error(1)
34	}
35
36	return r0, r1
37}
38
39// AddEventsListener provides a mock function with given fields: filter
40func (_m *Marathon) AddEventsListener(filter int) (marathon.EventsChannel, error) {
41	ret := _m.Called(filter)
42
43	var r0 marathon.EventsChannel
44	if rf, ok := ret.Get(0).(func(int) marathon.EventsChannel); ok {
45		r0 = rf(filter)
46	} else {
47		if ret.Get(0) != nil {
48			r0 = ret.Get(0).(marathon.EventsChannel)
49		}
50	}
51
52	var r1 error
53	if rf, ok := ret.Get(1).(func(int) error); ok {
54		r1 = rf(filter)
55	} else {
56		r1 = ret.Error(1)
57	}
58
59	return r0, r1
60}
61
62// AllTasks provides a mock function with given fields: opts
63func (_m *Marathon) AllTasks(opts *marathon.AllTasksOpts) (*marathon.Tasks, error) {
64	ret := _m.Called(opts)
65
66	var r0 *marathon.Tasks
67	if rf, ok := ret.Get(0).(func(*marathon.AllTasksOpts) *marathon.Tasks); ok {
68		r0 = rf(opts)
69	} else {
70		if ret.Get(0) != nil {
71			r0 = ret.Get(0).(*marathon.Tasks)
72		}
73	}
74
75	var r1 error
76	if rf, ok := ret.Get(1).(func(*marathon.AllTasksOpts) error); ok {
77		r1 = rf(opts)
78	} else {
79		r1 = ret.Error(1)
80	}
81
82	return r0, r1
83}
84
85// Application provides a mock function with given fields: name
86func (_m *Marathon) Application(name string) (*marathon.Application, error) {
87	ret := _m.Called(name)
88
89	var r0 *marathon.Application
90	if rf, ok := ret.Get(0).(func(string) *marathon.Application); ok {
91		r0 = rf(name)
92	} else {
93		if ret.Get(0) != nil {
94			r0 = ret.Get(0).(*marathon.Application)
95		}
96	}
97
98	var r1 error
99	if rf, ok := ret.Get(1).(func(string) error); ok {
100		r1 = rf(name)
101	} else {
102		r1 = ret.Error(1)
103	}
104
105	return r0, r1
106}
107
108// ApplicationBy provides a mock function with given fields: name, opts
109func (_m *Marathon) ApplicationBy(name string, opts *marathon.GetAppOpts) (*marathon.Application, error) {
110	ret := _m.Called(name, opts)
111
112	var r0 *marathon.Application
113	if rf, ok := ret.Get(0).(func(string, *marathon.GetAppOpts) *marathon.Application); ok {
114		r0 = rf(name, opts)
115	} else {
116		if ret.Get(0) != nil {
117			r0 = ret.Get(0).(*marathon.Application)
118		}
119	}
120
121	var r1 error
122	if rf, ok := ret.Get(1).(func(string, *marathon.GetAppOpts) error); ok {
123		r1 = rf(name, opts)
124	} else {
125		r1 = ret.Error(1)
126	}
127
128	return r0, r1
129}
130
131// ApplicationByVersion provides a mock function with given fields: name, version
132func (_m *Marathon) ApplicationByVersion(name, version string) (*marathon.Application, error) {
133	ret := _m.Called(name, version)
134
135	var r0 *marathon.Application
136	if rf, ok := ret.Get(0).(func(string, string) *marathon.Application); ok {
137		r0 = rf(name, version)
138	} else {
139		if ret.Get(0) != nil {
140			r0 = ret.Get(0).(*marathon.Application)
141		}
142	}
143
144	var r1 error
145	if rf, ok := ret.Get(1).(func(string, string) error); ok {
146		r1 = rf(name, version)
147	} else {
148		r1 = ret.Error(1)
149	}
150
151	return r0, r1
152}
153
154// ApplicationDeployments provides a mock function with given fields: name
155func (_m *Marathon) ApplicationDeployments(name string) ([]*marathon.DeploymentID, error) {
156	ret := _m.Called(name)
157
158	var r0 []*marathon.DeploymentID
159	if rf, ok := ret.Get(0).(func(string) []*marathon.DeploymentID); ok {
160		r0 = rf(name)
161	} else {
162		if ret.Get(0) != nil {
163			r0 = ret.Get(0).([]*marathon.DeploymentID)
164		}
165	}
166
167	var r1 error
168	if rf, ok := ret.Get(1).(func(string) error); ok {
169		r1 = rf(name)
170	} else {
171		r1 = ret.Error(1)
172	}
173
174	return r0, r1
175}
176
177// ApplicationOK provides a mock function with given fields: name
178func (_m *Marathon) ApplicationOK(name string) (bool, error) {
179	ret := _m.Called(name)
180
181	var r0 bool
182	if rf, ok := ret.Get(0).(func(string) bool); ok {
183		r0 = rf(name)
184	} else {
185		r0 = ret.Get(0).(bool)
186	}
187
188	var r1 error
189	if rf, ok := ret.Get(1).(func(string) error); ok {
190		r1 = rf(name)
191	} else {
192		r1 = ret.Error(1)
193	}
194
195	return r0, r1
196}
197
198// ApplicationVersions provides a mock function with given fields: name
199func (_m *Marathon) ApplicationVersions(name string) (*marathon.ApplicationVersions, error) {
200	ret := _m.Called(name)
201
202	var r0 *marathon.ApplicationVersions
203	if rf, ok := ret.Get(0).(func(string) *marathon.ApplicationVersions); ok {
204		r0 = rf(name)
205	} else {
206		if ret.Get(0) != nil {
207			r0 = ret.Get(0).(*marathon.ApplicationVersions)
208		}
209	}
210
211	var r1 error
212	if rf, ok := ret.Get(1).(func(string) error); ok {
213		r1 = rf(name)
214	} else {
215		r1 = ret.Error(1)
216	}
217
218	return r0, r1
219}
220
221// Applications provides a mock function with given fields: _a0
222func (_m *Marathon) Applications(_a0 url.Values) (*marathon.Applications, error) {
223	ret := _m.Called(_a0)
224
225	var r0 *marathon.Applications
226	if rf, ok := ret.Get(0).(func(url.Values) *marathon.Applications); ok {
227		r0 = rf(_a0)
228	} else {
229		if ret.Get(0) != nil {
230			r0 = ret.Get(0).(*marathon.Applications)
231		}
232	}
233
234	var r1 error
235	if rf, ok := ret.Get(1).(func(url.Values) error); ok {
236		r1 = rf(_a0)
237	} else {
238		r1 = ret.Error(1)
239	}
240
241	return r0, r1
242}
243
244// CreateApplication provides a mock function with given fields: application
245func (_m *Marathon) CreateApplication(application *marathon.Application) (*marathon.Application, error) {
246	ret := _m.Called(application)
247
248	var r0 *marathon.Application
249	if rf, ok := ret.Get(0).(func(*marathon.Application) *marathon.Application); ok {
250		r0 = rf(application)
251	} else {
252		if ret.Get(0) != nil {
253			r0 = ret.Get(0).(*marathon.Application)
254		}
255	}
256
257	var r1 error
258	if rf, ok := ret.Get(1).(func(*marathon.Application) error); ok {
259		r1 = rf(application)
260	} else {
261		r1 = ret.Error(1)
262	}
263
264	return r0, r1
265}
266
267// CreateGroup provides a mock function with given fields: group
268func (_m *Marathon) CreateGroup(group *marathon.Group) error {
269	ret := _m.Called(group)
270
271	var r0 error
272	if rf, ok := ret.Get(0).(func(*marathon.Group) error); ok {
273		r0 = rf(group)
274	} else {
275		r0 = ret.Error(0)
276	}
277
278	return r0
279}
280
281// CreatePod provides a mock function with given fields: pod
282func (_m *Marathon) CreatePod(pod *marathon.Pod) (*marathon.Pod, error) {
283	ret := _m.Called(pod)
284
285	var r0 *marathon.Pod
286	if rf, ok := ret.Get(0).(func(*marathon.Pod) *marathon.Pod); ok {
287		r0 = rf(pod)
288	} else {
289		if ret.Get(0) != nil {
290			r0 = ret.Get(0).(*marathon.Pod)
291		}
292	}
293
294	var r1 error
295	if rf, ok := ret.Get(1).(func(*marathon.Pod) error); ok {
296		r1 = rf(pod)
297	} else {
298		r1 = ret.Error(1)
299	}
300
301	return r0, r1
302}
303
304// DeleteApplication provides a mock function with given fields: name, force
305func (_m *Marathon) DeleteApplication(name string, force bool) (*marathon.DeploymentID, error) {
306	ret := _m.Called(name, force)
307
308	var r0 *marathon.DeploymentID
309	if rf, ok := ret.Get(0).(func(string, bool) *marathon.DeploymentID); ok {
310		r0 = rf(name, force)
311	} else {
312		if ret.Get(0) != nil {
313			r0 = ret.Get(0).(*marathon.DeploymentID)
314		}
315	}
316
317	var r1 error
318	if rf, ok := ret.Get(1).(func(string, bool) error); ok {
319		r1 = rf(name, force)
320	} else {
321		r1 = ret.Error(1)
322	}
323
324	return r0, r1
325}
326
327// DeleteDeployment provides a mock function with given fields: id, force
328func (_m *Marathon) DeleteDeployment(id string, force bool) (*marathon.DeploymentID, error) {
329	ret := _m.Called(id, force)
330
331	var r0 *marathon.DeploymentID
332	if rf, ok := ret.Get(0).(func(string, bool) *marathon.DeploymentID); ok {
333		r0 = rf(id, force)
334	} else {
335		if ret.Get(0) != nil {
336			r0 = ret.Get(0).(*marathon.DeploymentID)
337		}
338	}
339
340	var r1 error
341	if rf, ok := ret.Get(1).(func(string, bool) error); ok {
342		r1 = rf(id, force)
343	} else {
344		r1 = ret.Error(1)
345	}
346
347	return r0, r1
348}
349
350// DeleteGroup provides a mock function with given fields: name, force
351func (_m *Marathon) DeleteGroup(name string, force bool) (*marathon.DeploymentID, error) {
352	ret := _m.Called(name, force)
353
354	var r0 *marathon.DeploymentID
355	if rf, ok := ret.Get(0).(func(string, bool) *marathon.DeploymentID); ok {
356		r0 = rf(name, force)
357	} else {
358		if ret.Get(0) != nil {
359			r0 = ret.Get(0).(*marathon.DeploymentID)
360		}
361	}
362
363	var r1 error
364	if rf, ok := ret.Get(1).(func(string, bool) error); ok {
365		r1 = rf(name, force)
366	} else {
367		r1 = ret.Error(1)
368	}
369
370	return r0, r1
371}
372
373// DeletePod provides a mock function with given fields: name, force
374func (_m *Marathon) DeletePod(name string, force bool) (*marathon.DeploymentID, error) {
375	ret := _m.Called(name, force)
376
377	var r0 *marathon.DeploymentID
378	if rf, ok := ret.Get(0).(func(string, bool) *marathon.DeploymentID); ok {
379		r0 = rf(name, force)
380	} else {
381		if ret.Get(0) != nil {
382			r0 = ret.Get(0).(*marathon.DeploymentID)
383		}
384	}
385
386	var r1 error
387	if rf, ok := ret.Get(1).(func(string, bool) error); ok {
388		r1 = rf(name, force)
389	} else {
390		r1 = ret.Error(1)
391	}
392
393	return r0, r1
394}
395
396// DeletePodInstance provides a mock function with given fields: name, instance
397func (_m *Marathon) DeletePodInstance(name, instance string) (*marathon.PodInstance, error) {
398	ret := _m.Called(name, instance)
399
400	var r0 *marathon.PodInstance
401	if rf, ok := ret.Get(0).(func(string, string) *marathon.PodInstance); ok {
402		r0 = rf(name, instance)
403	} else {
404		if ret.Get(0) != nil {
405			r0 = ret.Get(0).(*marathon.PodInstance)
406		}
407	}
408
409	var r1 error
410	if rf, ok := ret.Get(1).(func(string, string) error); ok {
411		r1 = rf(name, instance)
412	} else {
413		r1 = ret.Error(1)
414	}
415
416	return r0, r1
417}
418
419// DeletePodInstances provides a mock function with given fields: name, instances
420func (_m *Marathon) DeletePodInstances(name string, instances []string) ([]*marathon.PodInstance, error) {
421	ret := _m.Called(name, instances)
422
423	var r0 []*marathon.PodInstance
424	if rf, ok := ret.Get(0).(func(string, []string) []*marathon.PodInstance); ok {
425		r0 = rf(name, instances)
426	} else {
427		if ret.Get(0) != nil {
428			r0 = ret.Get(0).([]*marathon.PodInstance)
429		}
430	}
431
432	var r1 error
433	if rf, ok := ret.Get(1).(func(string, []string) error); ok {
434		r1 = rf(name, instances)
435	} else {
436		r1 = ret.Error(1)
437	}
438
439	return r0, r1
440}
441
442// DeleteQueueDelay provides a mock function with given fields: appID
443func (_m *Marathon) DeleteQueueDelay(appID string) error {
444	ret := _m.Called(appID)
445
446	var r0 error
447	if rf, ok := ret.Get(0).(func(string) error); ok {
448		r0 = rf(appID)
449	} else {
450		r0 = ret.Error(0)
451	}
452
453	return r0
454}
455
456// Deployments provides a mock function with given fields:
457func (_m *Marathon) Deployments() ([]*marathon.Deployment, error) {
458	ret := _m.Called()
459
460	var r0 []*marathon.Deployment
461	if rf, ok := ret.Get(0).(func() []*marathon.Deployment); ok {
462		r0 = rf()
463	} else {
464		if ret.Get(0) != nil {
465			r0 = ret.Get(0).([]*marathon.Deployment)
466		}
467	}
468
469	var r1 error
470	if rf, ok := ret.Get(1).(func() error); ok {
471		r1 = rf()
472	} else {
473		r1 = ret.Error(1)
474	}
475
476	return r0, r1
477}
478
479// GetMarathonURL provides a mock function with given fields:
480func (_m *Marathon) GetMarathonURL() string {
481	ret := _m.Called()
482
483	var r0 string
484	if rf, ok := ret.Get(0).(func() string); ok {
485		r0 = rf()
486	} else {
487		r0 = ret.Get(0).(string)
488	}
489
490	return r0
491}
492
493// Group provides a mock function with given fields: name
494func (_m *Marathon) Group(name string) (*marathon.Group, error) {
495	ret := _m.Called(name)
496
497	var r0 *marathon.Group
498	if rf, ok := ret.Get(0).(func(string) *marathon.Group); ok {
499		r0 = rf(name)
500	} else {
501		if ret.Get(0) != nil {
502			r0 = ret.Get(0).(*marathon.Group)
503		}
504	}
505
506	var r1 error
507	if rf, ok := ret.Get(1).(func(string) error); ok {
508		r1 = rf(name)
509	} else {
510		r1 = ret.Error(1)
511	}
512
513	return r0, r1
514}
515
516// GroupBy provides a mock function with given fields: name, opts
517func (_m *Marathon) GroupBy(name string, opts *marathon.GetGroupOpts) (*marathon.Group, error) {
518	ret := _m.Called(name, opts)
519
520	var r0 *marathon.Group
521	if rf, ok := ret.Get(0).(func(string, *marathon.GetGroupOpts) *marathon.Group); ok {
522		r0 = rf(name, opts)
523	} else {
524		if ret.Get(0) != nil {
525			r0 = ret.Get(0).(*marathon.Group)
526		}
527	}
528
529	var r1 error
530	if rf, ok := ret.Get(1).(func(string, *marathon.GetGroupOpts) error); ok {
531		r1 = rf(name, opts)
532	} else {
533		r1 = ret.Error(1)
534	}
535
536	return r0, r1
537}
538
539// Groups provides a mock function with given fields:
540func (_m *Marathon) Groups() (*marathon.Groups, error) {
541	ret := _m.Called()
542
543	var r0 *marathon.Groups
544	if rf, ok := ret.Get(0).(func() *marathon.Groups); ok {
545		r0 = rf()
546	} else {
547		if ret.Get(0) != nil {
548			r0 = ret.Get(0).(*marathon.Groups)
549		}
550	}
551
552	var r1 error
553	if rf, ok := ret.Get(1).(func() error); ok {
554		r1 = rf()
555	} else {
556		r1 = ret.Error(1)
557	}
558
559	return r0, r1
560}
561
562// GroupsBy provides a mock function with given fields: opts
563func (_m *Marathon) GroupsBy(opts *marathon.GetGroupOpts) (*marathon.Groups, error) {
564	ret := _m.Called(opts)
565
566	var r0 *marathon.Groups
567	if rf, ok := ret.Get(0).(func(*marathon.GetGroupOpts) *marathon.Groups); ok {
568		r0 = rf(opts)
569	} else {
570		if ret.Get(0) != nil {
571			r0 = ret.Get(0).(*marathon.Groups)
572		}
573	}
574
575	var r1 error
576	if rf, ok := ret.Get(1).(func(*marathon.GetGroupOpts) error); ok {
577		r1 = rf(opts)
578	} else {
579		r1 = ret.Error(1)
580	}
581
582	return r0, r1
583}
584
585// HasApplicationVersion provides a mock function with given fields: name, version
586func (_m *Marathon) HasApplicationVersion(name, version string) (bool, error) {
587	ret := _m.Called(name, version)
588
589	var r0 bool
590	if rf, ok := ret.Get(0).(func(string, string) bool); ok {
591		r0 = rf(name, version)
592	} else {
593		r0 = ret.Get(0).(bool)
594	}
595
596	var r1 error
597	if rf, ok := ret.Get(1).(func(string, string) error); ok {
598		r1 = rf(name, version)
599	} else {
600		r1 = ret.Error(1)
601	}
602
603	return r0, r1
604}
605
606// HasDeployment provides a mock function with given fields: id
607func (_m *Marathon) HasDeployment(id string) (bool, error) {
608	ret := _m.Called(id)
609
610	var r0 bool
611	if rf, ok := ret.Get(0).(func(string) bool); ok {
612		r0 = rf(id)
613	} else {
614		r0 = ret.Get(0).(bool)
615	}
616
617	var r1 error
618	if rf, ok := ret.Get(1).(func(string) error); ok {
619		r1 = rf(id)
620	} else {
621		r1 = ret.Error(1)
622	}
623
624	return r0, r1
625}
626
627// HasGroup provides a mock function with given fields: name
628func (_m *Marathon) HasGroup(name string) (bool, error) {
629	ret := _m.Called(name)
630
631	var r0 bool
632	if rf, ok := ret.Get(0).(func(string) bool); ok {
633		r0 = rf(name)
634	} else {
635		r0 = ret.Get(0).(bool)
636	}
637
638	var r1 error
639	if rf, ok := ret.Get(1).(func(string) error); ok {
640		r1 = rf(name)
641	} else {
642		r1 = ret.Error(1)
643	}
644
645	return r0, r1
646}
647
648// Info provides a mock function with given fields:
649func (_m *Marathon) Info() (*marathon.Info, error) {
650	ret := _m.Called()
651
652	var r0 *marathon.Info
653	if rf, ok := ret.Get(0).(func() *marathon.Info); ok {
654		r0 = rf()
655	} else {
656		if ret.Get(0) != nil {
657			r0 = ret.Get(0).(*marathon.Info)
658		}
659	}
660
661	var r1 error
662	if rf, ok := ret.Get(1).(func() error); ok {
663		r1 = rf()
664	} else {
665		r1 = ret.Error(1)
666	}
667
668	return r0, r1
669}
670
671// KillApplicationTasks provides a mock function with given fields: applicationID, opts
672func (_m *Marathon) KillApplicationTasks(applicationID string, opts *marathon.KillApplicationTasksOpts) (*marathon.Tasks, error) {
673	ret := _m.Called(applicationID, opts)
674
675	var r0 *marathon.Tasks
676	if rf, ok := ret.Get(0).(func(string, *marathon.KillApplicationTasksOpts) *marathon.Tasks); ok {
677		r0 = rf(applicationID, opts)
678	} else {
679		if ret.Get(0) != nil {
680			r0 = ret.Get(0).(*marathon.Tasks)
681		}
682	}
683
684	var r1 error
685	if rf, ok := ret.Get(1).(func(string, *marathon.KillApplicationTasksOpts) error); ok {
686		r1 = rf(applicationID, opts)
687	} else {
688		r1 = ret.Error(1)
689	}
690
691	return r0, r1
692}
693
694// KillTask provides a mock function with given fields: taskID, opts
695func (_m *Marathon) KillTask(taskID string, opts *marathon.KillTaskOpts) (*marathon.Task, error) {
696	ret := _m.Called(taskID, opts)
697
698	var r0 *marathon.Task
699	if rf, ok := ret.Get(0).(func(string, *marathon.KillTaskOpts) *marathon.Task); ok {
700		r0 = rf(taskID, opts)
701	} else {
702		if ret.Get(0) != nil {
703			r0 = ret.Get(0).(*marathon.Task)
704		}
705	}
706
707	var r1 error
708	if rf, ok := ret.Get(1).(func(string, *marathon.KillTaskOpts) error); ok {
709		r1 = rf(taskID, opts)
710	} else {
711		r1 = ret.Error(1)
712	}
713
714	return r0, r1
715}
716
717// KillTasks provides a mock function with given fields: taskIDs, opts
718func (_m *Marathon) KillTasks(taskIDs []string, opts *marathon.KillTaskOpts) error {
719	ret := _m.Called(taskIDs, opts)
720
721	var r0 error
722	if rf, ok := ret.Get(0).(func([]string, *marathon.KillTaskOpts) error); ok {
723		r0 = rf(taskIDs, opts)
724	} else {
725		r0 = ret.Error(0)
726	}
727
728	return r0
729}
730
731// Leader provides a mock function with given fields:
732func (_m *Marathon) Leader() (string, error) {
733	ret := _m.Called()
734
735	var r0 string
736	if rf, ok := ret.Get(0).(func() string); ok {
737		r0 = rf()
738	} else {
739		r0 = ret.Get(0).(string)
740	}
741
742	var r1 error
743	if rf, ok := ret.Get(1).(func() error); ok {
744		r1 = rf()
745	} else {
746		r1 = ret.Error(1)
747	}
748
749	return r0, r1
750}
751
752// ListApplications provides a mock function with given fields: _a0
753func (_m *Marathon) ListApplications(_a0 url.Values) ([]string, error) {
754	ret := _m.Called(_a0)
755
756	var r0 []string
757	if rf, ok := ret.Get(0).(func(url.Values) []string); ok {
758		r0 = rf(_a0)
759	} else {
760		if ret.Get(0) != nil {
761			r0 = ret.Get(0).([]string)
762		}
763	}
764
765	var r1 error
766	if rf, ok := ret.Get(1).(func(url.Values) error); ok {
767		r1 = rf(_a0)
768	} else {
769		r1 = ret.Error(1)
770	}
771
772	return r0, r1
773}
774
775// Ping provides a mock function with given fields:
776func (_m *Marathon) Ping() (bool, error) {
777	ret := _m.Called()
778
779	var r0 bool
780	if rf, ok := ret.Get(0).(func() bool); ok {
781		r0 = rf()
782	} else {
783		r0 = ret.Get(0).(bool)
784	}
785
786	var r1 error
787	if rf, ok := ret.Get(1).(func() error); ok {
788		r1 = rf()
789	} else {
790		r1 = ret.Error(1)
791	}
792
793	return r0, r1
794}
795
796// Pod provides a mock function with given fields: name
797func (_m *Marathon) Pod(name string) (*marathon.Pod, error) {
798	ret := _m.Called(name)
799
800	var r0 *marathon.Pod
801	if rf, ok := ret.Get(0).(func(string) *marathon.Pod); ok {
802		r0 = rf(name)
803	} else {
804		if ret.Get(0) != nil {
805			r0 = ret.Get(0).(*marathon.Pod)
806		}
807	}
808
809	var r1 error
810	if rf, ok := ret.Get(1).(func(string) error); ok {
811		r1 = rf(name)
812	} else {
813		r1 = ret.Error(1)
814	}
815
816	return r0, r1
817}
818
819// PodByVersion provides a mock function with given fields: name, version
820func (_m *Marathon) PodByVersion(name, version string) (*marathon.Pod, error) {
821	ret := _m.Called(name, version)
822
823	var r0 *marathon.Pod
824	if rf, ok := ret.Get(0).(func(string, string) *marathon.Pod); ok {
825		r0 = rf(name, version)
826	} else {
827		if ret.Get(0) != nil {
828			r0 = ret.Get(0).(*marathon.Pod)
829		}
830	}
831
832	var r1 error
833	if rf, ok := ret.Get(1).(func(string, string) error); ok {
834		r1 = rf(name, version)
835	} else {
836		r1 = ret.Error(1)
837	}
838
839	return r0, r1
840}
841
842// PodIsRunning provides a mock function with given fields: name
843func (_m *Marathon) PodIsRunning(name string) bool {
844	ret := _m.Called(name)
845
846	var r0 bool
847	if rf, ok := ret.Get(0).(func(string) bool); ok {
848		r0 = rf(name)
849	} else {
850		r0 = ret.Get(0).(bool)
851	}
852
853	return r0
854}
855
856// PodStatus provides a mock function with given fields: name
857func (_m *Marathon) PodStatus(name string) (*marathon.PodStatus, error) {
858	ret := _m.Called(name)
859
860	var r0 *marathon.PodStatus
861	if rf, ok := ret.Get(0).(func(string) *marathon.PodStatus); ok {
862		r0 = rf(name)
863	} else {
864		if ret.Get(0) != nil {
865			r0 = ret.Get(0).(*marathon.PodStatus)
866		}
867	}
868
869	var r1 error
870	if rf, ok := ret.Get(1).(func(string) error); ok {
871		r1 = rf(name)
872	} else {
873		r1 = ret.Error(1)
874	}
875
876	return r0, r1
877}
878
879// PodStatuses provides a mock function with given fields:
880func (_m *Marathon) PodStatuses() ([]*marathon.PodStatus, error) {
881	ret := _m.Called()
882
883	var r0 []*marathon.PodStatus
884	if rf, ok := ret.Get(0).(func() []*marathon.PodStatus); ok {
885		r0 = rf()
886	} else {
887		if ret.Get(0) != nil {
888			r0 = ret.Get(0).([]*marathon.PodStatus)
889		}
890	}
891
892	var r1 error
893	if rf, ok := ret.Get(1).(func() error); ok {
894		r1 = rf()
895	} else {
896		r1 = ret.Error(1)
897	}
898
899	return r0, r1
900}
901
902// PodVersions provides a mock function with given fields: name
903func (_m *Marathon) PodVersions(name string) ([]string, error) {
904	ret := _m.Called(name)
905
906	var r0 []string
907	if rf, ok := ret.Get(0).(func(string) []string); ok {
908		r0 = rf(name)
909	} else {
910		if ret.Get(0) != nil {
911			r0 = ret.Get(0).([]string)
912		}
913	}
914
915	var r1 error
916	if rf, ok := ret.Get(1).(func(string) error); ok {
917		r1 = rf(name)
918	} else {
919		r1 = ret.Error(1)
920	}
921
922	return r0, r1
923}
924
925// Pods provides a mock function with given fields:
926func (_m *Marathon) Pods() ([]marathon.Pod, error) {
927	ret := _m.Called()
928
929	var r0 []marathon.Pod
930	if rf, ok := ret.Get(0).(func() []marathon.Pod); ok {
931		r0 = rf()
932	} else {
933		if ret.Get(0) != nil {
934			r0 = ret.Get(0).([]marathon.Pod)
935		}
936	}
937
938	var r1 error
939	if rf, ok := ret.Get(1).(func() error); ok {
940		r1 = rf()
941	} else {
942		r1 = ret.Error(1)
943	}
944
945	return r0, r1
946}
947
948// Queue provides a mock function with given fields:
949func (_m *Marathon) Queue() (*marathon.Queue, error) {
950	ret := _m.Called()
951
952	var r0 *marathon.Queue
953	if rf, ok := ret.Get(0).(func() *marathon.Queue); ok {
954		r0 = rf()
955	} else {
956		if ret.Get(0) != nil {
957			r0 = ret.Get(0).(*marathon.Queue)
958		}
959	}
960
961	var r1 error
962	if rf, ok := ret.Get(1).(func() error); ok {
963		r1 = rf()
964	} else {
965		r1 = ret.Error(1)
966	}
967
968	return r0, r1
969}
970
971// RemoveEventsListener provides a mock function with given fields: channel
972func (_m *Marathon) RemoveEventsListener(channel marathon.EventsChannel) {
973	_m.Called(channel)
974}
975
976// RestartApplication provides a mock function with given fields: name, force
977func (_m *Marathon) RestartApplication(name string, force bool) (*marathon.DeploymentID, error) {
978	ret := _m.Called(name, force)
979
980	var r0 *marathon.DeploymentID
981	if rf, ok := ret.Get(0).(func(string, bool) *marathon.DeploymentID); ok {
982		r0 = rf(name, force)
983	} else {
984		if ret.Get(0) != nil {
985			r0 = ret.Get(0).(*marathon.DeploymentID)
986		}
987	}
988
989	var r1 error
990	if rf, ok := ret.Get(1).(func(string, bool) error); ok {
991		r1 = rf(name, force)
992	} else {
993		r1 = ret.Error(1)
994	}
995
996	return r0, r1
997}
998
999// ScaleApplicationInstances provides a mock function with given fields: name, instances, force
1000func (_m *Marathon) ScaleApplicationInstances(name string, instances int, force bool) (*marathon.DeploymentID, error) {
1001	ret := _m.Called(name, instances, force)
1002
1003	var r0 *marathon.DeploymentID
1004	if rf, ok := ret.Get(0).(func(string, int, bool) *marathon.DeploymentID); ok {
1005		r0 = rf(name, instances, force)
1006	} else {
1007		if ret.Get(0) != nil {
1008			r0 = ret.Get(0).(*marathon.DeploymentID)
1009		}
1010	}
1011
1012	var r1 error
1013	if rf, ok := ret.Get(1).(func(string, int, bool) error); ok {
1014		r1 = rf(name, instances, force)
1015	} else {
1016		r1 = ret.Error(1)
1017	}
1018
1019	return r0, r1
1020}
1021
1022// SetApplicationVersion provides a mock function with given fields: name, version
1023func (_m *Marathon) SetApplicationVersion(name string, version *marathon.ApplicationVersion) (*marathon.DeploymentID, error) {
1024	ret := _m.Called(name, version)
1025
1026	var r0 *marathon.DeploymentID
1027	if rf, ok := ret.Get(0).(func(string, *marathon.ApplicationVersion) *marathon.DeploymentID); ok {
1028		r0 = rf(name, version)
1029	} else {
1030		if ret.Get(0) != nil {
1031			r0 = ret.Get(0).(*marathon.DeploymentID)
1032		}
1033	}
1034
1035	var r1 error
1036	if rf, ok := ret.Get(1).(func(string, *marathon.ApplicationVersion) error); ok {
1037		r1 = rf(name, version)
1038	} else {
1039		r1 = ret.Error(1)
1040	}
1041
1042	return r0, r1
1043}
1044
1045// Subscribe provides a mock function with given fields: _a0
1046func (_m *Marathon) Subscribe(_a0 string) error {
1047	ret := _m.Called(_a0)
1048
1049	var r0 error
1050	if rf, ok := ret.Get(0).(func(string) error); ok {
1051		r0 = rf(_a0)
1052	} else {
1053		r0 = ret.Error(0)
1054	}
1055
1056	return r0
1057}
1058
1059// Subscriptions provides a mock function with given fields:
1060func (_m *Marathon) Subscriptions() (*marathon.Subscriptions, error) {
1061	ret := _m.Called()
1062
1063	var r0 *marathon.Subscriptions
1064	if rf, ok := ret.Get(0).(func() *marathon.Subscriptions); ok {
1065		r0 = rf()
1066	} else {
1067		if ret.Get(0) != nil {
1068			r0 = ret.Get(0).(*marathon.Subscriptions)
1069		}
1070	}
1071
1072	var r1 error
1073	if rf, ok := ret.Get(1).(func() error); ok {
1074		r1 = rf()
1075	} else {
1076		r1 = ret.Error(1)
1077	}
1078
1079	return r0, r1
1080}
1081
1082// SupportsPods provides a mock function with given fields:
1083func (_m *Marathon) SupportsPods() (bool, error) {
1084	ret := _m.Called()
1085
1086	var r0 bool
1087	if rf, ok := ret.Get(0).(func() bool); ok {
1088		r0 = rf()
1089	} else {
1090		r0 = ret.Get(0).(bool)
1091	}
1092
1093	var r1 error
1094	if rf, ok := ret.Get(1).(func() error); ok {
1095		r1 = rf()
1096	} else {
1097		r1 = ret.Error(1)
1098	}
1099
1100	return r0, r1
1101}
1102
1103// TaskEndpoints provides a mock function with given fields: name, port, healthCheck
1104func (_m *Marathon) TaskEndpoints(name string, port int, healthCheck bool) ([]string, error) {
1105	ret := _m.Called(name, port, healthCheck)
1106
1107	var r0 []string
1108	if rf, ok := ret.Get(0).(func(string, int, bool) []string); ok {
1109		r0 = rf(name, port, healthCheck)
1110	} else {
1111		if ret.Get(0) != nil {
1112			r0 = ret.Get(0).([]string)
1113		}
1114	}
1115
1116	var r1 error
1117	if rf, ok := ret.Get(1).(func(string, int, bool) error); ok {
1118		r1 = rf(name, port, healthCheck)
1119	} else {
1120		r1 = ret.Error(1)
1121	}
1122
1123	return r0, r1
1124}
1125
1126// Tasks provides a mock function with given fields: application
1127func (_m *Marathon) Tasks(application string) (*marathon.Tasks, error) {
1128	ret := _m.Called(application)
1129
1130	var r0 *marathon.Tasks
1131	if rf, ok := ret.Get(0).(func(string) *marathon.Tasks); ok {
1132		r0 = rf(application)
1133	} else {
1134		if ret.Get(0) != nil {
1135			r0 = ret.Get(0).(*marathon.Tasks)
1136		}
1137	}
1138
1139	var r1 error
1140	if rf, ok := ret.Get(1).(func(string) error); ok {
1141		r1 = rf(application)
1142	} else {
1143		r1 = ret.Error(1)
1144	}
1145
1146	return r0, r1
1147}
1148
1149// Unsubscribe provides a mock function with given fields: _a0
1150func (_m *Marathon) Unsubscribe(_a0 string) error {
1151	ret := _m.Called(_a0)
1152
1153	var r0 error
1154	if rf, ok := ret.Get(0).(func(string) error); ok {
1155		r0 = rf(_a0)
1156	} else {
1157		r0 = ret.Error(0)
1158	}
1159
1160	return r0
1161}
1162
1163// UpdateApplication provides a mock function with given fields: application, force
1164func (_m *Marathon) UpdateApplication(application *marathon.Application, force bool) (*marathon.DeploymentID, error) {
1165	ret := _m.Called(application, force)
1166
1167	var r0 *marathon.DeploymentID
1168	if rf, ok := ret.Get(0).(func(*marathon.Application, bool) *marathon.DeploymentID); ok {
1169		r0 = rf(application, force)
1170	} else {
1171		if ret.Get(0) != nil {
1172			r0 = ret.Get(0).(*marathon.DeploymentID)
1173		}
1174	}
1175
1176	var r1 error
1177	if rf, ok := ret.Get(1).(func(*marathon.Application, bool) error); ok {
1178		r1 = rf(application, force)
1179	} else {
1180		r1 = ret.Error(1)
1181	}
1182
1183	return r0, r1
1184}
1185
1186// UpdateGroup provides a mock function with given fields: id, group, force
1187func (_m *Marathon) UpdateGroup(id string, group *marathon.Group, force bool) (*marathon.DeploymentID, error) {
1188	ret := _m.Called(id, group, force)
1189
1190	var r0 *marathon.DeploymentID
1191	if rf, ok := ret.Get(0).(func(string, *marathon.Group, bool) *marathon.DeploymentID); ok {
1192		r0 = rf(id, group, force)
1193	} else {
1194		if ret.Get(0) != nil {
1195			r0 = ret.Get(0).(*marathon.DeploymentID)
1196		}
1197	}
1198
1199	var r1 error
1200	if rf, ok := ret.Get(1).(func(string, *marathon.Group, bool) error); ok {
1201		r1 = rf(id, group, force)
1202	} else {
1203		r1 = ret.Error(1)
1204	}
1205
1206	return r0, r1
1207}
1208
1209// UpdatePod provides a mock function with given fields: pod, force
1210func (_m *Marathon) UpdatePod(pod *marathon.Pod, force bool) (*marathon.Pod, error) {
1211	ret := _m.Called(pod, force)
1212
1213	var r0 *marathon.Pod
1214	if rf, ok := ret.Get(0).(func(*marathon.Pod, bool) *marathon.Pod); ok {
1215		r0 = rf(pod, force)
1216	} else {
1217		if ret.Get(0) != nil {
1218			r0 = ret.Get(0).(*marathon.Pod)
1219		}
1220	}
1221
1222	var r1 error
1223	if rf, ok := ret.Get(1).(func(*marathon.Pod, bool) error); ok {
1224		r1 = rf(pod, force)
1225	} else {
1226		r1 = ret.Error(1)
1227	}
1228
1229	return r0, r1
1230}
1231
1232// WaitOnApplication provides a mock function with given fields: name, timeout
1233func (_m *Marathon) WaitOnApplication(name string, timeout time.Duration) error {
1234	ret := _m.Called(name, timeout)
1235
1236	var r0 error
1237	if rf, ok := ret.Get(0).(func(string, time.Duration) error); ok {
1238		r0 = rf(name, timeout)
1239	} else {
1240		r0 = ret.Error(0)
1241	}
1242
1243	return r0
1244}
1245
1246// WaitOnDeployment provides a mock function with given fields: id, timeout
1247func (_m *Marathon) WaitOnDeployment(id string, timeout time.Duration) error {
1248	ret := _m.Called(id, timeout)
1249
1250	var r0 error
1251	if rf, ok := ret.Get(0).(func(string, time.Duration) error); ok {
1252		r0 = rf(id, timeout)
1253	} else {
1254		r0 = ret.Error(0)
1255	}
1256
1257	return r0
1258}
1259
1260// WaitOnGroup provides a mock function with given fields: name, timeout
1261func (_m *Marathon) WaitOnGroup(name string, timeout time.Duration) error {
1262	ret := _m.Called(name, timeout)
1263
1264	var r0 error
1265	if rf, ok := ret.Get(0).(func(string, time.Duration) error); ok {
1266		r0 = rf(name, timeout)
1267	} else {
1268		r0 = ret.Error(0)
1269	}
1270
1271	return r0
1272}
1273
1274// WaitOnPod provides a mock function with given fields: name, timeout
1275func (_m *Marathon) WaitOnPod(name string, timeout time.Duration) error {
1276	ret := _m.Called(name, timeout)
1277
1278	var r0 error
1279	if rf, ok := ret.Get(0).(func(string, time.Duration) error); ok {
1280		r0 = rf(name, timeout)
1281	} else {
1282		r0 = ret.Error(0)
1283	}
1284
1285	return r0
1286}
1287