Documentation ¶
Index ¶
- type LocalStorageDeps
- type MockStorage
- type MockStorage_Delete_Call
- type MockStorage_Download_Call
- func (_c *MockStorage_Download_Call) Return(_a0 error) *MockStorage_Download_Call
- func (_c *MockStorage_Download_Call) Run(run func(ctx context.Context, key string, out io.Writer)) *MockStorage_Download_Call
- func (_c *MockStorage_Download_Call) RunAndReturn(run func(context.Context, string, io.Writer) error) *MockStorage_Download_Call
- type MockStorage_Expecter
- func (_e *MockStorage_Expecter) Delete(ctx interface{}, key interface{}) *MockStorage_Delete_Call
- func (_e *MockStorage_Expecter) Download(ctx interface{}, key interface{}, out interface{}) *MockStorage_Download_Call
- func (_e *MockStorage_Expecter) Upload(ctx interface{}, key interface{}, contents interface{}) *MockStorage_Upload_Call
- type MockStorage_Upload_Call
- func (_c *MockStorage_Upload_Call) Return(_a0 error) *MockStorage_Upload_Call
- func (_c *MockStorage_Upload_Call) Run(run func(ctx context.Context, key string, contents io.Reader)) *MockStorage_Upload_Call
- func (_c *MockStorage_Upload_Call) RunAndReturn(run func(context.Context, string, io.Reader) error) *MockStorage_Upload_Call
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalStorageDeps ¶
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) Delete ¶
func (_m *MockStorage) Delete(ctx context.Context, key string) error
Delete provides a mock function with given fields: ctx, key
func (*MockStorage) EXPECT ¶
func (_m *MockStorage) EXPECT() *MockStorage_Expecter
type MockStorage_Delete_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 ¶
func (_c *MockStorage_Delete_Call) Return(_a0 error) *MockStorage_Delete_Call
func (*MockStorage_Delete_Call) Run ¶
func (_c *MockStorage_Delete_Call) Run(run func(ctx context.Context, key string)) *MockStorage_Delete_Call
func (*MockStorage_Delete_Call) RunAndReturn ¶
func (_c *MockStorage_Delete_Call) RunAndReturn(run func(context.Context, string) error) *MockStorage_Delete_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(_a0 error) *MockStorage_Download_Call
func (*MockStorage_Download_Call) Run ¶
func (_c *MockStorage_Download_Call) Run(run func(ctx context.Context, key string, out io.Writer)) *MockStorage_Download_Call
func (*MockStorage_Download_Call) RunAndReturn ¶
func (_c *MockStorage_Download_Call) RunAndReturn(run func(context.Context, string, io.Writer) error) *MockStorage_Download_Call
type MockStorage_Expecter ¶
type MockStorage_Expecter struct {
// contains filtered or unexported fields
}
func (*MockStorage_Expecter) Delete ¶
func (_e *MockStorage_Expecter) Delete(ctx interface{}, key interface{}) *MockStorage_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- key string
func (*MockStorage_Expecter) Download ¶
func (_e *MockStorage_Expecter) Download(ctx interface{}, key interface{}, out interface{}) *MockStorage_Download_Call
Download is a helper method to define mock.On call
- ctx context.Context
- key string
- out io.Writer
func (*MockStorage_Expecter) Upload ¶
func (_e *MockStorage_Expecter) Upload(ctx interface{}, key interface{}, contents interface{}) *MockStorage_Upload_Call
Upload is a helper method to define mock.On call
- ctx context.Context
- key string
- contents io.Reader
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(_a0 error) *MockStorage_Upload_Call
func (*MockStorage_Upload_Call) Run ¶
func (_c *MockStorage_Upload_Call) Run(run func(ctx context.Context, key string, contents io.Reader)) *MockStorage_Upload_Call
func (*MockStorage_Upload_Call) RunAndReturn ¶
func (_c *MockStorage_Upload_Call) RunAndReturn(run func(context.Context, string, io.Reader) error) *MockStorage_Upload_Call