This repository has been archived by the owner on Mar 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
/
zz_generated.baremetalmachine_manager.go
202 lines (173 loc) · 7.41 KB
/
zz_generated.baremetalmachine_manager.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
// /*
// Copyright The Kubernetes Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// */
//
//
// Code generated by MockGen. DO NOT EDIT.
// Source: ./baremetal/baremetalmachine_manager.go
// Package baremetal_mocks is a generated GoMock package.
package baremetal_mocks
import (
context "context"
gomock "github.com/golang/mock/gomock"
baremetal "github.com/metal3-io/cluster-api-provider-baremetal/baremetal"
reflect "reflect"
)
// MockMachineManagerInterface is a mock of MachineManagerInterface interface
type MockMachineManagerInterface struct {
ctrl *gomock.Controller
recorder *MockMachineManagerInterfaceMockRecorder
}
// MockMachineManagerInterfaceMockRecorder is the mock recorder for MockMachineManagerInterface
type MockMachineManagerInterfaceMockRecorder struct {
mock *MockMachineManagerInterface
}
// NewMockMachineManagerInterface creates a new mock instance
func NewMockMachineManagerInterface(ctrl *gomock.Controller) *MockMachineManagerInterface {
mock := &MockMachineManagerInterface{ctrl: ctrl}
mock.recorder = &MockMachineManagerInterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockMachineManagerInterface) EXPECT() *MockMachineManagerInterfaceMockRecorder {
return m.recorder
}
// SetFinalizer mocks base method
func (m *MockMachineManagerInterface) SetFinalizer() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetFinalizer")
}
// SetFinalizer indicates an expected call of SetFinalizer
func (mr *MockMachineManagerInterfaceMockRecorder) SetFinalizer() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFinalizer", reflect.TypeOf((*MockMachineManagerInterface)(nil).SetFinalizer))
}
// UnsetFinalizer mocks base method
func (m *MockMachineManagerInterface) UnsetFinalizer() {
m.ctrl.T.Helper()
m.ctrl.Call(m, "UnsetFinalizer")
}
// UnsetFinalizer indicates an expected call of UnsetFinalizer
func (mr *MockMachineManagerInterfaceMockRecorder) UnsetFinalizer() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnsetFinalizer", reflect.TypeOf((*MockMachineManagerInterface)(nil).UnsetFinalizer))
}
// IsProvisioned mocks base method
func (m *MockMachineManagerInterface) IsProvisioned() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IsProvisioned")
ret0, _ := ret[0].(bool)
return ret0
}
// IsProvisioned indicates an expected call of IsProvisioned
func (mr *MockMachineManagerInterfaceMockRecorder) IsProvisioned() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsProvisioned", reflect.TypeOf((*MockMachineManagerInterface)(nil).IsProvisioned))
}
// IsBootstrapReady mocks base method
func (m *MockMachineManagerInterface) IsBootstrapReady() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IsBootstrapReady")
ret0, _ := ret[0].(bool)
return ret0
}
// IsBootstrapReady indicates an expected call of IsBootstrapReady
func (mr *MockMachineManagerInterfaceMockRecorder) IsBootstrapReady() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsBootstrapReady", reflect.TypeOf((*MockMachineManagerInterface)(nil).IsBootstrapReady))
}
// GetBaremetalHostID mocks base method
func (m *MockMachineManagerInterface) GetBaremetalHostID(arg0 context.Context) (*string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetBaremetalHostID", arg0)
ret0, _ := ret[0].(*string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetBaremetalHostID indicates an expected call of GetBaremetalHostID
func (mr *MockMachineManagerInterfaceMockRecorder) GetBaremetalHostID(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBaremetalHostID", reflect.TypeOf((*MockMachineManagerInterface)(nil).GetBaremetalHostID), arg0)
}
// Associate mocks base method
func (m *MockMachineManagerInterface) Associate(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Associate", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Associate indicates an expected call of Associate
func (mr *MockMachineManagerInterfaceMockRecorder) Associate(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Associate", reflect.TypeOf((*MockMachineManagerInterface)(nil).Associate), arg0)
}
// Delete mocks base method
func (m *MockMachineManagerInterface) Delete(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Delete", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Delete indicates an expected call of Delete
func (mr *MockMachineManagerInterfaceMockRecorder) Delete(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockMachineManagerInterface)(nil).Delete), arg0)
}
// Update mocks base method
func (m *MockMachineManagerInterface) Update(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Update", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Update indicates an expected call of Update
func (mr *MockMachineManagerInterfaceMockRecorder) Update(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockMachineManagerInterface)(nil).Update), arg0)
}
// HasAnnotation mocks base method
func (m *MockMachineManagerInterface) HasAnnotation() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "HasAnnotation")
ret0, _ := ret[0].(bool)
return ret0
}
// HasAnnotation indicates an expected call of HasAnnotation
func (mr *MockMachineManagerInterfaceMockRecorder) HasAnnotation() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasAnnotation", reflect.TypeOf((*MockMachineManagerInterface)(nil).HasAnnotation))
}
// SetNodeProviderID mocks base method
func (m *MockMachineManagerInterface) SetNodeProviderID(arg0, arg1 string, arg2 baremetal.ClientGetter) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetNodeProviderID", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// SetNodeProviderID indicates an expected call of SetNodeProviderID
func (mr *MockMachineManagerInterfaceMockRecorder) SetNodeProviderID(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNodeProviderID", reflect.TypeOf((*MockMachineManagerInterface)(nil).SetNodeProviderID), arg0, arg1, arg2)
}
// SetProviderID mocks base method
func (m *MockMachineManagerInterface) SetProviderID(arg0 string) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetProviderID", arg0)
}
// SetProviderID indicates an expected call of SetProviderID
func (mr *MockMachineManagerInterfaceMockRecorder) SetProviderID(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetProviderID", reflect.TypeOf((*MockMachineManagerInterface)(nil).SetProviderID), arg0)
}