-
Notifications
You must be signed in to change notification settings - Fork 806
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9739153
commit a739d75
Showing
4 changed files
with
106 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,144 +1,128 @@ | ||
// Code generated by MockGen. DO NOT EDIT. | ||
// Automatically generated by MockGen. DO NOT EDIT! | ||
// Source: github.com/kubernetes-sigs/aws-ebs-csi-driver/pkg/cloud (interfaces: EC2) | ||
|
||
// Package mocks is a generated GoMock package. | ||
package mocks | ||
|
||
import ( | ||
aws "github.com/aws/aws-sdk-go/aws" | ||
request "github.com/aws/aws-sdk-go/aws/request" | ||
ec2 "github.com/aws/aws-sdk-go/service/ec2" | ||
gomock "github.com/golang/mock/gomock" | ||
reflect "reflect" | ||
) | ||
|
||
// MockEC2 is a mock of EC2 interface | ||
// Mock of EC2 interface | ||
type MockEC2 struct { | ||
ctrl *gomock.Controller | ||
recorder *MockEC2MockRecorder | ||
recorder *_MockEC2Recorder | ||
} | ||
|
||
// MockEC2MockRecorder is the mock recorder for MockEC2 | ||
type MockEC2MockRecorder struct { | ||
// Recorder for MockEC2 (not exported) | ||
type _MockEC2Recorder struct { | ||
mock *MockEC2 | ||
} | ||
|
||
// NewMockEC2 creates a new mock instance | ||
func NewMockEC2(ctrl *gomock.Controller) *MockEC2 { | ||
mock := &MockEC2{ctrl: ctrl} | ||
mock.recorder = &MockEC2MockRecorder{mock} | ||
mock.recorder = &_MockEC2Recorder{mock} | ||
return mock | ||
} | ||
|
||
// EXPECT returns an object that allows the caller to indicate expected use | ||
func (m *MockEC2) EXPECT() *MockEC2MockRecorder { | ||
return m.recorder | ||
func (_m *MockEC2) EXPECT() *_MockEC2Recorder { | ||
return _m.recorder | ||
} | ||
|
||
// AttachVolumeWithContext mocks base method | ||
func (m *MockEC2) AttachVolumeWithContext(arg0 aws.Context, arg1 *ec2.AttachVolumeInput, arg2 ...request.Option) (*ec2.VolumeAttachment, error) { | ||
varargs := []interface{}{arg0, arg1} | ||
for _, a := range arg2 { | ||
varargs = append(varargs, a) | ||
func (_m *MockEC2) AttachVolumeWithContext(_param0 aws.Context, _param1 *ec2.AttachVolumeInput, _param2 ...request.Option) (*ec2.VolumeAttachment, error) { | ||
_s := []interface{}{_param0, _param1} | ||
for _, _x := range _param2 { | ||
_s = append(_s, _x) | ||
} | ||
ret := m.ctrl.Call(m, "AttachVolumeWithContext", varargs...) | ||
ret := _m.ctrl.Call(_m, "AttachVolumeWithContext", _s...) | ||
ret0, _ := ret[0].(*ec2.VolumeAttachment) | ||
ret1, _ := ret[1].(error) | ||
return ret0, ret1 | ||
} | ||
|
||
// AttachVolumeWithContext indicates an expected call of AttachVolumeWithContext | ||
func (mr *MockEC2MockRecorder) AttachVolumeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { | ||
varargs := append([]interface{}{arg0, arg1}, arg2...) | ||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AttachVolumeWithContext", reflect.TypeOf((*MockEC2)(nil).AttachVolumeWithContext), varargs...) | ||
func (_mr *_MockEC2Recorder) AttachVolumeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { | ||
_s := append([]interface{}{arg0, arg1}, arg2...) | ||
return _mr.mock.ctrl.RecordCall(_mr.mock, "AttachVolumeWithContext", _s...) | ||
} | ||
|
||
// CreateVolumeWithContext mocks base method | ||
func (m *MockEC2) CreateVolumeWithContext(arg0 aws.Context, arg1 *ec2.CreateVolumeInput, arg2 ...request.Option) (*ec2.Volume, error) { | ||
varargs := []interface{}{arg0, arg1} | ||
for _, a := range arg2 { | ||
varargs = append(varargs, a) | ||
func (_m *MockEC2) CreateVolumeWithContext(_param0 aws.Context, _param1 *ec2.CreateVolumeInput, _param2 ...request.Option) (*ec2.Volume, error) { | ||
_s := []interface{}{_param0, _param1} | ||
for _, _x := range _param2 { | ||
_s = append(_s, _x) | ||
} | ||
ret := m.ctrl.Call(m, "CreateVolumeWithContext", varargs...) | ||
ret := _m.ctrl.Call(_m, "CreateVolumeWithContext", _s...) | ||
ret0, _ := ret[0].(*ec2.Volume) | ||
ret1, _ := ret[1].(error) | ||
return ret0, ret1 | ||
} | ||
|
||
// CreateVolumeWithContext indicates an expected call of CreateVolumeWithContext | ||
func (mr *MockEC2MockRecorder) CreateVolumeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { | ||
varargs := append([]interface{}{arg0, arg1}, arg2...) | ||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateVolumeWithContext", reflect.TypeOf((*MockEC2)(nil).CreateVolumeWithContext), varargs...) | ||
func (_mr *_MockEC2Recorder) CreateVolumeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { | ||
_s := append([]interface{}{arg0, arg1}, arg2...) | ||
return _mr.mock.ctrl.RecordCall(_mr.mock, "CreateVolumeWithContext", _s...) | ||
} | ||
|
||
// DeleteVolumeWithContext mocks base method | ||
func (m *MockEC2) DeleteVolumeWithContext(arg0 aws.Context, arg1 *ec2.DeleteVolumeInput, arg2 ...request.Option) (*ec2.DeleteVolumeOutput, error) { | ||
varargs := []interface{}{arg0, arg1} | ||
for _, a := range arg2 { | ||
varargs = append(varargs, a) | ||
func (_m *MockEC2) DeleteVolumeWithContext(_param0 aws.Context, _param1 *ec2.DeleteVolumeInput, _param2 ...request.Option) (*ec2.DeleteVolumeOutput, error) { | ||
_s := []interface{}{_param0, _param1} | ||
for _, _x := range _param2 { | ||
_s = append(_s, _x) | ||
} | ||
ret := m.ctrl.Call(m, "DeleteVolumeWithContext", varargs...) | ||
ret := _m.ctrl.Call(_m, "DeleteVolumeWithContext", _s...) | ||
ret0, _ := ret[0].(*ec2.DeleteVolumeOutput) | ||
ret1, _ := ret[1].(error) | ||
return ret0, ret1 | ||
} | ||
|
||
// DeleteVolumeWithContext indicates an expected call of DeleteVolumeWithContext | ||
func (mr *MockEC2MockRecorder) DeleteVolumeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { | ||
varargs := append([]interface{}{arg0, arg1}, arg2...) | ||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteVolumeWithContext", reflect.TypeOf((*MockEC2)(nil).DeleteVolumeWithContext), varargs...) | ||
func (_mr *_MockEC2Recorder) DeleteVolumeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { | ||
_s := append([]interface{}{arg0, arg1}, arg2...) | ||
return _mr.mock.ctrl.RecordCall(_mr.mock, "DeleteVolumeWithContext", _s...) | ||
} | ||
|
||
// DescribeInstancesWithContext mocks base method | ||
func (m *MockEC2) DescribeInstancesWithContext(arg0 aws.Context, arg1 *ec2.DescribeInstancesInput, arg2 ...request.Option) (*ec2.DescribeInstancesOutput, error) { | ||
varargs := []interface{}{arg0, arg1} | ||
for _, a := range arg2 { | ||
varargs = append(varargs, a) | ||
func (_m *MockEC2) DescribeInstancesWithContext(_param0 aws.Context, _param1 *ec2.DescribeInstancesInput, _param2 ...request.Option) (*ec2.DescribeInstancesOutput, error) { | ||
_s := []interface{}{_param0, _param1} | ||
for _, _x := range _param2 { | ||
_s = append(_s, _x) | ||
} | ||
ret := m.ctrl.Call(m, "DescribeInstancesWithContext", varargs...) | ||
ret := _m.ctrl.Call(_m, "DescribeInstancesWithContext", _s...) | ||
ret0, _ := ret[0].(*ec2.DescribeInstancesOutput) | ||
ret1, _ := ret[1].(error) | ||
return ret0, ret1 | ||
} | ||
|
||
// DescribeInstancesWithContext indicates an expected call of DescribeInstancesWithContext | ||
func (mr *MockEC2MockRecorder) DescribeInstancesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { | ||
varargs := append([]interface{}{arg0, arg1}, arg2...) | ||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeInstancesWithContext", reflect.TypeOf((*MockEC2)(nil).DescribeInstancesWithContext), varargs...) | ||
func (_mr *_MockEC2Recorder) DescribeInstancesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { | ||
_s := append([]interface{}{arg0, arg1}, arg2...) | ||
return _mr.mock.ctrl.RecordCall(_mr.mock, "DescribeInstancesWithContext", _s...) | ||
} | ||
|
||
// DescribeVolumesWithContext mocks base method | ||
func (m *MockEC2) DescribeVolumesWithContext(arg0 aws.Context, arg1 *ec2.DescribeVolumesInput, arg2 ...request.Option) (*ec2.DescribeVolumesOutput, error) { | ||
varargs := []interface{}{arg0, arg1} | ||
for _, a := range arg2 { | ||
varargs = append(varargs, a) | ||
func (_m *MockEC2) DescribeVolumesWithContext(_param0 aws.Context, _param1 *ec2.DescribeVolumesInput, _param2 ...request.Option) (*ec2.DescribeVolumesOutput, error) { | ||
_s := []interface{}{_param0, _param1} | ||
for _, _x := range _param2 { | ||
_s = append(_s, _x) | ||
} | ||
ret := m.ctrl.Call(m, "DescribeVolumesWithContext", varargs...) | ||
ret := _m.ctrl.Call(_m, "DescribeVolumesWithContext", _s...) | ||
ret0, _ := ret[0].(*ec2.DescribeVolumesOutput) | ||
ret1, _ := ret[1].(error) | ||
return ret0, ret1 | ||
} | ||
|
||
// DescribeVolumesWithContext indicates an expected call of DescribeVolumesWithContext | ||
func (mr *MockEC2MockRecorder) DescribeVolumesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { | ||
varargs := append([]interface{}{arg0, arg1}, arg2...) | ||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeVolumesWithContext", reflect.TypeOf((*MockEC2)(nil).DescribeVolumesWithContext), varargs...) | ||
func (_mr *_MockEC2Recorder) DescribeVolumesWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { | ||
_s := append([]interface{}{arg0, arg1}, arg2...) | ||
return _mr.mock.ctrl.RecordCall(_mr.mock, "DescribeVolumesWithContext", _s...) | ||
} | ||
|
||
// DetachVolumeWithContext mocks base method | ||
func (m *MockEC2) DetachVolumeWithContext(arg0 aws.Context, arg1 *ec2.DetachVolumeInput, arg2 ...request.Option) (*ec2.VolumeAttachment, error) { | ||
varargs := []interface{}{arg0, arg1} | ||
for _, a := range arg2 { | ||
varargs = append(varargs, a) | ||
func (_m *MockEC2) DetachVolumeWithContext(_param0 aws.Context, _param1 *ec2.DetachVolumeInput, _param2 ...request.Option) (*ec2.VolumeAttachment, error) { | ||
_s := []interface{}{_param0, _param1} | ||
for _, _x := range _param2 { | ||
_s = append(_s, _x) | ||
} | ||
ret := m.ctrl.Call(m, "DetachVolumeWithContext", varargs...) | ||
ret := _m.ctrl.Call(_m, "DetachVolumeWithContext", _s...) | ||
ret0, _ := ret[0].(*ec2.VolumeAttachment) | ||
ret1, _ := ret[1].(error) | ||
return ret0, ret1 | ||
} | ||
|
||
// DetachVolumeWithContext indicates an expected call of DetachVolumeWithContext | ||
func (mr *MockEC2MockRecorder) DetachVolumeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { | ||
varargs := append([]interface{}{arg0, arg1}, arg2...) | ||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DetachVolumeWithContext", reflect.TypeOf((*MockEC2)(nil).DetachVolumeWithContext), varargs...) | ||
func (_mr *_MockEC2Recorder) DetachVolumeWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call { | ||
_s := append([]interface{}{arg0, arg1}, arg2...) | ||
return _mr.mock.ctrl.RecordCall(_mr.mock, "DetachVolumeWithContext", _s...) | ||
} |