-
Notifications
You must be signed in to change notification settings - Fork 472
/
mocks.go
118 lines (99 loc) · 3.94 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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/gardener/gardener/pkg/operation/botanist/systemcomponents/metricsserver (interfaces: MetricsServer)
// Package metricsserver is a generated GoMock package.
package metricsserver
import (
context "context"
reflect "reflect"
metricsserver "github.com/gardener/gardener/pkg/operation/botanist/systemcomponents/metricsserver"
gomock "github.com/golang/mock/gomock"
)
// MockMetricsServer is a mock of MetricsServer interface.
type MockMetricsServer struct {
ctrl *gomock.Controller
recorder *MockMetricsServerMockRecorder
}
// MockMetricsServerMockRecorder is the mock recorder for MockMetricsServer.
type MockMetricsServerMockRecorder struct {
mock *MockMetricsServer
}
// NewMockMetricsServer creates a new mock instance.
func NewMockMetricsServer(ctrl *gomock.Controller) *MockMetricsServer {
mock := &MockMetricsServer{ctrl: ctrl}
mock.recorder = &MockMetricsServerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockMetricsServer) EXPECT() *MockMetricsServerMockRecorder {
return m.recorder
}
// Deploy mocks base method.
func (m *MockMetricsServer) 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 *MockMetricsServerMockRecorder) Deploy(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deploy", reflect.TypeOf((*MockMetricsServer)(nil).Deploy), arg0)
}
// Destroy mocks base method.
func (m *MockMetricsServer) 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 *MockMetricsServerMockRecorder) Destroy(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Destroy", reflect.TypeOf((*MockMetricsServer)(nil).Destroy), arg0)
}
// ServiceDNSNames mocks base method.
func (m *MockMetricsServer) ServiceDNSNames() []string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ServiceDNSNames")
ret0, _ := ret[0].([]string)
return ret0
}
// ServiceDNSNames indicates an expected call of ServiceDNSNames.
func (mr *MockMetricsServerMockRecorder) ServiceDNSNames() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ServiceDNSNames", reflect.TypeOf((*MockMetricsServer)(nil).ServiceDNSNames))
}
// SetSecrets mocks base method.
func (m *MockMetricsServer) SetSecrets(arg0 metricsserver.Secrets) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetSecrets", arg0)
}
// SetSecrets indicates an expected call of SetSecrets.
func (mr *MockMetricsServerMockRecorder) SetSecrets(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSecrets", reflect.TypeOf((*MockMetricsServer)(nil).SetSecrets), arg0)
}
// Wait mocks base method.
func (m *MockMetricsServer) 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 *MockMetricsServerMockRecorder) Wait(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Wait", reflect.TypeOf((*MockMetricsServer)(nil).Wait), arg0)
}
// WaitCleanup mocks base method.
func (m *MockMetricsServer) 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 *MockMetricsServerMockRecorder) WaitCleanup(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitCleanup", reflect.TypeOf((*MockMetricsServer)(nil).WaitCleanup), arg0)
}