Documentation ¶
Overview ¶
Package mockfilestorage is a generated GoMock package.
Package mockfilestorage is a generated GoMock package.
Index ¶
- Variables
- type MockCreator
- type MockCreatorMockRecorder
- type MockFileStorage
- func (m *MockFileStorage) Attributes(arg0 string) (*go_filestorage.FileAttributes, error)
- func (m *MockFileStorage) AttributesCtx(arg0 context.Context, arg1 string) (*go_filestorage.FileAttributes, error)
- func (m *MockFileStorage) Delete(arg0 string) error
- func (m *MockFileStorage) DeleteCtx(arg0 context.Context, arg1 string) error
- func (m *MockFileStorage) EXPECT() *MockFileStorageMockRecorder
- func (m *MockFileStorage) Exists(arg0 string) (bool, error)
- func (m *MockFileStorage) ExistsCtx(arg0 context.Context, arg1 string) (bool, error)
- func (m *MockFileStorage) ID() string
- func (m *MockFileStorage) Read(arg0 string) (io.ReadCloser, error)
- func (m *MockFileStorage) ReadCtx(arg0 context.Context, arg1 string) (io.ReadCloser, error)
- func (m *MockFileStorage) SetAttributes(arg0 string, arg1 *go_filestorage.UpdatableFileAttributes) (*go_filestorage.FileAttributes, error)
- func (m *MockFileStorage) SetAttributesCtx(arg0 context.Context, arg1 string, ...) (*go_filestorage.FileAttributes, error)
- func (m *MockFileStorage) SetBucket(arg0 string) error
- func (m *MockFileStorage) URL(arg0 string) (string, error)
- func (m *MockFileStorage) URLCtx(arg0 context.Context, arg1 string) (string, error)
- func (m *MockFileStorage) Write(arg0 io.Reader, arg1 string) error
- func (m *MockFileStorage) WriteCtx(arg0 context.Context, arg1 io.Reader, arg2 string) error
- func (m *MockFileStorage) WriteIfNotExist(arg0 io.Reader, arg1 string) (bool, string, error)
- func (m *MockFileStorage) WriteIfNotExistCtx(arg0 context.Context, arg1 io.Reader, arg2 string) (bool, string, error)
- type MockFileStorageMockRecorder
- func (mr *MockFileStorageMockRecorder) Attributes(arg0 interface{}) *gomock.Call
- func (mr *MockFileStorageMockRecorder) AttributesCtx(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileStorageMockRecorder) AttributesSuccess(attrs *filestorage.FileAttributes) *gomock.Call
- func (mr *MockFileStorageMockRecorder) Delete(arg0 interface{}) *gomock.Call
- func (mr *MockFileStorageMockRecorder) DeleteCtx(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileStorageMockRecorder) DeleteSuccess() *gomock.Call
- func (mr *MockFileStorageMockRecorder) Exists(arg0 interface{}) *gomock.Call
- func (mr *MockFileStorageMockRecorder) ExistsCtx(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileStorageMockRecorder) ExistsSuccess() *gomock.Call
- func (mr *MockFileStorageMockRecorder) ID() *gomock.Call
- func (mr *MockFileStorageMockRecorder) NotExistsSuccess() *gomock.Call
- func (mr *MockFileStorageMockRecorder) Read(arg0 interface{}) *gomock.Call
- func (mr *MockFileStorageMockRecorder) ReadCtx(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileStorageMockRecorder) ReadSuccess(cwd, filename string) *gomock.Call
- func (mr *MockFileStorageMockRecorder) SetAttributes(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileStorageMockRecorder) SetAttributesCtx(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockFileStorageMockRecorder) SetAttributesRetSuccess(attrs *filestorage.FileAttributes) *gomock.Call
- func (mr *MockFileStorageMockRecorder) SetAttributesSuccess() *gomock.Call
- func (mr *MockFileStorageMockRecorder) SetBucket(arg0 interface{}) *gomock.Call
- func (mr *MockFileStorageMockRecorder) URL(arg0 interface{}) *gomock.Call
- func (mr *MockFileStorageMockRecorder) URLCtx(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileStorageMockRecorder) URLSuccess(url string) *gomock.Call
- func (mr *MockFileStorageMockRecorder) Write(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileStorageMockRecorder) WriteCtx(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockFileStorageMockRecorder) WriteIfNotExist(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileStorageMockRecorder) WriteIfNotExistCtx(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockFileStorageMockRecorder) WriteIfNotExistError() *gomock.Call
- func (mr *MockFileStorageMockRecorder) WriteIfNotExistSuccess(isNew bool, url string) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
var ( // StringType represent a string argument StringType = gomock.Eq("string") // UpdatableAttrType represents a *filestorage.UpdatableFileAttributes argument UpdatableAttrType = gomock.Eq("*filestorage.UpdatableFileAttributes") // AnyType represents am argument that can accept anything AnyType = gomock.Any() )
Functions ¶
This section is empty.
Types ¶
type MockCreator ¶
type MockCreator struct {
// contains filtered or unexported fields
}
MockCreator is a mock of Creator interface
func NewMockCreator ¶
func NewMockCreator(ctrl *gomock.Controller) *MockCreator
NewMockCreator creates a new mock instance
func (*MockCreator) EXPECT ¶
func (m *MockCreator) EXPECT() *MockCreatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockCreator) New ¶
func (m *MockCreator) New() (go_filestorage.FileStorage, error)
New mocks base method
func (*MockCreator) NewWithContext ¶
func (m *MockCreator) NewWithContext(arg0 context.Context) (go_filestorage.FileStorage, error)
NewWithContext mocks base method
type MockCreatorMockRecorder ¶
type MockCreatorMockRecorder struct {
// contains filtered or unexported fields
}
MockCreatorMockRecorder is the mock recorder for MockCreator
func (*MockCreatorMockRecorder) New ¶
func (mr *MockCreatorMockRecorder) New() *gomock.Call
New indicates an expected call of New
func (*MockCreatorMockRecorder) NewWithContext ¶
func (mr *MockCreatorMockRecorder) NewWithContext(arg0 interface{}) *gomock.Call
NewWithContext indicates an expected call of NewWithContext
type MockFileStorage ¶
type MockFileStorage struct {
// contains filtered or unexported fields
}
MockFileStorage is a mock of FileStorage interface
func NewMockFileStorage ¶
func NewMockFileStorage(ctrl *gomock.Controller) *MockFileStorage
NewMockFileStorage creates a new mock instance
func (*MockFileStorage) Attributes ¶
func (m *MockFileStorage) Attributes(arg0 string) (*go_filestorage.FileAttributes, error)
Attributes mocks base method
func (*MockFileStorage) AttributesCtx ¶
func (m *MockFileStorage) AttributesCtx(arg0 context.Context, arg1 string) (*go_filestorage.FileAttributes, error)
AttributesCtx mocks base method
func (*MockFileStorage) Delete ¶
func (m *MockFileStorage) Delete(arg0 string) error
Delete mocks base method
func (*MockFileStorage) DeleteCtx ¶
func (m *MockFileStorage) DeleteCtx(arg0 context.Context, arg1 string) error
DeleteCtx mocks base method
func (*MockFileStorage) EXPECT ¶
func (m *MockFileStorage) EXPECT() *MockFileStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockFileStorage) Exists ¶
func (m *MockFileStorage) Exists(arg0 string) (bool, error)
Exists mocks base method
func (*MockFileStorage) Read ¶
func (m *MockFileStorage) Read(arg0 string) (io.ReadCloser, error)
Read mocks base method
func (*MockFileStorage) ReadCtx ¶
func (m *MockFileStorage) ReadCtx(arg0 context.Context, arg1 string) (io.ReadCloser, error)
ReadCtx mocks base method
func (*MockFileStorage) SetAttributes ¶
func (m *MockFileStorage) SetAttributes(arg0 string, arg1 *go_filestorage.UpdatableFileAttributes) (*go_filestorage.FileAttributes, error)
SetAttributes mocks base method
func (*MockFileStorage) SetAttributesCtx ¶
func (m *MockFileStorage) SetAttributesCtx(arg0 context.Context, arg1 string, arg2 *go_filestorage.UpdatableFileAttributes) (*go_filestorage.FileAttributes, error)
SetAttributesCtx mocks base method
func (*MockFileStorage) SetBucket ¶
func (m *MockFileStorage) SetBucket(arg0 string) error
SetBucket mocks base method
func (*MockFileStorage) URL ¶
func (m *MockFileStorage) URL(arg0 string) (string, error)
URL mocks base method
func (*MockFileStorage) Write ¶
func (m *MockFileStorage) Write(arg0 io.Reader, arg1 string) error
Write mocks base method
func (*MockFileStorage) WriteIfNotExist ¶
WriteIfNotExist mocks base method
type MockFileStorageMockRecorder ¶
type MockFileStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockFileStorageMockRecorder is the mock recorder for MockFileStorage
func (*MockFileStorageMockRecorder) Attributes ¶
func (mr *MockFileStorageMockRecorder) Attributes(arg0 interface{}) *gomock.Call
Attributes indicates an expected call of Attributes
func (*MockFileStorageMockRecorder) AttributesCtx ¶
func (mr *MockFileStorageMockRecorder) AttributesCtx(arg0, arg1 interface{}) *gomock.Call
AttributesCtx indicates an expected call of AttributesCtx
func (*MockFileStorageMockRecorder) AttributesSuccess ¶
func (mr *MockFileStorageMockRecorder) AttributesSuccess(attrs *filestorage.FileAttributes) *gomock.Call
AttributesSuccess is an helper that expects Attributes() to return the provided object
func (*MockFileStorageMockRecorder) Delete ¶
func (mr *MockFileStorageMockRecorder) Delete(arg0 interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockFileStorageMockRecorder) DeleteCtx ¶
func (mr *MockFileStorageMockRecorder) DeleteCtx(arg0, arg1 interface{}) *gomock.Call
DeleteCtx indicates an expected call of DeleteCtx
func (*MockFileStorageMockRecorder) DeleteSuccess ¶
func (mr *MockFileStorageMockRecorder) DeleteSuccess() *gomock.Call
DeleteSuccess is an helper that expects Delete() to succeed
func (*MockFileStorageMockRecorder) Exists ¶
func (mr *MockFileStorageMockRecorder) Exists(arg0 interface{}) *gomock.Call
Exists indicates an expected call of Exists
func (*MockFileStorageMockRecorder) ExistsCtx ¶
func (mr *MockFileStorageMockRecorder) ExistsCtx(arg0, arg1 interface{}) *gomock.Call
ExistsCtx indicates an expected call of ExistsCtx
func (*MockFileStorageMockRecorder) ExistsSuccess ¶
func (mr *MockFileStorageMockRecorder) ExistsSuccess() *gomock.Call
ExistsSuccess is an helper that expects Exists() to return true
func (*MockFileStorageMockRecorder) ID ¶
func (mr *MockFileStorageMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID
func (*MockFileStorageMockRecorder) NotExistsSuccess ¶
func (mr *MockFileStorageMockRecorder) NotExistsSuccess() *gomock.Call
NotExistsSuccess is an helper that expects Exists() to return false
func (*MockFileStorageMockRecorder) Read ¶
func (mr *MockFileStorageMockRecorder) Read(arg0 interface{}) *gomock.Call
Read indicates an expected call of Read
func (*MockFileStorageMockRecorder) ReadCtx ¶
func (mr *MockFileStorageMockRecorder) ReadCtx(arg0, arg1 interface{}) *gomock.Call
ReadCtx indicates an expected call of ReadCtx
func (*MockFileStorageMockRecorder) ReadSuccess ¶
func (mr *MockFileStorageMockRecorder) ReadSuccess(cwd, filename string) *gomock.Call
ReadSuccess is an helper that expects a Read that succeed
func (*MockFileStorageMockRecorder) SetAttributes ¶
func (mr *MockFileStorageMockRecorder) SetAttributes(arg0, arg1 interface{}) *gomock.Call
SetAttributes indicates an expected call of SetAttributes
func (*MockFileStorageMockRecorder) SetAttributesCtx ¶
func (mr *MockFileStorageMockRecorder) SetAttributesCtx(arg0, arg1, arg2 interface{}) *gomock.Call
SetAttributesCtx indicates an expected call of SetAttributesCtx
func (*MockFileStorageMockRecorder) SetAttributesRetSuccess ¶
func (mr *MockFileStorageMockRecorder) SetAttributesRetSuccess(attrs *filestorage.FileAttributes) *gomock.Call
SetAttributesRetSuccess is an helper that expects SetAttributes() to return the provided object
func (*MockFileStorageMockRecorder) SetAttributesSuccess ¶
func (mr *MockFileStorageMockRecorder) SetAttributesSuccess() *gomock.Call
SetAttributesSuccess is an helper that expects SetAttributes() to work, and to return an empty content
func (*MockFileStorageMockRecorder) SetBucket ¶
func (mr *MockFileStorageMockRecorder) SetBucket(arg0 interface{}) *gomock.Call
SetBucket indicates an expected call of SetBucket
func (*MockFileStorageMockRecorder) URL ¶
func (mr *MockFileStorageMockRecorder) URL(arg0 interface{}) *gomock.Call
URL indicates an expected call of URL
func (*MockFileStorageMockRecorder) URLCtx ¶
func (mr *MockFileStorageMockRecorder) URLCtx(arg0, arg1 interface{}) *gomock.Call
URLCtx indicates an expected call of URLCtx
func (*MockFileStorageMockRecorder) URLSuccess ¶
func (mr *MockFileStorageMockRecorder) URLSuccess(url string) *gomock.Call
URLSuccess is an helper that expects URL() to return given param
func (*MockFileStorageMockRecorder) Write ¶
func (mr *MockFileStorageMockRecorder) Write(arg0, arg1 interface{}) *gomock.Call
Write indicates an expected call of Write
func (*MockFileStorageMockRecorder) WriteCtx ¶
func (mr *MockFileStorageMockRecorder) WriteCtx(arg0, arg1, arg2 interface{}) *gomock.Call
WriteCtx indicates an expected call of WriteCtx
func (*MockFileStorageMockRecorder) WriteIfNotExist ¶
func (mr *MockFileStorageMockRecorder) WriteIfNotExist(arg0, arg1 interface{}) *gomock.Call
WriteIfNotExist indicates an expected call of WriteIfNotExist
func (*MockFileStorageMockRecorder) WriteIfNotExistCtx ¶
func (mr *MockFileStorageMockRecorder) WriteIfNotExistCtx(arg0, arg1, arg2 interface{}) *gomock.Call
WriteIfNotExistCtx indicates an expected call of WriteIfNotExistCtx
func (*MockFileStorageMockRecorder) WriteIfNotExistError ¶
func (mr *MockFileStorageMockRecorder) WriteIfNotExistError() *gomock.Call
WriteIfNotExistError is an helper that expects a WriteIfNotExist to fail
func (*MockFileStorageMockRecorder) WriteIfNotExistSuccess ¶
func (mr *MockFileStorageMockRecorder) WriteIfNotExistSuccess(isNew bool, url string) *gomock.Call
WriteIfNotExistSuccess is an helper that expects a WriteIfNotExist to succeed with the provided params