mocks

package
v0.36.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStorage

type MockStorage struct {
	mock.Mock
}

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) Delete added in v0.17.3

func (_mock *MockStorage) Delete(context1 context.Context, s string) error

Delete 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

func (_mock *MockStorage) GetPresignedURL(s string, duration time.Duration) (string, error)

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

type MockStorage_Close_Call struct {
	*mock.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 (*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_Delete_Call added in v0.17.3

type MockStorage_Delete_Call struct {
	*mock.Call
}

MockStorage_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*MockStorage_Delete_Call) Return added in v0.17.3

func (*MockStorage_Delete_Call) Run added in v0.17.3

func (_c *MockStorage_Delete_Call) Run(run func(context1 context.Context, s string)) *MockStorage_Delete_Call

func (*MockStorage_Delete_Call) RunAndReturn added in v0.17.3

func (_c *MockStorage_Delete_Call) RunAndReturn(run func(context1 context.Context, s string) error) *MockStorage_Delete_Call

type MockStorage_Download_Call

type MockStorage_Download_Call struct {
	*mock.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 (*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

type MockStorage_Expecter

type MockStorage_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockStorage_Expecter) Close

Close is a helper method to define mock.On call

func (*MockStorage_Expecter) Delete added in v0.17.3

func (_e *MockStorage_Expecter) Delete(context1 interface{}, s interface{}) *MockStorage_Delete_Call

Delete is a helper method to define mock.On call

  • context1 context.Context
  • s string

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 context.Context
  • downloadFileOptions *objects.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 string
  • duration time.Duration

func (*MockStorage_Expecter) GetScheme

GetScheme is a helper method to define mock.On call

func (*MockStorage_Expecter) ListBuckets added in v0.3.1

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 context.Context
  • bytess [][]byte

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 context.Context
  • reader io.Reader
  • uploadFileOptions *objects.UploadFileOptions

type MockStorage_GetPresignedURL_Call

type MockStorage_GetPresignedURL_Call struct {
	*mock.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 (*MockStorage_GetPresignedURL_Call) Run

func (*MockStorage_GetPresignedURL_Call) RunAndReturn

type MockStorage_GetScheme_Call

type MockStorage_GetScheme_Call struct {
	*mock.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 (*MockStorage_GetScheme_Call) Run

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

type MockStorage_ListBuckets_Call struct {
	*mock.Call
}

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 (*MockStorage_ListBuckets_Call) Run added in v0.3.1

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

type MockStorage_ManagerUpload_Call struct {
	*mock.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 (*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

type MockStorage_Upload_Call struct {
	*mock.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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL