-
Notifications
You must be signed in to change notification settings - Fork 14
/
ec2client_mock.go
109 lines (93 loc) · 4.08 KB
/
ec2client_mock.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
// Code generated by MockGen. DO NOT EDIT.
// Source: ./csasession/clientfactory/ec2client.go
// Package mocks is a generated GoMock package.
package mocks
import (
ec2 "github.com/aws/aws-sdk-go/service/ec2"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockEC2Client is a mock of EC2Client interface
type MockEC2Client struct {
ctrl *gomock.Controller
recorder *MockEC2ClientMockRecorder
}
// MockEC2ClientMockRecorder is the mock recorder for MockEC2Client
type MockEC2ClientMockRecorder struct {
mock *MockEC2Client
}
// NewMockEC2Client creates a new mock instance
func NewMockEC2Client(ctrl *gomock.Controller) *MockEC2Client {
mock := &MockEC2Client{ctrl: ctrl}
mock.recorder = &MockEC2ClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockEC2Client) EXPECT() *MockEC2ClientMockRecorder {
return m.recorder
}
// DescribeInstances mocks base method
func (m *MockEC2Client) DescribeInstances(input *ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error) {
m.ctrl.T.Helper()
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 *MockEC2ClientMockRecorder) DescribeInstances(input interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeInstances", reflect.TypeOf((*MockEC2Client)(nil).DescribeInstances), input)
}
// DescribeVolumes mocks base method
func (m *MockEC2Client) DescribeVolumes(input *ec2.DescribeVolumesInput) (*ec2.DescribeVolumesOutput, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DescribeVolumes", input)
ret0, _ := ret[0].(*ec2.DescribeVolumesOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DescribeVolumes indicates an expected call of DescribeVolumes
func (mr *MockEC2ClientMockRecorder) DescribeVolumes(input interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeVolumes", reflect.TypeOf((*MockEC2Client)(nil).DescribeVolumes), input)
}
// DescribeSecurityGroups mocks base method
func (m *MockEC2Client) DescribeSecurityGroups(input *ec2.DescribeSecurityGroupsInput) (*ec2.DescribeSecurityGroupsOutput, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DescribeSecurityGroups", input)
ret0, _ := ret[0].(*ec2.DescribeSecurityGroupsOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DescribeSecurityGroups indicates an expected call of DescribeSecurityGroups
func (mr *MockEC2ClientMockRecorder) DescribeSecurityGroups(input interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSecurityGroups", reflect.TypeOf((*MockEC2Client)(nil).DescribeSecurityGroups), input)
}
// DescribeImages mocks base method
func (m *MockEC2Client) DescribeImages(input *ec2.DescribeImagesInput) (*ec2.DescribeImagesOutput, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DescribeImages", input)
ret0, _ := ret[0].(*ec2.DescribeImagesOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DescribeImages indicates an expected call of DescribeImages
func (mr *MockEC2ClientMockRecorder) DescribeImages(input interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeImages", reflect.TypeOf((*MockEC2Client)(nil).DescribeImages), input)
}
// DescribeSnapshots mocks base method
func (m *MockEC2Client) DescribeSnapshots(input *ec2.DescribeSnapshotsInput) (*ec2.DescribeSnapshotsOutput, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DescribeSnapshots", input)
ret0, _ := ret[0].(*ec2.DescribeSnapshotsOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DescribeSnapshots indicates an expected call of DescribeSnapshots
func (mr *MockEC2ClientMockRecorder) DescribeSnapshots(input interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeSnapshots", reflect.TypeOf((*MockEC2Client)(nil).DescribeSnapshots), input)
}