forked from kyma-project/kyma
/
minio_client.go
33 lines (27 loc) · 1.15 KB
/
minio_client.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
// Code generated by mockery v1.0.0. DO NOT EDIT.
package automock
import context "context"
import io "io"
import minio "github.com/minio/minio-go"
import mock "github.com/stretchr/testify/mock"
// MinioClient is an autogenerated mock type for the MinioClient type
type MinioClient struct {
mock.Mock
}
// PutObjectWithContext provides a mock function with given fields: ctx, bucketName, objectName, reader, objectSize, opts
func (_m *MinioClient) PutObjectWithContext(ctx context.Context, bucketName string, objectName string, reader io.Reader, objectSize int64, opts minio.PutObjectOptions) (int64, error) {
ret := _m.Called(ctx, bucketName, objectName, reader, objectSize, opts)
var r0 int64
if rf, ok := ret.Get(0).(func(context.Context, string, string, io.Reader, int64, minio.PutObjectOptions) int64); ok {
r0 = rf(ctx, bucketName, objectName, reader, objectSize, opts)
} else {
r0 = ret.Get(0).(int64)
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, string, string, io.Reader, int64, minio.PutObjectOptions) error); ok {
r1 = rf(ctx, bucketName, objectName, reader, objectSize, opts)
} else {
r1 = ret.Error(1)
}
return r0, r1
}