forked from mikewlange/furan
/
mock_object_storage_manager.go
96 lines (80 loc) · 3.46 KB
/
mock_object_storage_manager.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: github.com/dollarshaveclub/furan/lib/s3 (interfaces: ObjectStorageManager)
package mocks
import (
s3 "github.com/dollarshaveclub/furan/lib/s3"
gomock "github.com/golang/mock/gomock"
io "io"
)
// MockObjectStorageManager is a mock of ObjectStorageManager interface
type MockObjectStorageManager struct {
ctrl *gomock.Controller
recorder *MockObjectStorageManagerMockRecorder
}
// MockObjectStorageManagerMockRecorder is the mock recorder for MockObjectStorageManager
type MockObjectStorageManagerMockRecorder struct {
mock *MockObjectStorageManager
}
// NewMockObjectStorageManager creates a new mock instance
func NewMockObjectStorageManager(ctrl *gomock.Controller) *MockObjectStorageManager {
mock := &MockObjectStorageManager{ctrl: ctrl}
mock.recorder = &MockObjectStorageManagerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (_m *MockObjectStorageManager) EXPECT() *MockObjectStorageManagerMockRecorder {
return _m.recorder
}
// Exists mocks base method
func (_m *MockObjectStorageManager) Exists(_param0 s3.ImageDescription, _param1 interface{}) (bool, error) {
ret := _m.ctrl.Call(_m, "Exists", _param0, _param1)
ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Exists indicates an expected call of Exists
func (_mr *MockObjectStorageManagerMockRecorder) Exists(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Exists", arg0, arg1)
}
// Pull mocks base method
func (_m *MockObjectStorageManager) Pull(_param0 s3.ImageDescription, _param1 io.WriterAt, _param2 interface{}) error {
ret := _m.ctrl.Call(_m, "Pull", _param0, _param1, _param2)
ret0, _ := ret[0].(error)
return ret0
}
// Pull indicates an expected call of Pull
func (_mr *MockObjectStorageManagerMockRecorder) Pull(arg0, arg1, arg2 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Pull", arg0, arg1, arg2)
}
// Push mocks base method
func (_m *MockObjectStorageManager) Push(_param0 s3.ImageDescription, _param1 io.Reader, _param2 interface{}) error {
ret := _m.ctrl.Call(_m, "Push", _param0, _param1, _param2)
ret0, _ := ret[0].(error)
return ret0
}
// Push indicates an expected call of Push
func (_mr *MockObjectStorageManagerMockRecorder) Push(arg0, arg1, arg2 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Push", arg0, arg1, arg2)
}
// Size mocks base method
func (_m *MockObjectStorageManager) Size(_param0 s3.ImageDescription, _param1 interface{}) (int64, error) {
ret := _m.ctrl.Call(_m, "Size", _param0, _param1)
ret0, _ := ret[0].(int64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Size indicates an expected call of Size
func (_mr *MockObjectStorageManagerMockRecorder) Size(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "Size", arg0, arg1)
}
// WriteFile mocks base method
func (_m *MockObjectStorageManager) WriteFile(_param0 string, _param1 s3.ImageDescription, _param2 string, _param3 io.Reader, _param4 interface{}) (string, error) {
ret := _m.ctrl.Call(_m, "WriteFile", _param0, _param1, _param2, _param3, _param4)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// WriteFile indicates an expected call of WriteFile
func (_mr *MockObjectStorageManagerMockRecorder) WriteFile(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "WriteFile", arg0, arg1, arg2, arg3, arg4)
}