-
Notifications
You must be signed in to change notification settings - Fork 383
/
ReservedIPActionsService.go
96 lines (81 loc) · 3.36 KB
/
ReservedIPActionsService.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
// Code generated by MockGen. DO NOT EDIT.
// Source: reserved_ip_actions.go
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
do "github.com/digitalocean/doctl/do"
godo "github.com/digitalocean/godo"
gomock "go.uber.org/mock/gomock"
)
// MockReservedIPActionsService is a mock of ReservedIPActionsService interface.
type MockReservedIPActionsService struct {
ctrl *gomock.Controller
recorder *MockReservedIPActionsServiceMockRecorder
}
// MockReservedIPActionsServiceMockRecorder is the mock recorder for MockReservedIPActionsService.
type MockReservedIPActionsServiceMockRecorder struct {
mock *MockReservedIPActionsService
}
// NewMockReservedIPActionsService creates a new mock instance.
func NewMockReservedIPActionsService(ctrl *gomock.Controller) *MockReservedIPActionsService {
mock := &MockReservedIPActionsService{ctrl: ctrl}
mock.recorder = &MockReservedIPActionsServiceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockReservedIPActionsService) EXPECT() *MockReservedIPActionsServiceMockRecorder {
return m.recorder
}
// Assign mocks base method.
func (m *MockReservedIPActionsService) Assign(ip string, dropletID int) (*do.Action, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Assign", ip, dropletID)
ret0, _ := ret[0].(*do.Action)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Assign indicates an expected call of Assign.
func (mr *MockReservedIPActionsServiceMockRecorder) Assign(ip, dropletID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Assign", reflect.TypeOf((*MockReservedIPActionsService)(nil).Assign), ip, dropletID)
}
// Get mocks base method.
func (m *MockReservedIPActionsService) Get(ip string, actionID int) (*do.Action, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Get", ip, actionID)
ret0, _ := ret[0].(*do.Action)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Get indicates an expected call of Get.
func (mr *MockReservedIPActionsServiceMockRecorder) Get(ip, actionID interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockReservedIPActionsService)(nil).Get), ip, actionID)
}
// List mocks base method.
func (m *MockReservedIPActionsService) List(ip string, opt *godo.ListOptions) ([]do.Action, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "List", ip, opt)
ret0, _ := ret[0].([]do.Action)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// List indicates an expected call of List.
func (mr *MockReservedIPActionsServiceMockRecorder) List(ip, opt interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockReservedIPActionsService)(nil).List), ip, opt)
}
// Unassign mocks base method.
func (m *MockReservedIPActionsService) Unassign(ip string) (*do.Action, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Unassign", ip)
ret0, _ := ret[0].(*do.Action)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Unassign indicates an expected call of Unassign.
func (mr *MockReservedIPActionsServiceMockRecorder) Unassign(ip interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unassign", reflect.TypeOf((*MockReservedIPActionsService)(nil).Unassign), ip)
}