-
Notifications
You must be signed in to change notification settings - Fork 463
/
mocks.go
194 lines (165 loc) · 6.41 KB
/
mocks.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/gardener/gardener/pkg/component/garden/backupentry (interfaces: Interface)
//
// Generated by this command:
//
// mockgen -package backupentry -destination=mocks.go github.com/gardener/gardener/pkg/component/garden/backupentry Interface
//
// Package backupentry is a generated GoMock package.
package backupentry
import (
context "context"
reflect "reflect"
v1beta1 "github.com/gardener/gardener/pkg/apis/core/v1beta1"
gomock "go.uber.org/mock/gomock"
)
// MockInterface is a mock of Interface interface.
type MockInterface struct {
ctrl *gomock.Controller
recorder *MockInterfaceMockRecorder
}
// MockInterfaceMockRecorder is the mock recorder for MockInterface.
type MockInterfaceMockRecorder struct {
mock *MockInterface
}
// NewMockInterface creates a new mock instance.
func NewMockInterface(ctrl *gomock.Controller) *MockInterface {
mock := &MockInterface{ctrl: ctrl}
mock.recorder = &MockInterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder {
return m.recorder
}
// Deploy mocks base method.
func (m *MockInterface) Deploy(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Deploy", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Deploy indicates an expected call of Deploy.
func (mr *MockInterfaceMockRecorder) Deploy(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deploy", reflect.TypeOf((*MockInterface)(nil).Deploy), arg0)
}
// Destroy mocks base method.
func (m *MockInterface) Destroy(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Destroy", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Destroy indicates an expected call of Destroy.
func (mr *MockInterfaceMockRecorder) Destroy(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Destroy", reflect.TypeOf((*MockInterface)(nil).Destroy), arg0)
}
// Get mocks base method.
func (m *MockInterface) Get(arg0 context.Context) (*v1beta1.BackupEntry, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Get", arg0)
ret0, _ := ret[0].(*v1beta1.BackupEntry)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Get indicates an expected call of Get.
func (mr *MockInterfaceMockRecorder) Get(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockInterface)(nil).Get), arg0)
}
// GetActualBucketName mocks base method.
func (m *MockInterface) GetActualBucketName() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetActualBucketName")
ret0, _ := ret[0].(string)
return ret0
}
// GetActualBucketName indicates an expected call of GetActualBucketName.
func (mr *MockInterfaceMockRecorder) GetActualBucketName() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetActualBucketName", reflect.TypeOf((*MockInterface)(nil).GetActualBucketName))
}
// Migrate mocks base method.
func (m *MockInterface) Migrate(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Migrate", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Migrate indicates an expected call of Migrate.
func (mr *MockInterfaceMockRecorder) Migrate(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Migrate", reflect.TypeOf((*MockInterface)(nil).Migrate), arg0)
}
// Restore mocks base method.
func (m *MockInterface) Restore(arg0 context.Context, arg1 *v1beta1.ShootState) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Restore", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// Restore indicates an expected call of Restore.
func (mr *MockInterfaceMockRecorder) Restore(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Restore", reflect.TypeOf((*MockInterface)(nil).Restore), arg0, arg1)
}
// SetBucketName mocks base method.
func (m *MockInterface) SetBucketName(arg0 string) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetBucketName", arg0)
}
// SetBucketName indicates an expected call of SetBucketName.
func (mr *MockInterfaceMockRecorder) SetBucketName(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetBucketName", reflect.TypeOf((*MockInterface)(nil).SetBucketName), arg0)
}
// SetForceDeletionAnnotation mocks base method.
func (m *MockInterface) SetForceDeletionAnnotation(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetForceDeletionAnnotation", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// SetForceDeletionAnnotation indicates an expected call of SetForceDeletionAnnotation.
func (mr *MockInterfaceMockRecorder) SetForceDeletionAnnotation(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetForceDeletionAnnotation", reflect.TypeOf((*MockInterface)(nil).SetForceDeletionAnnotation), arg0)
}
// Wait mocks base method.
func (m *MockInterface) Wait(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Wait", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Wait indicates an expected call of Wait.
func (mr *MockInterfaceMockRecorder) Wait(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Wait", reflect.TypeOf((*MockInterface)(nil).Wait), arg0)
}
// WaitCleanup mocks base method.
func (m *MockInterface) WaitCleanup(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WaitCleanup", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// WaitCleanup indicates an expected call of WaitCleanup.
func (mr *MockInterfaceMockRecorder) WaitCleanup(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitCleanup", reflect.TypeOf((*MockInterface)(nil).WaitCleanup), arg0)
}
// WaitMigrate mocks base method.
func (m *MockInterface) WaitMigrate(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WaitMigrate", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// WaitMigrate indicates an expected call of WaitMigrate.
func (mr *MockInterfaceMockRecorder) WaitMigrate(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitMigrate", reflect.TypeOf((*MockInterface)(nil).WaitMigrate), arg0)
}