2019-09-15 12:33:02 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2019-06-11 16:23:20 +00:00
|
|
|
// Source: github.com/tus/tusd/pkg/s3store (interfaces: S3API)
|
2016-01-05 17:21:53 +00:00
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// Package s3store is a generated GoMock package.
|
2017-09-03 08:57:06 +00:00
|
|
|
package s3store
|
2016-01-05 17:21:53 +00:00
|
|
|
|
|
|
|
import (
|
2019-09-15 12:33:02 +00:00
|
|
|
context "context"
|
|
|
|
request "github.com/aws/aws-sdk-go/aws/request"
|
2016-01-05 17:21:53 +00:00
|
|
|
s3 "github.com/aws/aws-sdk-go/service/s3"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
2019-09-15 12:33:02 +00:00
|
|
|
reflect "reflect"
|
2016-01-05 17:21:53 +00:00
|
|
|
)
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// MockS3API is a mock of S3API interface
|
2016-01-05 17:21:53 +00:00
|
|
|
type MockS3API struct {
|
|
|
|
ctrl *gomock.Controller
|
2019-09-15 12:33:02 +00:00
|
|
|
recorder *MockS3APIMockRecorder
|
2016-01-05 17:21:53 +00:00
|
|
|
}
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// MockS3APIMockRecorder is the mock recorder for MockS3API
|
|
|
|
type MockS3APIMockRecorder struct {
|
2016-01-05 17:21:53 +00:00
|
|
|
mock *MockS3API
|
|
|
|
}
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// NewMockS3API creates a new mock instance
|
2016-01-05 17:21:53 +00:00
|
|
|
func NewMockS3API(ctrl *gomock.Controller) *MockS3API {
|
|
|
|
mock := &MockS3API{ctrl: ctrl}
|
2019-09-15 12:33:02 +00:00
|
|
|
mock.recorder = &MockS3APIMockRecorder{mock}
|
2016-01-05 17:21:53 +00:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockS3API) EXPECT() *MockS3APIMockRecorder {
|
|
|
|
return m.recorder
|
2016-01-05 17:21:53 +00:00
|
|
|
}
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// AbortMultipartUploadWithContext mocks base method
|
|
|
|
func (m *MockS3API) AbortMultipartUploadWithContext(arg0 context.Context, arg1 *s3.AbortMultipartUploadInput, arg2 ...request.Option) (*s3.AbortMultipartUploadOutput, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "AbortMultipartUploadWithContext", varargs...)
|
2016-01-05 17:21:53 +00:00
|
|
|
ret0, _ := ret[0].(*s3.AbortMultipartUploadOutput)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// AbortMultipartUploadWithContext indicates an expected call of AbortMultipartUploadWithContext
|
|
|
|
func (mr *MockS3APIMockRecorder) AbortMultipartUploadWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AbortMultipartUploadWithContext", reflect.TypeOf((*MockS3API)(nil).AbortMultipartUploadWithContext), varargs...)
|
2016-01-05 17:21:53 +00:00
|
|
|
}
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// CompleteMultipartUploadWithContext mocks base method
|
|
|
|
func (m *MockS3API) CompleteMultipartUploadWithContext(arg0 context.Context, arg1 *s3.CompleteMultipartUploadInput, arg2 ...request.Option) (*s3.CompleteMultipartUploadOutput, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "CompleteMultipartUploadWithContext", varargs...)
|
2016-01-05 17:21:53 +00:00
|
|
|
ret0, _ := ret[0].(*s3.CompleteMultipartUploadOutput)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// CompleteMultipartUploadWithContext indicates an expected call of CompleteMultipartUploadWithContext
|
|
|
|
func (mr *MockS3APIMockRecorder) CompleteMultipartUploadWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CompleteMultipartUploadWithContext", reflect.TypeOf((*MockS3API)(nil).CompleteMultipartUploadWithContext), varargs...)
|
2016-01-05 17:21:53 +00:00
|
|
|
}
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// CreateMultipartUploadWithContext mocks base method
|
|
|
|
func (m *MockS3API) CreateMultipartUploadWithContext(arg0 context.Context, arg1 *s3.CreateMultipartUploadInput, arg2 ...request.Option) (*s3.CreateMultipartUploadOutput, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "CreateMultipartUploadWithContext", varargs...)
|
2016-12-20 16:13:02 +00:00
|
|
|
ret0, _ := ret[0].(*s3.CreateMultipartUploadOutput)
|
2016-01-05 17:21:53 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// CreateMultipartUploadWithContext indicates an expected call of CreateMultipartUploadWithContext
|
|
|
|
func (mr *MockS3APIMockRecorder) CreateMultipartUploadWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateMultipartUploadWithContext", reflect.TypeOf((*MockS3API)(nil).CreateMultipartUploadWithContext), varargs...)
|
2016-01-05 17:21:53 +00:00
|
|
|
}
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// DeleteObjectWithContext mocks base method
|
|
|
|
func (m *MockS3API) DeleteObjectWithContext(arg0 context.Context, arg1 *s3.DeleteObjectInput, arg2 ...request.Option) (*s3.DeleteObjectOutput, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "DeleteObjectWithContext", varargs...)
|
2019-02-23 20:24:38 +00:00
|
|
|
ret0, _ := ret[0].(*s3.DeleteObjectOutput)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// DeleteObjectWithContext indicates an expected call of DeleteObjectWithContext
|
|
|
|
func (mr *MockS3APIMockRecorder) DeleteObjectWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteObjectWithContext", reflect.TypeOf((*MockS3API)(nil).DeleteObjectWithContext), varargs...)
|
2019-02-23 20:24:38 +00:00
|
|
|
}
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// DeleteObjectsWithContext mocks base method
|
|
|
|
func (m *MockS3API) DeleteObjectsWithContext(arg0 context.Context, arg1 *s3.DeleteObjectsInput, arg2 ...request.Option) (*s3.DeleteObjectsOutput, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "DeleteObjectsWithContext", varargs...)
|
2016-12-20 16:13:02 +00:00
|
|
|
ret0, _ := ret[0].(*s3.DeleteObjectsOutput)
|
2016-05-24 15:32:21 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// DeleteObjectsWithContext indicates an expected call of DeleteObjectsWithContext
|
|
|
|
func (mr *MockS3APIMockRecorder) DeleteObjectsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteObjectsWithContext", reflect.TypeOf((*MockS3API)(nil).DeleteObjectsWithContext), varargs...)
|
2016-08-26 15:14:33 +00:00
|
|
|
}
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// GetObjectWithContext mocks base method
|
|
|
|
func (m *MockS3API) GetObjectWithContext(arg0 context.Context, arg1 *s3.GetObjectInput, arg2 ...request.Option) (*s3.GetObjectOutput, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "GetObjectWithContext", varargs...)
|
2016-12-20 16:13:02 +00:00
|
|
|
ret0, _ := ret[0].(*s3.GetObjectOutput)
|
|
|
|
ret1, _ := ret[1].(error)
|
2016-05-24 15:32:21 +00:00
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// GetObjectWithContext indicates an expected call of GetObjectWithContext
|
|
|
|
func (mr *MockS3APIMockRecorder) GetObjectWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetObjectWithContext", reflect.TypeOf((*MockS3API)(nil).GetObjectWithContext), varargs...)
|
2016-05-24 15:32:21 +00:00
|
|
|
}
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// ListPartsWithContext mocks base method
|
|
|
|
func (m *MockS3API) ListPartsWithContext(arg0 context.Context, arg1 *s3.ListPartsInput, arg2 ...request.Option) (*s3.ListPartsOutput, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "ListPartsWithContext", varargs...)
|
2016-01-05 17:21:53 +00:00
|
|
|
ret0, _ := ret[0].(*s3.ListPartsOutput)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// ListPartsWithContext indicates an expected call of ListPartsWithContext
|
|
|
|
func (mr *MockS3APIMockRecorder) ListPartsWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPartsWithContext", reflect.TypeOf((*MockS3API)(nil).ListPartsWithContext), varargs...)
|
2016-01-05 17:21:53 +00:00
|
|
|
}
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// PutObjectWithContext mocks base method
|
|
|
|
func (m *MockS3API) PutObjectWithContext(arg0 context.Context, arg1 *s3.PutObjectInput, arg2 ...request.Option) (*s3.PutObjectOutput, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "PutObjectWithContext", varargs...)
|
2016-01-05 17:21:53 +00:00
|
|
|
ret0, _ := ret[0].(*s3.PutObjectOutput)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// PutObjectWithContext indicates an expected call of PutObjectWithContext
|
|
|
|
func (mr *MockS3APIMockRecorder) PutObjectWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutObjectWithContext", reflect.TypeOf((*MockS3API)(nil).PutObjectWithContext), varargs...)
|
2016-01-05 17:21:53 +00:00
|
|
|
}
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// UploadPartCopyWithContext mocks base method
|
|
|
|
func (m *MockS3API) UploadPartCopyWithContext(arg0 context.Context, arg1 *s3.UploadPartCopyInput, arg2 ...request.Option) (*s3.UploadPartCopyOutput, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "UploadPartCopyWithContext", varargs...)
|
|
|
|
ret0, _ := ret[0].(*s3.UploadPartCopyOutput)
|
2016-01-05 17:21:53 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// UploadPartCopyWithContext indicates an expected call of UploadPartCopyWithContext
|
|
|
|
func (mr *MockS3APIMockRecorder) UploadPartCopyWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UploadPartCopyWithContext", reflect.TypeOf((*MockS3API)(nil).UploadPartCopyWithContext), varargs...)
|
2016-01-05 17:21:53 +00:00
|
|
|
}
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// UploadPartWithContext mocks base method
|
|
|
|
func (m *MockS3API) UploadPartWithContext(arg0 context.Context, arg1 *s3.UploadPartInput, arg2 ...request.Option) (*s3.UploadPartOutput, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
varargs := []interface{}{arg0, arg1}
|
|
|
|
for _, a := range arg2 {
|
|
|
|
varargs = append(varargs, a)
|
|
|
|
}
|
|
|
|
ret := m.ctrl.Call(m, "UploadPartWithContext", varargs...)
|
|
|
|
ret0, _ := ret[0].(*s3.UploadPartOutput)
|
2016-01-05 17:21:53 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2019-09-15 12:33:02 +00:00
|
|
|
// UploadPartWithContext indicates an expected call of UploadPartWithContext
|
|
|
|
func (mr *MockS3APIMockRecorder) UploadPartWithContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
varargs := append([]interface{}{arg0, arg1}, arg2...)
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UploadPartWithContext", reflect.TypeOf((*MockS3API)(nil).UploadPartWithContext), varargs...)
|
2016-01-05 17:21:53 +00:00
|
|
|
}
|