Documentation ¶
Index ¶
- type FileBackend
- func (_m *FileBackend) CopyFile(oldPath string, newPath string) *model.AppError
- func (_m *FileBackend) FileExists(path string) (bool, *model.AppError)
- func (_m *FileBackend) ListDirectory(path string) (*[]string, *model.AppError)
- func (_m *FileBackend) MoveFile(oldPath string, newPath string) *model.AppError
- func (_m *FileBackend) ReadFile(path string) ([]byte, *model.AppError)
- func (_m *FileBackend) Reader(path string) (io.ReadCloser, *model.AppError)
- func (_m *FileBackend) RemoveDirectory(path string) *model.AppError
- func (_m *FileBackend) RemoveFile(path string) *model.AppError
- func (_m *FileBackend) TestConnection() *model.AppError
- func (_m *FileBackend) WriteFile(fr io.Reader, path string) (int64, *model.AppError)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileBackend ¶
FileBackend is an autogenerated mock type for the FileBackend type
func (*FileBackend) CopyFile ¶
func (_m *FileBackend) CopyFile(oldPath string, newPath string) *model.AppError
CopyFile provides a mock function with given fields: oldPath, newPath
func (*FileBackend) FileExists ¶
func (_m *FileBackend) FileExists(path string) (bool, *model.AppError)
FileExists provides a mock function with given fields: path
func (*FileBackend) ListDirectory ¶
func (_m *FileBackend) ListDirectory(path string) (*[]string, *model.AppError)
ListDirectory provides a mock function with given fields: path
func (*FileBackend) MoveFile ¶
func (_m *FileBackend) MoveFile(oldPath string, newPath string) *model.AppError
MoveFile provides a mock function with given fields: oldPath, newPath
func (*FileBackend) ReadFile ¶
func (_m *FileBackend) ReadFile(path string) ([]byte, *model.AppError)
ReadFile provides a mock function with given fields: path
func (*FileBackend) Reader ¶
func (_m *FileBackend) Reader(path string) (io.ReadCloser, *model.AppError)
Reader provides a mock function with given fields: path
func (*FileBackend) RemoveDirectory ¶
func (_m *FileBackend) RemoveDirectory(path string) *model.AppError
RemoveDirectory provides a mock function with given fields: path
func (*FileBackend) RemoveFile ¶
func (_m *FileBackend) RemoveFile(path string) *model.AppError
RemoveFile provides a mock function with given fields: path
func (*FileBackend) TestConnection ¶
func (_m *FileBackend) TestConnection() *model.AppError
TestConnection provides a mock function with given fields: