-
Notifications
You must be signed in to change notification settings - Fork 734
/
ec2wrapper_mocks.go
164 lines (138 loc) · 7 KB
/
ec2wrapper_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
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
// Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"). You may
// not use this file except in compliance with the License. A copy of the
// License is located at
//
// http://aws.amazon.com/apache2.0/
//
// or in the "license" file accompanying this file. This file 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: ./pkg/ec2wrapper/client.go
package mock_ec2wrapper
import (
reflect "reflect"
ec2 "github.com/aws/aws-sdk-go/service/ec2"
gomock "github.com/golang/mock/gomock"
)
// MockEC2 is a mock of EC2 interface
type MockEC2 struct {
ctrl *gomock.Controller
recorder *MockEC2MockRecorder
}
// MockEC2MockRecorder is the mock recorder for MockEC2
type MockEC2MockRecorder struct {
mock *MockEC2
}
// NewMockEC2 creates a new mock instance
func NewMockEC2(ctrl *gomock.Controller) *MockEC2 {
mock := &MockEC2{ctrl: ctrl}
mock.recorder = &MockEC2MockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (_m *MockEC2) EXPECT() *MockEC2MockRecorder {
return _m.recorder
}
// CreateNetworkInterface mocks base method
func (_m *MockEC2) CreateNetworkInterface(input *ec2.CreateNetworkInterfaceInput) (*ec2.CreateNetworkInterfaceOutput, error) {
ret := _m.ctrl.Call(_m, "CreateNetworkInterface", input)
ret0, _ := ret[0].(*ec2.CreateNetworkInterfaceOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CreateNetworkInterface indicates an expected call of CreateNetworkInterface
func (_mr *MockEC2MockRecorder) CreateNetworkInterface(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "CreateNetworkInterface", reflect.TypeOf((*MockEC2)(nil).CreateNetworkInterface), arg0)
}
// DescribeInstances mocks base method
func (_m *MockEC2) DescribeInstances(input *ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error) {
ret := _m.ctrl.Call(_m, "DescribeInstances", input)
ret0, _ := ret[0].(*ec2.DescribeInstancesOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DescribeInstances indicates an expected call of DescribeInstances
func (_mr *MockEC2MockRecorder) DescribeInstances(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "DescribeInstances", reflect.TypeOf((*MockEC2)(nil).DescribeInstances), arg0)
}
// AttachNetworkInterface mocks base method
func (_m *MockEC2) AttachNetworkInterface(input *ec2.AttachNetworkInterfaceInput) (*ec2.AttachNetworkInterfaceOutput, error) {
ret := _m.ctrl.Call(_m, "AttachNetworkInterface", input)
ret0, _ := ret[0].(*ec2.AttachNetworkInterfaceOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// AttachNetworkInterface indicates an expected call of AttachNetworkInterface
func (_mr *MockEC2MockRecorder) AttachNetworkInterface(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "AttachNetworkInterface", reflect.TypeOf((*MockEC2)(nil).AttachNetworkInterface), arg0)
}
// DeleteNetworkInterface mocks base method
func (_m *MockEC2) DeleteNetworkInterface(input *ec2.DeleteNetworkInterfaceInput) (*ec2.DeleteNetworkInterfaceOutput, error) {
ret := _m.ctrl.Call(_m, "DeleteNetworkInterface", input)
ret0, _ := ret[0].(*ec2.DeleteNetworkInterfaceOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DeleteNetworkInterface indicates an expected call of DeleteNetworkInterface
func (_mr *MockEC2MockRecorder) DeleteNetworkInterface(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "DeleteNetworkInterface", reflect.TypeOf((*MockEC2)(nil).DeleteNetworkInterface), arg0)
}
// DetachNetworkInterface mocks base method
func (_m *MockEC2) DetachNetworkInterface(input *ec2.DetachNetworkInterfaceInput) (*ec2.DetachNetworkInterfaceOutput, error) {
ret := _m.ctrl.Call(_m, "DetachNetworkInterface", input)
ret0, _ := ret[0].(*ec2.DetachNetworkInterfaceOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DetachNetworkInterface indicates an expected call of DetachNetworkInterface
func (_mr *MockEC2MockRecorder) DetachNetworkInterface(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "DetachNetworkInterface", reflect.TypeOf((*MockEC2)(nil).DetachNetworkInterface), arg0)
}
// AssignPrivateIpAddresses mocks base method
func (_m *MockEC2) AssignPrivateIpAddresses(input *ec2.AssignPrivateIpAddressesInput) (*ec2.AssignPrivateIpAddressesOutput, error) {
ret := _m.ctrl.Call(_m, "AssignPrivateIpAddresses", input)
ret0, _ := ret[0].(*ec2.AssignPrivateIpAddressesOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// AssignPrivateIpAddresses indicates an expected call of AssignPrivateIpAddresses
func (_mr *MockEC2MockRecorder) AssignPrivateIpAddresses(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "AssignPrivateIpAddresses", reflect.TypeOf((*MockEC2)(nil).AssignPrivateIpAddresses), arg0)
}
// DescribeNetworkInterfaces mocks base method
func (_m *MockEC2) DescribeNetworkInterfaces(input *ec2.DescribeNetworkInterfacesInput) (*ec2.DescribeNetworkInterfacesOutput, error) {
ret := _m.ctrl.Call(_m, "DescribeNetworkInterfaces", input)
ret0, _ := ret[0].(*ec2.DescribeNetworkInterfacesOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DescribeNetworkInterfaces indicates an expected call of DescribeNetworkInterfaces
func (_mr *MockEC2MockRecorder) DescribeNetworkInterfaces(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "DescribeNetworkInterfaces", reflect.TypeOf((*MockEC2)(nil).DescribeNetworkInterfaces), arg0)
}
// ModifyNetworkInterfaceAttribute mocks base method
func (_m *MockEC2) ModifyNetworkInterfaceAttribute(input *ec2.ModifyNetworkInterfaceAttributeInput) (*ec2.ModifyNetworkInterfaceAttributeOutput, error) {
ret := _m.ctrl.Call(_m, "ModifyNetworkInterfaceAttribute", input)
ret0, _ := ret[0].(*ec2.ModifyNetworkInterfaceAttributeOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ModifyNetworkInterfaceAttribute indicates an expected call of ModifyNetworkInterfaceAttribute
func (_mr *MockEC2MockRecorder) ModifyNetworkInterfaceAttribute(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "ModifyNetworkInterfaceAttribute", reflect.TypeOf((*MockEC2)(nil).ModifyNetworkInterfaceAttribute), arg0)
}
// CreateTags mocks base method
func (_m *MockEC2) CreateTags(input *ec2.CreateTagsInput) (*ec2.CreateTagsOutput, error) {
ret := _m.ctrl.Call(_m, "CreateTags", input)
ret0, _ := ret[0].(*ec2.CreateTagsOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CreateTags indicates an expected call of CreateTags
func (_mr *MockEC2MockRecorder) CreateTags(arg0 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCallWithMethodType(_mr.mock, "CreateTags", reflect.TypeOf((*MockEC2)(nil).CreateTags), arg0)
}