/
types.go
149 lines (126 loc) · 5.43 KB
/
types.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/openshift/openshift-azure/pkg/cluster/kubeclient (interfaces: Interface)
// Package mock_kubeclient is a generated GoMock package.
package mock_kubeclient
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
v1 "k8s.io/api/core/v1"
)
// 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
}
// BackupCluster mocks base method
func (m *MockInterface) BackupCluster(arg0 context.Context, arg1 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "BackupCluster", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// BackupCluster indicates an expected call of BackupCluster
func (mr *MockInterfaceMockRecorder) BackupCluster(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BackupCluster", reflect.TypeOf((*MockInterface)(nil).BackupCluster), arg0, arg1)
}
// DeleteMaster mocks base method
func (m *MockInterface) DeleteMaster(arg0 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteMaster", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteMaster indicates an expected call of DeleteMaster
func (mr *MockInterfaceMockRecorder) DeleteMaster(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteMaster", reflect.TypeOf((*MockInterface)(nil).DeleteMaster), arg0)
}
// DrainAndDeleteWorker mocks base method
func (m *MockInterface) DrainAndDeleteWorker(arg0 context.Context, arg1 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DrainAndDeleteWorker", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// DrainAndDeleteWorker indicates an expected call of DrainAndDeleteWorker
func (mr *MockInterfaceMockRecorder) DrainAndDeleteWorker(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DrainAndDeleteWorker", reflect.TypeOf((*MockInterface)(nil).DrainAndDeleteWorker), arg0, arg1)
}
// EnsureSyncPod mocks base method
func (m *MockInterface) EnsureSyncPod(arg0 context.Context, arg1 string, arg2 []byte) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EnsureSyncPod", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// EnsureSyncPod indicates an expected call of EnsureSyncPod
func (mr *MockInterfaceMockRecorder) EnsureSyncPod(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnsureSyncPod", reflect.TypeOf((*MockInterface)(nil).EnsureSyncPod), arg0, arg1, arg2)
}
// GetControlPlanePods mocks base method
func (m *MockInterface) GetControlPlanePods(arg0 context.Context) ([]v1.Pod, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetControlPlanePods", arg0)
ret0, _ := ret[0].([]v1.Pod)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetControlPlanePods indicates an expected call of GetControlPlanePods
func (mr *MockInterfaceMockRecorder) GetControlPlanePods(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetControlPlanePods", reflect.TypeOf((*MockInterface)(nil).GetControlPlanePods), arg0)
}
// WaitForReadyMaster mocks base method
func (m *MockInterface) WaitForReadyMaster(arg0 context.Context, arg1 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WaitForReadyMaster", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// WaitForReadyMaster indicates an expected call of WaitForReadyMaster
func (mr *MockInterfaceMockRecorder) WaitForReadyMaster(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitForReadyMaster", reflect.TypeOf((*MockInterface)(nil).WaitForReadyMaster), arg0, arg1)
}
// WaitForReadySyncPod mocks base method
func (m *MockInterface) WaitForReadySyncPod(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WaitForReadySyncPod", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// WaitForReadySyncPod indicates an expected call of WaitForReadySyncPod
func (mr *MockInterfaceMockRecorder) WaitForReadySyncPod(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitForReadySyncPod", reflect.TypeOf((*MockInterface)(nil).WaitForReadySyncPod), arg0)
}
// WaitForReadyWorker mocks base method
func (m *MockInterface) WaitForReadyWorker(arg0 context.Context, arg1 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WaitForReadyWorker", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// WaitForReadyWorker indicates an expected call of WaitForReadyWorker
func (mr *MockInterfaceMockRecorder) WaitForReadyWorker(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitForReadyWorker", reflect.TypeOf((*MockInterface)(nil).WaitForReadyWorker), arg0, arg1)
}