forked from kubernetes-sigs/cluster-api-provider-aws
/
elbinterface.go
executable file
·100 lines (80 loc) · 3.59 KB
/
elbinterface.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
/*
Copyright 2019 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: sigs.k8s.io/cluster-api-provider-aws/pkg/cloud/aws/services (interfaces: ELBInterface)
// Package mocks is a generated GoMock package.
package mocks
import (
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockELBInterface is a mock of ELBInterface interface
type MockELBInterface struct {
ctrl *gomock.Controller
recorder *MockELBInterfaceMockRecorder
}
// MockELBInterfaceMockRecorder is the mock recorder for MockELBInterface
type MockELBInterfaceMockRecorder struct {
mock *MockELBInterface
}
// NewMockELBInterface creates a new mock instance
func NewMockELBInterface(ctrl *gomock.Controller) *MockELBInterface {
mock := &MockELBInterface{ctrl: ctrl}
mock.recorder = &MockELBInterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockELBInterface) EXPECT() *MockELBInterfaceMockRecorder {
return m.recorder
}
// DeleteLoadbalancers mocks base method
func (m *MockELBInterface) DeleteLoadbalancers() error {
ret := m.ctrl.Call(m, "DeleteLoadbalancers")
ret0, _ := ret[0].(error)
return ret0
}
// DeleteLoadbalancers indicates an expected call of DeleteLoadbalancers
func (mr *MockELBInterfaceMockRecorder) DeleteLoadbalancers() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLoadbalancers", reflect.TypeOf((*MockELBInterface)(nil).DeleteLoadbalancers))
}
// GetAPIServerDNSName mocks base method
func (m *MockELBInterface) GetAPIServerDNSName() (string, error) {
ret := m.ctrl.Call(m, "GetAPIServerDNSName")
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetAPIServerDNSName indicates an expected call of GetAPIServerDNSName
func (mr *MockELBInterfaceMockRecorder) GetAPIServerDNSName() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAPIServerDNSName", reflect.TypeOf((*MockELBInterface)(nil).GetAPIServerDNSName))
}
// ReconcileLoadbalancers mocks base method
func (m *MockELBInterface) ReconcileLoadbalancers() error {
ret := m.ctrl.Call(m, "ReconcileLoadbalancers")
ret0, _ := ret[0].(error)
return ret0
}
// ReconcileLoadbalancers indicates an expected call of ReconcileLoadbalancers
func (mr *MockELBInterfaceMockRecorder) ReconcileLoadbalancers() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileLoadbalancers", reflect.TypeOf((*MockELBInterface)(nil).ReconcileLoadbalancers))
}
// RegisterInstanceWithAPIServerELB mocks base method
func (m *MockELBInterface) RegisterInstanceWithAPIServerELB(arg0 string) error {
ret := m.ctrl.Call(m, "RegisterInstanceWithAPIServerELB", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// RegisterInstanceWithAPIServerELB indicates an expected call of RegisterInstanceWithAPIServerELB
func (mr *MockELBInterfaceMockRecorder) RegisterInstanceWithAPIServerELB(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterInstanceWithAPIServerELB", reflect.TypeOf((*MockELBInterface)(nil).RegisterInstanceWithAPIServerELB), arg0)
}