Documentation
¶
Index ¶
- type MockStorage
- func (_mock *MockStorage) Close() error
- func (_mock *MockStorage) Download(context1 context.Context, downloadFileOptions *objects.DownloadFileOptions) (*objects.DownloadFileMetadata, error)
- func (_m *MockStorage) EXPECT() *MockStorage_Expecter
- func (_mock *MockStorage) GetPresignedURL(s string, duration time.Duration) (string, error)
- func (_mock *MockStorage) GetScheme() *string
- func (_mock *MockStorage) ListBuckets() ([]string, error)
- func (_mock *MockStorage) ManagerUpload(context1 context.Context, bytess [][]byte) error
- func (_mock *MockStorage) Upload(context1 context.Context, reader io.Reader, ...) (*objects.UploadedFileMetadata, error)
- type MockStorage_Close_Call
- type MockStorage_Download_Call
- type MockStorage_Expecter
- func (_e *MockStorage_Expecter) Close() *MockStorage_Close_Call
- func (_e *MockStorage_Expecter) Download(context1 interface{}, downloadFileOptions interface{}) *MockStorage_Download_Call
- func (_e *MockStorage_Expecter) GetPresignedURL(s interface{}, duration interface{}) *MockStorage_GetPresignedURL_Call
- func (_e *MockStorage_Expecter) GetScheme() *MockStorage_GetScheme_Call
- func (_e *MockStorage_Expecter) ListBuckets() *MockStorage_ListBuckets_Call
- func (_e *MockStorage_Expecter) ManagerUpload(context1 interface{}, bytess interface{}) *MockStorage_ManagerUpload_Call
- func (_e *MockStorage_Expecter) Upload(context1 interface{}, reader interface{}, uploadFileOptions interface{}) *MockStorage_Upload_Call
- type MockStorage_GetPresignedURL_Call
- func (_c *MockStorage_GetPresignedURL_Call) Return(s1 string, err error) *MockStorage_GetPresignedURL_Call
- func (_c *MockStorage_GetPresignedURL_Call) Run(run func(s string, duration time.Duration)) *MockStorage_GetPresignedURL_Call
- func (_c *MockStorage_GetPresignedURL_Call) RunAndReturn(run func(s string, duration time.Duration) (string, error)) *MockStorage_GetPresignedURL_Call
- type MockStorage_GetScheme_Call
- type MockStorage_ListBuckets_Call
- func (_c *MockStorage_ListBuckets_Call) Return(strings []string, err error) *MockStorage_ListBuckets_Call
- func (_c *MockStorage_ListBuckets_Call) Run(run func()) *MockStorage_ListBuckets_Call
- func (_c *MockStorage_ListBuckets_Call) RunAndReturn(run func() ([]string, error)) *MockStorage_ListBuckets_Call
- type MockStorage_ManagerUpload_Call
- func (_c *MockStorage_ManagerUpload_Call) Return(err error) *MockStorage_ManagerUpload_Call
- func (_c *MockStorage_ManagerUpload_Call) Run(run func(context1 context.Context, bytess [][]byte)) *MockStorage_ManagerUpload_Call
- func (_c *MockStorage_ManagerUpload_Call) RunAndReturn(run func(context1 context.Context, bytess [][]byte) error) *MockStorage_ManagerUpload_Call
- type MockStorage_Upload_Call
- func (_c *MockStorage_Upload_Call) Return(uploadedFileMetadata *objects.UploadedFileMetadata, err error) *MockStorage_Upload_Call
- func (_c *MockStorage_Upload_Call) Run(run func(context1 context.Context, reader io.Reader, ...)) *MockStorage_Upload_Call
- func (_c *MockStorage_Upload_Call) RunAndReturn(...) *MockStorage_Upload_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStorage ¶
MockStorage is an autogenerated mock type for the Storage type
func NewMockStorage ¶
func NewMockStorage(t interface {
mock.TestingT
Cleanup(func())
}) *MockStorage
NewMockStorage creates a new instance of MockStorage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockStorage) Close ¶
func (_mock *MockStorage) Close() error
Close provides a mock function for the type MockStorage
func (*MockStorage) Download ¶
func (_mock *MockStorage) Download(context1 context.Context, downloadFileOptions *objects.DownloadFileOptions) (*objects.DownloadFileMetadata, error)
Download provides a mock function for the type MockStorage
func (*MockStorage) EXPECT ¶
func (_m *MockStorage) EXPECT() *MockStorage_Expecter
func (*MockStorage) GetPresignedURL ¶
GetPresignedURL provides a mock function for the type MockStorage
func (*MockStorage) GetScheme ¶
func (_mock *MockStorage) GetScheme() *string
GetScheme provides a mock function for the type MockStorage
func (*MockStorage) ListBuckets ¶ added in v0.3.1
func (_mock *MockStorage) ListBuckets() ([]string, error)
ListBuckets provides a mock function for the type MockStorage
func (*MockStorage) ManagerUpload ¶
func (_mock *MockStorage) ManagerUpload(context1 context.Context, bytess [][]byte) error
ManagerUpload provides a mock function for the type MockStorage
func (*MockStorage) Upload ¶
func (_mock *MockStorage) Upload(context1 context.Context, reader io.Reader, uploadFileOptions *objects.UploadFileOptions) (*objects.UploadedFileMetadata, error)
Upload provides a mock function for the type MockStorage
type MockStorage_Close_Call ¶
MockStorage_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockStorage_Close_Call) Return ¶
func (_c *MockStorage_Close_Call) Return(err error) *MockStorage_Close_Call
func (*MockStorage_Close_Call) Run ¶
func (_c *MockStorage_Close_Call) Run(run func()) *MockStorage_Close_Call
func (*MockStorage_Close_Call) RunAndReturn ¶
func (_c *MockStorage_Close_Call) RunAndReturn(run func() error) *MockStorage_Close_Call
type MockStorage_Download_Call ¶
MockStorage_Download_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Download'
func (*MockStorage_Download_Call) Return ¶
func (_c *MockStorage_Download_Call) Return(downloadFileMetadata *objects.DownloadFileMetadata, err error) *MockStorage_Download_Call
func (*MockStorage_Download_Call) Run ¶
func (_c *MockStorage_Download_Call) Run(run func(context1 context.Context, downloadFileOptions *objects.DownloadFileOptions)) *MockStorage_Download_Call
func (*MockStorage_Download_Call) RunAndReturn ¶
func (_c *MockStorage_Download_Call) RunAndReturn(run func(context1 context.Context, downloadFileOptions *objects.DownloadFileOptions) (*objects.DownloadFileMetadata, error)) *MockStorage_Download_Call
type MockStorage_Expecter ¶
type MockStorage_Expecter struct {
// contains filtered or unexported fields
}
func (*MockStorage_Expecter) Close ¶
func (_e *MockStorage_Expecter) Close() *MockStorage_Close_Call
Close is a helper method to define mock.On call
func (*MockStorage_Expecter) Download ¶
func (_e *MockStorage_Expecter) Download(context1 interface{}, downloadFileOptions interface{}) *MockStorage_Download_Call
Download is a helper method to define mock.On call
- context1
- downloadFileOptions
func (*MockStorage_Expecter) GetPresignedURL ¶
func (_e *MockStorage_Expecter) GetPresignedURL(s interface{}, duration interface{}) *MockStorage_GetPresignedURL_Call
GetPresignedURL is a helper method to define mock.On call
- s
- duration
func (*MockStorage_Expecter) GetScheme ¶
func (_e *MockStorage_Expecter) GetScheme() *MockStorage_GetScheme_Call
GetScheme is a helper method to define mock.On call
func (*MockStorage_Expecter) ListBuckets ¶ added in v0.3.1
func (_e *MockStorage_Expecter) ListBuckets() *MockStorage_ListBuckets_Call
ListBuckets is a helper method to define mock.On call
func (*MockStorage_Expecter) ManagerUpload ¶
func (_e *MockStorage_Expecter) ManagerUpload(context1 interface{}, bytess interface{}) *MockStorage_ManagerUpload_Call
ManagerUpload is a helper method to define mock.On call
- context1
- bytess
func (*MockStorage_Expecter) Upload ¶
func (_e *MockStorage_Expecter) Upload(context1 interface{}, reader interface{}, uploadFileOptions interface{}) *MockStorage_Upload_Call
Upload is a helper method to define mock.On call
- context1
- reader
- uploadFileOptions
type MockStorage_GetPresignedURL_Call ¶
MockStorage_GetPresignedURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPresignedURL'
func (*MockStorage_GetPresignedURL_Call) Return ¶
func (_c *MockStorage_GetPresignedURL_Call) Return(s1 string, err error) *MockStorage_GetPresignedURL_Call
func (*MockStorage_GetPresignedURL_Call) Run ¶
func (_c *MockStorage_GetPresignedURL_Call) Run(run func(s string, duration time.Duration)) *MockStorage_GetPresignedURL_Call
func (*MockStorage_GetPresignedURL_Call) RunAndReturn ¶
func (_c *MockStorage_GetPresignedURL_Call) RunAndReturn(run func(s string, duration time.Duration) (string, error)) *MockStorage_GetPresignedURL_Call
type MockStorage_GetScheme_Call ¶
MockStorage_GetScheme_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetScheme'
func (*MockStorage_GetScheme_Call) Return ¶
func (_c *MockStorage_GetScheme_Call) Return(s *string) *MockStorage_GetScheme_Call
func (*MockStorage_GetScheme_Call) Run ¶
func (_c *MockStorage_GetScheme_Call) Run(run func()) *MockStorage_GetScheme_Call
func (*MockStorage_GetScheme_Call) RunAndReturn ¶
func (_c *MockStorage_GetScheme_Call) RunAndReturn(run func() *string) *MockStorage_GetScheme_Call
type MockStorage_ListBuckets_Call ¶ added in v0.3.1
MockStorage_ListBuckets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListBuckets'
func (*MockStorage_ListBuckets_Call) Return ¶ added in v0.3.1
func (_c *MockStorage_ListBuckets_Call) Return(strings []string, err error) *MockStorage_ListBuckets_Call
func (*MockStorage_ListBuckets_Call) Run ¶ added in v0.3.1
func (_c *MockStorage_ListBuckets_Call) Run(run func()) *MockStorage_ListBuckets_Call
func (*MockStorage_ListBuckets_Call) RunAndReturn ¶ added in v0.3.1
func (_c *MockStorage_ListBuckets_Call) RunAndReturn(run func() ([]string, error)) *MockStorage_ListBuckets_Call
type MockStorage_ManagerUpload_Call ¶
MockStorage_ManagerUpload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ManagerUpload'
func (*MockStorage_ManagerUpload_Call) Return ¶
func (_c *MockStorage_ManagerUpload_Call) Return(err error) *MockStorage_ManagerUpload_Call
func (*MockStorage_ManagerUpload_Call) Run ¶
func (_c *MockStorage_ManagerUpload_Call) Run(run func(context1 context.Context, bytess [][]byte)) *MockStorage_ManagerUpload_Call
func (*MockStorage_ManagerUpload_Call) RunAndReturn ¶
func (_c *MockStorage_ManagerUpload_Call) RunAndReturn(run func(context1 context.Context, bytess [][]byte) error) *MockStorage_ManagerUpload_Call
type MockStorage_Upload_Call ¶
MockStorage_Upload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upload'
func (*MockStorage_Upload_Call) Return ¶
func (_c *MockStorage_Upload_Call) Return(uploadedFileMetadata *objects.UploadedFileMetadata, err error) *MockStorage_Upload_Call
func (*MockStorage_Upload_Call) Run ¶
func (_c *MockStorage_Upload_Call) Run(run func(context1 context.Context, reader io.Reader, uploadFileOptions *objects.UploadFileOptions)) *MockStorage_Upload_Call
func (*MockStorage_Upload_Call) RunAndReturn ¶
func (_c *MockStorage_Upload_Call) RunAndReturn(run func(context1 context.Context, reader io.Reader, uploadFileOptions *objects.UploadFileOptions) (*objects.UploadedFileMetadata, error)) *MockStorage_Upload_Call