Documentation ¶
Overview ¶
Package storage contains Storage interface and its mock.
Package storage is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
ErrNotFound means that file is not found.
Functions ¶
This section is empty.
Types ¶
type MockStorage ¶
type MockStorage struct {
// contains filtered or unexported fields
}
MockStorage is a mock of Storage interface
func NewMockStorage ¶
func NewMockStorage(ctrl *gomock.Controller) *MockStorage
NewMockStorage creates a new mock instance
func (*MockStorage) EXPECT ¶
func (m *MockStorage) EXPECT() *MockStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockStorage) Ping ¶
func (m *MockStorage) Ping(ctx context.Context) error
Ping mocks base method
func (*MockStorage) Read ¶
func (m *MockStorage) Read(ctx context.Context, path string) (io.ReadCloser, error)
Read mocks base method
type MockStorageMockRecorder ¶
type MockStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageMockRecorder is the mock recorder for MockStorage
func (*MockStorageMockRecorder) Ping ¶
func (mr *MockStorageMockRecorder) Ping(ctx interface{}) *gomock.Call
Ping indicates an expected call of Ping
func (*MockStorageMockRecorder) Read ¶
func (mr *MockStorageMockRecorder) Read(ctx, path interface{}) *gomock.Call
Read indicates an expected call of Read
func (*MockStorageMockRecorder) Write ¶
func (mr *MockStorageMockRecorder) Write(ctx, data, size, path interface{}) *gomock.Call
Write indicates an expected call of Write
Click to show internal directories.
Click to hide internal directories.