1// Code generated by MockGen. DO NOT EDIT.
2// Source: load_balancers.go
3
4// Package mocks is a generated GoMock package.
5package mocks
6
7import (
8	reflect "reflect"
9
10	do "github.com/digitalocean/doctl/do"
11	godo "github.com/digitalocean/godo"
12	gomock "github.com/golang/mock/gomock"
13)
14
15// MockLoadBalancersService is a mock of LoadBalancersService interface.
16type MockLoadBalancersService struct {
17	ctrl     *gomock.Controller
18	recorder *MockLoadBalancersServiceMockRecorder
19}
20
21// MockLoadBalancersServiceMockRecorder is the mock recorder for MockLoadBalancersService.
22type MockLoadBalancersServiceMockRecorder struct {
23	mock *MockLoadBalancersService
24}
25
26// NewMockLoadBalancersService creates a new mock instance.
27func NewMockLoadBalancersService(ctrl *gomock.Controller) *MockLoadBalancersService {
28	mock := &MockLoadBalancersService{ctrl: ctrl}
29	mock.recorder = &MockLoadBalancersServiceMockRecorder{mock}
30	return mock
31}
32
33// EXPECT returns an object that allows the caller to indicate expected use.
34func (m *MockLoadBalancersService) EXPECT() *MockLoadBalancersServiceMockRecorder {
35	return m.recorder
36}
37
38// AddDroplets mocks base method.
39func (m *MockLoadBalancersService) AddDroplets(lbID string, dIDs ...int) error {
40	m.ctrl.T.Helper()
41	varargs := []interface{}{lbID}
42	for _, a := range dIDs {
43		varargs = append(varargs, a)
44	}
45	ret := m.ctrl.Call(m, "AddDroplets", varargs...)
46	ret0, _ := ret[0].(error)
47	return ret0
48}
49
50// AddDroplets indicates an expected call of AddDroplets.
51func (mr *MockLoadBalancersServiceMockRecorder) AddDroplets(lbID interface{}, dIDs ...interface{}) *gomock.Call {
52	mr.mock.ctrl.T.Helper()
53	varargs := append([]interface{}{lbID}, dIDs...)
54	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddDroplets", reflect.TypeOf((*MockLoadBalancersService)(nil).AddDroplets), varargs...)
55}
56
57// AddForwardingRules mocks base method.
58func (m *MockLoadBalancersService) AddForwardingRules(lbID string, rules ...godo.ForwardingRule) error {
59	m.ctrl.T.Helper()
60	varargs := []interface{}{lbID}
61	for _, a := range rules {
62		varargs = append(varargs, a)
63	}
64	ret := m.ctrl.Call(m, "AddForwardingRules", varargs...)
65	ret0, _ := ret[0].(error)
66	return ret0
67}
68
69// AddForwardingRules indicates an expected call of AddForwardingRules.
70func (mr *MockLoadBalancersServiceMockRecorder) AddForwardingRules(lbID interface{}, rules ...interface{}) *gomock.Call {
71	mr.mock.ctrl.T.Helper()
72	varargs := append([]interface{}{lbID}, rules...)
73	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddForwardingRules", reflect.TypeOf((*MockLoadBalancersService)(nil).AddForwardingRules), varargs...)
74}
75
76// Create mocks base method.
77func (m *MockLoadBalancersService) Create(lbr *godo.LoadBalancerRequest) (*do.LoadBalancer, error) {
78	m.ctrl.T.Helper()
79	ret := m.ctrl.Call(m, "Create", lbr)
80	ret0, _ := ret[0].(*do.LoadBalancer)
81	ret1, _ := ret[1].(error)
82	return ret0, ret1
83}
84
85// Create indicates an expected call of Create.
86func (mr *MockLoadBalancersServiceMockRecorder) Create(lbr interface{}) *gomock.Call {
87	mr.mock.ctrl.T.Helper()
88	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockLoadBalancersService)(nil).Create), lbr)
89}
90
91// Delete mocks base method.
92func (m *MockLoadBalancersService) Delete(lbID string) error {
93	m.ctrl.T.Helper()
94	ret := m.ctrl.Call(m, "Delete", lbID)
95	ret0, _ := ret[0].(error)
96	return ret0
97}
98
99// Delete indicates an expected call of Delete.
100func (mr *MockLoadBalancersServiceMockRecorder) Delete(lbID interface{}) *gomock.Call {
101	mr.mock.ctrl.T.Helper()
102	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockLoadBalancersService)(nil).Delete), lbID)
103}
104
105// Get mocks base method.
106func (m *MockLoadBalancersService) Get(lbID string) (*do.LoadBalancer, error) {
107	m.ctrl.T.Helper()
108	ret := m.ctrl.Call(m, "Get", lbID)
109	ret0, _ := ret[0].(*do.LoadBalancer)
110	ret1, _ := ret[1].(error)
111	return ret0, ret1
112}
113
114// Get indicates an expected call of Get.
115func (mr *MockLoadBalancersServiceMockRecorder) Get(lbID interface{}) *gomock.Call {
116	mr.mock.ctrl.T.Helper()
117	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockLoadBalancersService)(nil).Get), lbID)
118}
119
120// List mocks base method.
121func (m *MockLoadBalancersService) List() (do.LoadBalancers, error) {
122	m.ctrl.T.Helper()
123	ret := m.ctrl.Call(m, "List")
124	ret0, _ := ret[0].(do.LoadBalancers)
125	ret1, _ := ret[1].(error)
126	return ret0, ret1
127}
128
129// List indicates an expected call of List.
130func (mr *MockLoadBalancersServiceMockRecorder) List() *gomock.Call {
131	mr.mock.ctrl.T.Helper()
132	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockLoadBalancersService)(nil).List))
133}
134
135// RemoveDroplets mocks base method.
136func (m *MockLoadBalancersService) RemoveDroplets(lbID string, dIDs ...int) error {
137	m.ctrl.T.Helper()
138	varargs := []interface{}{lbID}
139	for _, a := range dIDs {
140		varargs = append(varargs, a)
141	}
142	ret := m.ctrl.Call(m, "RemoveDroplets", varargs...)
143	ret0, _ := ret[0].(error)
144	return ret0
145}
146
147// RemoveDroplets indicates an expected call of RemoveDroplets.
148func (mr *MockLoadBalancersServiceMockRecorder) RemoveDroplets(lbID interface{}, dIDs ...interface{}) *gomock.Call {
149	mr.mock.ctrl.T.Helper()
150	varargs := append([]interface{}{lbID}, dIDs...)
151	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveDroplets", reflect.TypeOf((*MockLoadBalancersService)(nil).RemoveDroplets), varargs...)
152}
153
154// RemoveForwardingRules mocks base method.
155func (m *MockLoadBalancersService) RemoveForwardingRules(lbID string, rules ...godo.ForwardingRule) error {
156	m.ctrl.T.Helper()
157	varargs := []interface{}{lbID}
158	for _, a := range rules {
159		varargs = append(varargs, a)
160	}
161	ret := m.ctrl.Call(m, "RemoveForwardingRules", varargs...)
162	ret0, _ := ret[0].(error)
163	return ret0
164}
165
166// RemoveForwardingRules indicates an expected call of RemoveForwardingRules.
167func (mr *MockLoadBalancersServiceMockRecorder) RemoveForwardingRules(lbID interface{}, rules ...interface{}) *gomock.Call {
168	mr.mock.ctrl.T.Helper()
169	varargs := append([]interface{}{lbID}, rules...)
170	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveForwardingRules", reflect.TypeOf((*MockLoadBalancersService)(nil).RemoveForwardingRules), varargs...)
171}
172
173// Update mocks base method.
174func (m *MockLoadBalancersService) Update(lbID string, lbr *godo.LoadBalancerRequest) (*do.LoadBalancer, error) {
175	m.ctrl.T.Helper()
176	ret := m.ctrl.Call(m, "Update", lbID, lbr)
177	ret0, _ := ret[0].(*do.LoadBalancer)
178	ret1, _ := ret[1].(error)
179	return ret0, ret1
180}
181
182// Update indicates an expected call of Update.
183func (mr *MockLoadBalancersServiceMockRecorder) Update(lbID, lbr interface{}) *gomock.Call {
184	mr.mock.ctrl.T.Helper()
185	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockLoadBalancersService)(nil).Update), lbID, lbr)
186}
187