49 lines
1.2 KiB
Go
49 lines
1.2 KiB
Go
|
// Code generated by mockery v2.9.4. DO NOT EDIT.
|
||
|
|
||
|
package mocks
|
||
|
|
||
|
import (
|
||
|
context "context"
|
||
|
|
||
|
mock "github.com/stretchr/testify/mock"
|
||
|
|
||
|
s3 "github.com/aws/aws-sdk-go-v2/service/s3"
|
||
|
|
||
|
v4 "github.com/aws/aws-sdk-go-v2/aws/signer/v4"
|
||
|
)
|
||
|
|
||
|
// S3PresignClient is an autogenerated mock type for the S3PresignClient type
|
||
|
type S3PresignClient struct {
|
||
|
mock.Mock
|
||
|
}
|
||
|
|
||
|
// PresignGetObject provides a mock function with given fields: _a0, _a1, _a2
|
||
|
func (_m *S3PresignClient) PresignGetObject(_a0 context.Context, _a1 *s3.GetObjectInput, _a2 ...func(*s3.PresignOptions)) (*v4.PresignedHTTPRequest, error) {
|
||
|
_va := make([]interface{}, len(_a2))
|
||
|
for _i := range _a2 {
|
||
|
_va[_i] = _a2[_i]
|
||
|
}
|
||
|
var _ca []interface{}
|
||
|
_ca = append(_ca, _a0, _a1)
|
||
|
_ca = append(_ca, _va...)
|
||
|
ret := _m.Called(_ca...)
|
||
|
|
||
|
var r0 *v4.PresignedHTTPRequest
|
||
|
if rf, ok := ret.Get(0).(func(context.Context, *s3.GetObjectInput, ...func(*s3.PresignOptions)) *v4.PresignedHTTPRequest); ok {
|
||
|
r0 = rf(_a0, _a1, _a2...)
|
||
|
} else {
|
||
|
if ret.Get(0) != nil {
|
||
|
r0 = ret.Get(0).(*v4.PresignedHTTPRequest)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var r1 error
|
||
|
if rf, ok := ret.Get(1).(func(context.Context, *s3.GetObjectInput, ...func(*s3.PresignOptions)) error); ok {
|
||
|
r1 = rf(_a0, _a1, _a2...)
|
||
|
} else {
|
||
|
r1 = ret.Error(1)
|
||
|
}
|
||
|
|
||
|
return r0, r1
|
||
|
}
|