This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
/
cluster_interface.go
125 lines (98 loc) · 3.84 KB
/
cluster_interface.go
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
// Code generated by mockery v1.0.1. DO NOT EDIT.
package mocks
import (
context "context"
executioncluster "github.com/flyteorg/flyteadmin/pkg/executioncluster"
mock "github.com/stretchr/testify/mock"
)
// ClusterInterface is an autogenerated mock type for the ClusterInterface type
type ClusterInterface struct {
mock.Mock
}
type ClusterInterface_GetAllTargets struct {
*mock.Call
}
func (_m ClusterInterface_GetAllTargets) Return(_a0 map[string]*executioncluster.ExecutionTarget) *ClusterInterface_GetAllTargets {
return &ClusterInterface_GetAllTargets{Call: _m.Call.Return(_a0)}
}
func (_m *ClusterInterface) OnGetAllTargets() *ClusterInterface_GetAllTargets {
c_call := _m.On("GetAllTargets")
return &ClusterInterface_GetAllTargets{Call: c_call}
}
func (_m *ClusterInterface) OnGetAllTargetsMatch(matchers ...interface{}) *ClusterInterface_GetAllTargets {
c_call := _m.On("GetAllTargets", matchers...)
return &ClusterInterface_GetAllTargets{Call: c_call}
}
// GetAllTargets provides a mock function with given fields:
func (_m *ClusterInterface) GetAllTargets() map[string]*executioncluster.ExecutionTarget {
ret := _m.Called()
var r0 map[string]*executioncluster.ExecutionTarget
if rf, ok := ret.Get(0).(func() map[string]*executioncluster.ExecutionTarget); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(map[string]*executioncluster.ExecutionTarget)
}
}
return r0
}
type ClusterInterface_GetTarget struct {
*mock.Call
}
func (_m ClusterInterface_GetTarget) Return(_a0 *executioncluster.ExecutionTarget, _a1 error) *ClusterInterface_GetTarget {
return &ClusterInterface_GetTarget{Call: _m.Call.Return(_a0, _a1)}
}
func (_m *ClusterInterface) OnGetTarget(_a0 context.Context, _a1 *executioncluster.ExecutionTargetSpec) *ClusterInterface_GetTarget {
c_call := _m.On("GetTarget", _a0, _a1)
return &ClusterInterface_GetTarget{Call: c_call}
}
func (_m *ClusterInterface) OnGetTargetMatch(matchers ...interface{}) *ClusterInterface_GetTarget {
c_call := _m.On("GetTarget", matchers...)
return &ClusterInterface_GetTarget{Call: c_call}
}
// GetTarget provides a mock function with given fields: _a0, _a1
func (_m *ClusterInterface) GetTarget(_a0 context.Context, _a1 *executioncluster.ExecutionTargetSpec) (*executioncluster.ExecutionTarget, error) {
ret := _m.Called(_a0, _a1)
var r0 *executioncluster.ExecutionTarget
if rf, ok := ret.Get(0).(func(context.Context, *executioncluster.ExecutionTargetSpec) *executioncluster.ExecutionTarget); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*executioncluster.ExecutionTarget)
}
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, *executioncluster.ExecutionTargetSpec) error); ok {
r1 = rf(_a0, _a1)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
type ClusterInterface_GetValidTargets struct {
*mock.Call
}
func (_m ClusterInterface_GetValidTargets) Return(_a0 map[string]*executioncluster.ExecutionTarget) *ClusterInterface_GetValidTargets {
return &ClusterInterface_GetValidTargets{Call: _m.Call.Return(_a0)}
}
func (_m *ClusterInterface) OnGetValidTargets() *ClusterInterface_GetValidTargets {
c_call := _m.On("GetValidTargets")
return &ClusterInterface_GetValidTargets{Call: c_call}
}
func (_m *ClusterInterface) OnGetValidTargetsMatch(matchers ...interface{}) *ClusterInterface_GetValidTargets {
c_call := _m.On("GetValidTargets", matchers...)
return &ClusterInterface_GetValidTargets{Call: c_call}
}
// GetValidTargets provides a mock function with given fields:
func (_m *ClusterInterface) GetValidTargets() map[string]*executioncluster.ExecutionTarget {
ret := _m.Called()
var r0 map[string]*executioncluster.ExecutionTarget
if rf, ok := ret.Get(0).(func() map[string]*executioncluster.ExecutionTarget); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(map[string]*executioncluster.ExecutionTarget)
}
}
return r0
}