/
mock_status.go
210 lines (177 loc) · 7.02 KB
/
mock_status.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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
// Code generated by MockGen. DO NOT EDIT.
// Source: internal/agent/device/status/status.go
//
// Generated by this command:
//
// mockgen -source=internal/agent/device/status/status.go -destination=internal/agent/device/status/mock_status.go -package=status
//
// Package status is a generated GoMock package.
package status
import (
context "context"
reflect "reflect"
v1alpha1 "github.com/flightctl/flightctl/api/v1alpha1"
client "github.com/flightctl/flightctl/internal/client"
gomock "go.uber.org/mock/gomock"
)
// MockExporter is a mock of Exporter interface.
type MockExporter struct {
ctrl *gomock.Controller
recorder *MockExporterMockRecorder
}
// MockExporterMockRecorder is the mock recorder for MockExporter.
type MockExporterMockRecorder struct {
mock *MockExporter
}
// NewMockExporter creates a new mock instance.
func NewMockExporter(ctrl *gomock.Controller) *MockExporter {
mock := &MockExporter{ctrl: ctrl}
mock.recorder = &MockExporterMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockExporter) EXPECT() *MockExporterMockRecorder {
return m.recorder
}
// Export mocks base method.
func (m *MockExporter) Export(ctx context.Context, device *v1alpha1.DeviceStatus) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Export", ctx, device)
ret0, _ := ret[0].(error)
return ret0
}
// Export indicates an expected call of Export.
func (mr *MockExporterMockRecorder) Export(ctx, device any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Export", reflect.TypeOf((*MockExporter)(nil).Export), ctx, device)
}
// SetProperties mocks base method.
func (m *MockExporter) SetProperties(arg0 *v1alpha1.RenderedDeviceSpec) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetProperties", arg0)
}
// SetProperties indicates an expected call of SetProperties.
func (mr *MockExporterMockRecorder) SetProperties(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetProperties", reflect.TypeOf((*MockExporter)(nil).SetProperties), arg0)
}
// MockCollector is a mock of Collector interface.
type MockCollector struct {
ctrl *gomock.Controller
recorder *MockCollectorMockRecorder
}
// MockCollectorMockRecorder is the mock recorder for MockCollector.
type MockCollectorMockRecorder struct {
mock *MockCollector
}
// NewMockCollector creates a new mock instance.
func NewMockCollector(ctrl *gomock.Controller) *MockCollector {
mock := &MockCollector{ctrl: ctrl}
mock.recorder = &MockCollectorMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockCollector) EXPECT() *MockCollectorMockRecorder {
return m.recorder
}
// Get mocks base method.
func (m *MockCollector) Get(arg0 context.Context) (*v1alpha1.DeviceStatus, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Get", arg0)
ret0, _ := ret[0].(*v1alpha1.DeviceStatus)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Get indicates an expected call of Get.
func (mr *MockCollectorMockRecorder) Get(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockCollector)(nil).Get), arg0)
}
// MockManager is a mock of Manager interface.
type MockManager struct {
ctrl *gomock.Controller
recorder *MockManagerMockRecorder
}
// MockManagerMockRecorder is the mock recorder for MockManager.
type MockManagerMockRecorder struct {
mock *MockManager
}
// NewMockManager creates a new mock instance.
func NewMockManager(ctrl *gomock.Controller) *MockManager {
mock := &MockManager{ctrl: ctrl}
mock.recorder = &MockManagerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockManager) EXPECT() *MockManagerMockRecorder {
return m.recorder
}
// Get mocks base method.
func (m *MockManager) Get(arg0 context.Context) (*v1alpha1.DeviceStatus, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Get", arg0)
ret0, _ := ret[0].(*v1alpha1.DeviceStatus)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Get indicates an expected call of Get.
func (mr *MockManagerMockRecorder) Get(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockManager)(nil).Get), arg0)
}
// SetClient mocks base method.
func (m *MockManager) SetClient(arg0 *client.Management) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetClient", arg0)
}
// SetClient indicates an expected call of SetClient.
func (mr *MockManagerMockRecorder) SetClient(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetClient", reflect.TypeOf((*MockManager)(nil).SetClient), arg0)
}
// SetProperties mocks base method.
func (m *MockManager) SetProperties(arg0 *v1alpha1.RenderedDeviceSpec) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetProperties", arg0)
}
// SetProperties indicates an expected call of SetProperties.
func (mr *MockManagerMockRecorder) SetProperties(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetProperties", reflect.TypeOf((*MockManager)(nil).SetProperties), arg0)
}
// Update mocks base method.
func (m *MockManager) Update(arg0 context.Context, arg1 *v1alpha1.DeviceStatus) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Update", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// Update indicates an expected call of Update.
func (mr *MockManagerMockRecorder) Update(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockManager)(nil).Update), arg0, arg1)
}
// UpdateCondition mocks base method.
func (m *MockManager) UpdateCondition(ctx context.Context, conditionType v1alpha1.ConditionType, conditionStatus v1alpha1.ConditionStatus, reason, message string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpdateCondition", ctx, conditionType, conditionStatus, reason, message)
ret0, _ := ret[0].(error)
return ret0
}
// UpdateCondition indicates an expected call of UpdateCondition.
func (mr *MockManagerMockRecorder) UpdateCondition(ctx, conditionType, conditionStatus, reason, message any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateCondition", reflect.TypeOf((*MockManager)(nil).UpdateCondition), ctx, conditionType, conditionStatus, reason, message)
}
// UpdateConditionError mocks base method.
func (m *MockManager) UpdateConditionError(ctx context.Context, reason string, err error) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpdateConditionError", ctx, reason, err)
ret0, _ := ret[0].(error)
return ret0
}
// UpdateConditionError indicates an expected call of UpdateConditionError.
func (mr *MockManagerMockRecorder) UpdateConditionError(ctx, reason, err any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateConditionError", reflect.TypeOf((*MockManager)(nil).UpdateConditionError), ctx, reason, err)
}