-
Notifications
You must be signed in to change notification settings - Fork 0
/
aws_mock.go
100 lines (86 loc) · 3.54 KB
/
aws_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
// Code generated by MockGen. DO NOT EDIT.
// Source: aws.go
// Package mock_clients is a generated GoMock package.
package mock_clients
import (
s3 "github.com/aws/aws-sdk-go/service/s3"
gomock "github.com/golang/mock/gomock"
io "io"
reflect "reflect"
)
// MockStorageAccessLayer is a mock of StorageAccessLayer interface
type MockStorageAccessLayer struct {
ctrl *gomock.Controller
recorder *MockStorageAccessLayerMockRecorder
}
// MockStorageAccessLayerMockRecorder is the mock recorder for MockStorageAccessLayer
type MockStorageAccessLayerMockRecorder struct {
mock *MockStorageAccessLayer
}
// NewMockStorageAccessLayer creates a new mock instance
func NewMockStorageAccessLayer(ctrl *gomock.Controller) *MockStorageAccessLayer {
mock := &MockStorageAccessLayer{ctrl: ctrl}
mock.recorder = &MockStorageAccessLayerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockStorageAccessLayer) EXPECT() *MockStorageAccessLayerMockRecorder {
return m.recorder
}
// Upload mocks base method
func (m *MockStorageAccessLayer) Upload(path, filename string, data io.Reader) (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Upload", path, filename, data)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Upload indicates an expected call of Upload
func (mr *MockStorageAccessLayerMockRecorder) Upload(path, filename, data interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Upload", reflect.TypeOf((*MockStorageAccessLayer)(nil).Upload), path, filename, data)
}
// Download mocks base method
func (m *MockStorageAccessLayer) Download(path, filename string, data io.WriterAt) (int64, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Download", path, filename, data)
ret0, _ := ret[0].(int64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Download indicates an expected call of Download
func (mr *MockStorageAccessLayerMockRecorder) Download(path, filename, data interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Download", reflect.TypeOf((*MockStorageAccessLayer)(nil).Download), path, filename, data)
}
// Read mocks base method
func (m *MockStorageAccessLayer) Read(path string, limit int64, readFrom string) (*s3.ListObjectsV2Output, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Read", path, limit, readFrom)
ret0, _ := ret[0].(*s3.ListObjectsV2Output)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Read indicates an expected call of Read
func (mr *MockStorageAccessLayerMockRecorder) Read(path, limit, readFrom interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockStorageAccessLayer)(nil).Read), path, limit, readFrom)
}
// Delete mocks base method
func (m *MockStorageAccessLayer) Delete(path string, files ...string) (*s3.DeleteObjectsOutput, error) {
m.ctrl.T.Helper()
varargs := []interface{}{path}
for _, a := range files {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "Delete", varargs...)
ret0, _ := ret[0].(*s3.DeleteObjectsOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Delete indicates an expected call of Delete
func (mr *MockStorageAccessLayerMockRecorder) Delete(path interface{}, files ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{path}, files...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockStorageAccessLayer)(nil).Delete), varargs...)
}