Documentation
¶
Index ¶
- type Driver
- func (_m *Driver) AllDirectories(path string) ([]string, error)
- func (_m *Driver) AllFiles(path string) ([]string, error)
- func (_m *Driver) Copy(oldFile string, newFile string) error
- func (_m *Driver) Delete(file ...string) error
- func (_m *Driver) DeleteDirectory(directory string) error
- func (_m *Driver) Directories(path string) ([]string, error)
- func (_m *Driver) EXPECT() *Driver_Expecter
- func (_m *Driver) Exists(file string) bool
- func (_m *Driver) Files(path string) ([]string, error)
- func (_m *Driver) Get(file string) (string, error)
- func (_m *Driver) GetBytes(file string) ([]byte, error)
- func (_m *Driver) LastModified(file string) (time.Time, error)
- func (_m *Driver) MakeDirectory(directory string) error
- func (_m *Driver) MimeType(file string) (string, error)
- func (_m *Driver) Missing(file string) bool
- func (_m *Driver) Move(oldFile string, newFile string) error
- func (_m *Driver) Path(file string) string
- func (_m *Driver) Put(file string, content string) error
- func (_m *Driver) PutFile(path string, source filesystem.File) (string, error)
- func (_m *Driver) PutFileAs(path string, source filesystem.File, name string) (string, error)
- func (_m *Driver) Size(file string) (int64, error)
- func (_m *Driver) TemporaryUrl(file string, _a1 time.Time) (string, error)
- func (_m *Driver) Url(file string) string
- func (_m *Driver) WithContext(ctx context.Context) filesystem.Driver
- type Driver_AllDirectories_Call
- func (_c *Driver_AllDirectories_Call) Return(_a0 []string, _a1 error) *Driver_AllDirectories_Call
- func (_c *Driver_AllDirectories_Call) Run(run func(path string)) *Driver_AllDirectories_Call
- func (_c *Driver_AllDirectories_Call) RunAndReturn(run func(string) ([]string, error)) *Driver_AllDirectories_Call
- type Driver_AllFiles_Call
- type Driver_Copy_Call
- type Driver_DeleteDirectory_Call
- type Driver_Delete_Call
- type Driver_Directories_Call
- type Driver_Exists_Call
- type Driver_Expecter
- func (_e *Driver_Expecter) AllDirectories(path interface{}) *Driver_AllDirectories_Call
- func (_e *Driver_Expecter) AllFiles(path interface{}) *Driver_AllFiles_Call
- func (_e *Driver_Expecter) Copy(oldFile interface{}, newFile interface{}) *Driver_Copy_Call
- func (_e *Driver_Expecter) Delete(file ...interface{}) *Driver_Delete_Call
- func (_e *Driver_Expecter) DeleteDirectory(directory interface{}) *Driver_DeleteDirectory_Call
- func (_e *Driver_Expecter) Directories(path interface{}) *Driver_Directories_Call
- func (_e *Driver_Expecter) Exists(file interface{}) *Driver_Exists_Call
- func (_e *Driver_Expecter) Files(path interface{}) *Driver_Files_Call
- func (_e *Driver_Expecter) Get(file interface{}) *Driver_Get_Call
- func (_e *Driver_Expecter) GetBytes(file interface{}) *Driver_GetBytes_Call
- func (_e *Driver_Expecter) LastModified(file interface{}) *Driver_LastModified_Call
- func (_e *Driver_Expecter) MakeDirectory(directory interface{}) *Driver_MakeDirectory_Call
- func (_e *Driver_Expecter) MimeType(file interface{}) *Driver_MimeType_Call
- func (_e *Driver_Expecter) Missing(file interface{}) *Driver_Missing_Call
- func (_e *Driver_Expecter) Move(oldFile interface{}, newFile interface{}) *Driver_Move_Call
- func (_e *Driver_Expecter) Path(file interface{}) *Driver_Path_Call
- func (_e *Driver_Expecter) Put(file interface{}, content interface{}) *Driver_Put_Call
- func (_e *Driver_Expecter) PutFile(path interface{}, source interface{}) *Driver_PutFile_Call
- func (_e *Driver_Expecter) PutFileAs(path interface{}, source interface{}, name interface{}) *Driver_PutFileAs_Call
- func (_e *Driver_Expecter) Size(file interface{}) *Driver_Size_Call
- func (_e *Driver_Expecter) TemporaryUrl(file interface{}, _a1 interface{}) *Driver_TemporaryUrl_Call
- func (_e *Driver_Expecter) Url(file interface{}) *Driver_Url_Call
- func (_e *Driver_Expecter) WithContext(ctx interface{}) *Driver_WithContext_Call
- type Driver_Files_Call
- type Driver_GetBytes_Call
- type Driver_Get_Call
- type Driver_LastModified_Call
- type Driver_MakeDirectory_Call
- type Driver_MimeType_Call
- type Driver_Missing_Call
- type Driver_Move_Call
- type Driver_Path_Call
- type Driver_PutFileAs_Call
- func (_c *Driver_PutFileAs_Call) Return(_a0 string, _a1 error) *Driver_PutFileAs_Call
- func (_c *Driver_PutFileAs_Call) Run(run func(path string, source filesystem.File, name string)) *Driver_PutFileAs_Call
- func (_c *Driver_PutFileAs_Call) RunAndReturn(run func(string, filesystem.File, string) (string, error)) *Driver_PutFileAs_Call
- type Driver_PutFile_Call
- func (_c *Driver_PutFile_Call) Return(_a0 string, _a1 error) *Driver_PutFile_Call
- func (_c *Driver_PutFile_Call) Run(run func(path string, source filesystem.File)) *Driver_PutFile_Call
- func (_c *Driver_PutFile_Call) RunAndReturn(run func(string, filesystem.File) (string, error)) *Driver_PutFile_Call
- type Driver_Put_Call
- type Driver_Size_Call
- type Driver_TemporaryUrl_Call
- func (_c *Driver_TemporaryUrl_Call) Return(_a0 string, _a1 error) *Driver_TemporaryUrl_Call
- func (_c *Driver_TemporaryUrl_Call) Run(run func(file string, _a1 time.Time)) *Driver_TemporaryUrl_Call
- func (_c *Driver_TemporaryUrl_Call) RunAndReturn(run func(string, time.Time) (string, error)) *Driver_TemporaryUrl_Call
- type Driver_Url_Call
- type Driver_WithContext_Call
- func (_c *Driver_WithContext_Call) Return(_a0 filesystem.Driver) *Driver_WithContext_Call
- func (_c *Driver_WithContext_Call) Run(run func(ctx context.Context)) *Driver_WithContext_Call
- func (_c *Driver_WithContext_Call) RunAndReturn(run func(context.Context) filesystem.Driver) *Driver_WithContext_Call
- type File
- func (_m *File) Disk(disk string) filesystem.File
- func (_m *File) EXPECT() *File_Expecter
- func (_m *File) Extension() (string, error)
- func (_m *File) File() string
- func (_m *File) GetClientOriginalExtension() string
- func (_m *File) GetClientOriginalName() string
- func (_m *File) HashName(path ...string) string
- func (_m *File) LastModified() (time.Time, error)
- func (_m *File) MimeType() (string, error)
- func (_m *File) Size() (int64, error)
- func (_m *File) Store(path string) (string, error)
- func (_m *File) StoreAs(path string, name string) (string, error)
- type File_Disk_Call
- type File_Expecter
- func (_e *File_Expecter) Disk(disk interface{}) *File_Disk_Call
- func (_e *File_Expecter) Extension() *File_Extension_Call
- func (_e *File_Expecter) File() *File_File_Call
- func (_e *File_Expecter) GetClientOriginalExtension() *File_GetClientOriginalExtension_Call
- func (_e *File_Expecter) GetClientOriginalName() *File_GetClientOriginalName_Call
- func (_e *File_Expecter) HashName(path ...interface{}) *File_HashName_Call
- func (_e *File_Expecter) LastModified() *File_LastModified_Call
- func (_e *File_Expecter) MimeType() *File_MimeType_Call
- func (_e *File_Expecter) Size() *File_Size_Call
- func (_e *File_Expecter) Store(path interface{}) *File_Store_Call
- func (_e *File_Expecter) StoreAs(path interface{}, name interface{}) *File_StoreAs_Call
- type File_Extension_Call
- type File_File_Call
- type File_GetClientOriginalExtension_Call
- func (_c *File_GetClientOriginalExtension_Call) Return(_a0 string) *File_GetClientOriginalExtension_Call
- func (_c *File_GetClientOriginalExtension_Call) Run(run func()) *File_GetClientOriginalExtension_Call
- func (_c *File_GetClientOriginalExtension_Call) RunAndReturn(run func() string) *File_GetClientOriginalExtension_Call
- type File_GetClientOriginalName_Call
- type File_HashName_Call
- type File_LastModified_Call
- type File_MimeType_Call
- type File_Size_Call
- type File_StoreAs_Call
- type File_Store_Call
- type Storage
- func (_m *Storage) AllDirectories(path string) ([]string, error)
- func (_m *Storage) AllFiles(path string) ([]string, error)
- func (_m *Storage) Copy(oldFile string, newFile string) error
- func (_m *Storage) Delete(file ...string) error
- func (_m *Storage) DeleteDirectory(directory string) error
- func (_m *Storage) Directories(path string) ([]string, error)
- func (_m *Storage) Disk(disk string) filesystem.Driver
- func (_m *Storage) EXPECT() *Storage_Expecter
- func (_m *Storage) Exists(file string) bool
- func (_m *Storage) Files(path string) ([]string, error)
- func (_m *Storage) Get(file string) (string, error)
- func (_m *Storage) GetBytes(file string) ([]byte, error)
- func (_m *Storage) LastModified(file string) (time.Time, error)
- func (_m *Storage) MakeDirectory(directory string) error
- func (_m *Storage) MimeType(file string) (string, error)
- func (_m *Storage) Missing(file string) bool
- func (_m *Storage) Move(oldFile string, newFile string) error
- func (_m *Storage) Path(file string) string
- func (_m *Storage) Put(file string, content string) error
- func (_m *Storage) PutFile(path string, source filesystem.File) (string, error)
- func (_m *Storage) PutFileAs(path string, source filesystem.File, name string) (string, error)
- func (_m *Storage) Size(file string) (int64, error)
- func (_m *Storage) TemporaryUrl(file string, _a1 time.Time) (string, error)
- func (_m *Storage) Url(file string) string
- func (_m *Storage) WithContext(ctx context.Context) filesystem.Driver
- type Storage_AllDirectories_Call
- func (_c *Storage_AllDirectories_Call) Return(_a0 []string, _a1 error) *Storage_AllDirectories_Call
- func (_c *Storage_AllDirectories_Call) Run(run func(path string)) *Storage_AllDirectories_Call
- func (_c *Storage_AllDirectories_Call) RunAndReturn(run func(string) ([]string, error)) *Storage_AllDirectories_Call
- type Storage_AllFiles_Call
- type Storage_Copy_Call
- type Storage_DeleteDirectory_Call
- type Storage_Delete_Call
- type Storage_Directories_Call
- type Storage_Disk_Call
- type Storage_Exists_Call
- type Storage_Expecter
- func (_e *Storage_Expecter) AllDirectories(path interface{}) *Storage_AllDirectories_Call
- func (_e *Storage_Expecter) AllFiles(path interface{}) *Storage_AllFiles_Call
- func (_e *Storage_Expecter) Copy(oldFile interface{}, newFile interface{}) *Storage_Copy_Call
- func (_e *Storage_Expecter) Delete(file ...interface{}) *Storage_Delete_Call
- func (_e *Storage_Expecter) DeleteDirectory(directory interface{}) *Storage_DeleteDirectory_Call
- func (_e *Storage_Expecter) Directories(path interface{}) *Storage_Directories_Call
- func (_e *Storage_Expecter) Disk(disk interface{}) *Storage_Disk_Call
- func (_e *Storage_Expecter) Exists(file interface{}) *Storage_Exists_Call
- func (_e *Storage_Expecter) Files(path interface{}) *Storage_Files_Call
- func (_e *Storage_Expecter) Get(file interface{}) *Storage_Get_Call
- func (_e *Storage_Expecter) GetBytes(file interface{}) *Storage_GetBytes_Call
- func (_e *Storage_Expecter) LastModified(file interface{}) *Storage_LastModified_Call
- func (_e *Storage_Expecter) MakeDirectory(directory interface{}) *Storage_MakeDirectory_Call
- func (_e *Storage_Expecter) MimeType(file interface{}) *Storage_MimeType_Call
- func (_e *Storage_Expecter) Missing(file interface{}) *Storage_Missing_Call
- func (_e *Storage_Expecter) Move(oldFile interface{}, newFile interface{}) *Storage_Move_Call
- func (_e *Storage_Expecter) Path(file interface{}) *Storage_Path_Call
- func (_e *Storage_Expecter) Put(file interface{}, content interface{}) *Storage_Put_Call
- func (_e *Storage_Expecter) PutFile(path interface{}, source interface{}) *Storage_PutFile_Call
- func (_e *Storage_Expecter) PutFileAs(path interface{}, source interface{}, name interface{}) *Storage_PutFileAs_Call
- func (_e *Storage_Expecter) Size(file interface{}) *Storage_Size_Call
- func (_e *Storage_Expecter) TemporaryUrl(file interface{}, _a1 interface{}) *Storage_TemporaryUrl_Call
- func (_e *Storage_Expecter) Url(file interface{}) *Storage_Url_Call
- func (_e *Storage_Expecter) WithContext(ctx interface{}) *Storage_WithContext_Call
- type Storage_Files_Call
- type Storage_GetBytes_Call
- type Storage_Get_Call
- type Storage_LastModified_Call
- func (_c *Storage_LastModified_Call) Return(_a0 time.Time, _a1 error) *Storage_LastModified_Call
- func (_c *Storage_LastModified_Call) Run(run func(file string)) *Storage_LastModified_Call
- func (_c *Storage_LastModified_Call) RunAndReturn(run func(string) (time.Time, error)) *Storage_LastModified_Call
- type Storage_MakeDirectory_Call
- type Storage_MimeType_Call
- type Storage_Missing_Call
- type Storage_Move_Call
- type Storage_Path_Call
- type Storage_PutFileAs_Call
- func (_c *Storage_PutFileAs_Call) Return(_a0 string, _a1 error) *Storage_PutFileAs_Call
- func (_c *Storage_PutFileAs_Call) Run(run func(path string, source filesystem.File, name string)) *Storage_PutFileAs_Call
- func (_c *Storage_PutFileAs_Call) RunAndReturn(run func(string, filesystem.File, string) (string, error)) *Storage_PutFileAs_Call
- type Storage_PutFile_Call
- func (_c *Storage_PutFile_Call) Return(_a0 string, _a1 error) *Storage_PutFile_Call
- func (_c *Storage_PutFile_Call) Run(run func(path string, source filesystem.File)) *Storage_PutFile_Call
- func (_c *Storage_PutFile_Call) RunAndReturn(run func(string, filesystem.File) (string, error)) *Storage_PutFile_Call
- type Storage_Put_Call
- type Storage_Size_Call
- type Storage_TemporaryUrl_Call
- func (_c *Storage_TemporaryUrl_Call) Return(_a0 string, _a1 error) *Storage_TemporaryUrl_Call
- func (_c *Storage_TemporaryUrl_Call) Run(run func(file string, _a1 time.Time)) *Storage_TemporaryUrl_Call
- func (_c *Storage_TemporaryUrl_Call) RunAndReturn(run func(string, time.Time) (string, error)) *Storage_TemporaryUrl_Call
- type Storage_Url_Call
- type Storage_WithContext_Call
- func (_c *Storage_WithContext_Call) Return(_a0 filesystem.Driver) *Storage_WithContext_Call
- func (_c *Storage_WithContext_Call) Run(run func(ctx context.Context)) *Storage_WithContext_Call
- func (_c *Storage_WithContext_Call) RunAndReturn(run func(context.Context) filesystem.Driver) *Storage_WithContext_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
Driver is an autogenerated mock type for the Driver type
func NewDriver ¶
NewDriver creates a new instance of Driver. 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 (*Driver) AllDirectories ¶
AllDirectories provides a mock function with given fields: path
func (*Driver) DeleteDirectory ¶
DeleteDirectory provides a mock function with given fields: directory
func (*Driver) Directories ¶
Directories provides a mock function with given fields: path
func (*Driver) EXPECT ¶
func (_m *Driver) EXPECT() *Driver_Expecter
func (*Driver) LastModified ¶
LastModified provides a mock function with given fields: file
func (*Driver) MakeDirectory ¶
MakeDirectory provides a mock function with given fields: directory
func (*Driver) TemporaryUrl ¶
TemporaryUrl provides a mock function with given fields: file, _a1
func (*Driver) WithContext ¶
func (_m *Driver) WithContext(ctx context.Context) filesystem.Driver
WithContext provides a mock function with given fields: ctx
type Driver_AllDirectories_Call ¶
Driver_AllDirectories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllDirectories'
func (*Driver_AllDirectories_Call) Return ¶
func (_c *Driver_AllDirectories_Call) Return(_a0 []string, _a1 error) *Driver_AllDirectories_Call
func (*Driver_AllDirectories_Call) Run ¶
func (_c *Driver_AllDirectories_Call) Run(run func(path string)) *Driver_AllDirectories_Call
func (*Driver_AllDirectories_Call) RunAndReturn ¶
func (_c *Driver_AllDirectories_Call) RunAndReturn(run func(string) ([]string, error)) *Driver_AllDirectories_Call
type Driver_AllFiles_Call ¶
Driver_AllFiles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllFiles'
func (*Driver_AllFiles_Call) Return ¶
func (_c *Driver_AllFiles_Call) Return(_a0 []string, _a1 error) *Driver_AllFiles_Call
func (*Driver_AllFiles_Call) Run ¶
func (_c *Driver_AllFiles_Call) Run(run func(path string)) *Driver_AllFiles_Call
func (*Driver_AllFiles_Call) RunAndReturn ¶
func (_c *Driver_AllFiles_Call) RunAndReturn(run func(string) ([]string, error)) *Driver_AllFiles_Call
type Driver_Copy_Call ¶
Driver_Copy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Copy'
func (*Driver_Copy_Call) Return ¶
func (_c *Driver_Copy_Call) Return(_a0 error) *Driver_Copy_Call
func (*Driver_Copy_Call) Run ¶
func (_c *Driver_Copy_Call) Run(run func(oldFile string, newFile string)) *Driver_Copy_Call
func (*Driver_Copy_Call) RunAndReturn ¶
func (_c *Driver_Copy_Call) RunAndReturn(run func(string, string) error) *Driver_Copy_Call
type Driver_DeleteDirectory_Call ¶
Driver_DeleteDirectory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteDirectory'
func (*Driver_DeleteDirectory_Call) Return ¶
func (_c *Driver_DeleteDirectory_Call) Return(_a0 error) *Driver_DeleteDirectory_Call
func (*Driver_DeleteDirectory_Call) Run ¶
func (_c *Driver_DeleteDirectory_Call) Run(run func(directory string)) *Driver_DeleteDirectory_Call
func (*Driver_DeleteDirectory_Call) RunAndReturn ¶
func (_c *Driver_DeleteDirectory_Call) RunAndReturn(run func(string) error) *Driver_DeleteDirectory_Call
type Driver_Delete_Call ¶
Driver_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Driver_Delete_Call) Return ¶
func (_c *Driver_Delete_Call) Return(_a0 error) *Driver_Delete_Call
func (*Driver_Delete_Call) Run ¶
func (_c *Driver_Delete_Call) Run(run func(file ...string)) *Driver_Delete_Call
func (*Driver_Delete_Call) RunAndReturn ¶
func (_c *Driver_Delete_Call) RunAndReturn(run func(...string) error) *Driver_Delete_Call
type Driver_Directories_Call ¶
Driver_Directories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Directories'
func (*Driver_Directories_Call) Return ¶
func (_c *Driver_Directories_Call) Return(_a0 []string, _a1 error) *Driver_Directories_Call
func (*Driver_Directories_Call) Run ¶
func (_c *Driver_Directories_Call) Run(run func(path string)) *Driver_Directories_Call
func (*Driver_Directories_Call) RunAndReturn ¶
func (_c *Driver_Directories_Call) RunAndReturn(run func(string) ([]string, error)) *Driver_Directories_Call
type Driver_Exists_Call ¶
Driver_Exists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exists'
func (*Driver_Exists_Call) Return ¶
func (_c *Driver_Exists_Call) Return(_a0 bool) *Driver_Exists_Call
func (*Driver_Exists_Call) Run ¶
func (_c *Driver_Exists_Call) Run(run func(file string)) *Driver_Exists_Call
func (*Driver_Exists_Call) RunAndReturn ¶
func (_c *Driver_Exists_Call) RunAndReturn(run func(string) bool) *Driver_Exists_Call
type Driver_Expecter ¶
type Driver_Expecter struct {
// contains filtered or unexported fields
}
func (*Driver_Expecter) AllDirectories ¶
func (_e *Driver_Expecter) AllDirectories(path interface{}) *Driver_AllDirectories_Call
AllDirectories is a helper method to define mock.On call
- path string
func (*Driver_Expecter) AllFiles ¶
func (_e *Driver_Expecter) AllFiles(path interface{}) *Driver_AllFiles_Call
AllFiles is a helper method to define mock.On call
- path string
func (*Driver_Expecter) Copy ¶
func (_e *Driver_Expecter) Copy(oldFile interface{}, newFile interface{}) *Driver_Copy_Call
Copy is a helper method to define mock.On call
- oldFile string
- newFile string
func (*Driver_Expecter) Delete ¶
func (_e *Driver_Expecter) Delete(file ...interface{}) *Driver_Delete_Call
Delete is a helper method to define mock.On call
- file ...string
func (*Driver_Expecter) DeleteDirectory ¶
func (_e *Driver_Expecter) DeleteDirectory(directory interface{}) *Driver_DeleteDirectory_Call
DeleteDirectory is a helper method to define mock.On call
- directory string
func (*Driver_Expecter) Directories ¶
func (_e *Driver_Expecter) Directories(path interface{}) *Driver_Directories_Call
Directories is a helper method to define mock.On call
- path string
func (*Driver_Expecter) Exists ¶
func (_e *Driver_Expecter) Exists(file interface{}) *Driver_Exists_Call
Exists is a helper method to define mock.On call
- file string
func (*Driver_Expecter) Files ¶
func (_e *Driver_Expecter) Files(path interface{}) *Driver_Files_Call
Files is a helper method to define mock.On call
- path string
func (*Driver_Expecter) Get ¶
func (_e *Driver_Expecter) Get(file interface{}) *Driver_Get_Call
Get is a helper method to define mock.On call
- file string
func (*Driver_Expecter) GetBytes ¶
func (_e *Driver_Expecter) GetBytes(file interface{}) *Driver_GetBytes_Call
GetBytes is a helper method to define mock.On call
- file string
func (*Driver_Expecter) LastModified ¶
func (_e *Driver_Expecter) LastModified(file interface{}) *Driver_LastModified_Call
LastModified is a helper method to define mock.On call
- file string
func (*Driver_Expecter) MakeDirectory ¶
func (_e *Driver_Expecter) MakeDirectory(directory interface{}) *Driver_MakeDirectory_Call
MakeDirectory is a helper method to define mock.On call
- directory string
func (*Driver_Expecter) MimeType ¶
func (_e *Driver_Expecter) MimeType(file interface{}) *Driver_MimeType_Call
MimeType is a helper method to define mock.On call
- file string
func (*Driver_Expecter) Missing ¶
func (_e *Driver_Expecter) Missing(file interface{}) *Driver_Missing_Call
Missing is a helper method to define mock.On call
- file string
func (*Driver_Expecter) Move ¶
func (_e *Driver_Expecter) Move(oldFile interface{}, newFile interface{}) *Driver_Move_Call
Move is a helper method to define mock.On call
- oldFile string
- newFile string
func (*Driver_Expecter) Path ¶
func (_e *Driver_Expecter) Path(file interface{}) *Driver_Path_Call
Path is a helper method to define mock.On call
- file string
func (*Driver_Expecter) Put ¶
func (_e *Driver_Expecter) Put(file interface{}, content interface{}) *Driver_Put_Call
Put is a helper method to define mock.On call
- file string
- content string
func (*Driver_Expecter) PutFile ¶
func (_e *Driver_Expecter) PutFile(path interface{}, source interface{}) *Driver_PutFile_Call
PutFile is a helper method to define mock.On call
- path string
- source filesystem.File
func (*Driver_Expecter) PutFileAs ¶
func (_e *Driver_Expecter) PutFileAs(path interface{}, source interface{}, name interface{}) *Driver_PutFileAs_Call
PutFileAs is a helper method to define mock.On call
- path string
- source filesystem.File
- name string
func (*Driver_Expecter) Size ¶
func (_e *Driver_Expecter) Size(file interface{}) *Driver_Size_Call
Size is a helper method to define mock.On call
- file string
func (*Driver_Expecter) TemporaryUrl ¶
func (_e *Driver_Expecter) TemporaryUrl(file interface{}, _a1 interface{}) *Driver_TemporaryUrl_Call
TemporaryUrl is a helper method to define mock.On call
- file string
- _a1 time.Time
func (*Driver_Expecter) Url ¶
func (_e *Driver_Expecter) Url(file interface{}) *Driver_Url_Call
Url is a helper method to define mock.On call
- file string
func (*Driver_Expecter) WithContext ¶
func (_e *Driver_Expecter) WithContext(ctx interface{}) *Driver_WithContext_Call
WithContext is a helper method to define mock.On call
- ctx context.Context
type Driver_Files_Call ¶
Driver_Files_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Files'
func (*Driver_Files_Call) Return ¶
func (_c *Driver_Files_Call) Return(_a0 []string, _a1 error) *Driver_Files_Call
func (*Driver_Files_Call) Run ¶
func (_c *Driver_Files_Call) Run(run func(path string)) *Driver_Files_Call
func (*Driver_Files_Call) RunAndReturn ¶
func (_c *Driver_Files_Call) RunAndReturn(run func(string) ([]string, error)) *Driver_Files_Call
type Driver_GetBytes_Call ¶
Driver_GetBytes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBytes'
func (*Driver_GetBytes_Call) Return ¶
func (_c *Driver_GetBytes_Call) Return(_a0 []byte, _a1 error) *Driver_GetBytes_Call
func (*Driver_GetBytes_Call) Run ¶
func (_c *Driver_GetBytes_Call) Run(run func(file string)) *Driver_GetBytes_Call
func (*Driver_GetBytes_Call) RunAndReturn ¶
func (_c *Driver_GetBytes_Call) RunAndReturn(run func(string) ([]byte, error)) *Driver_GetBytes_Call
type Driver_Get_Call ¶
Driver_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Driver_Get_Call) Return ¶
func (_c *Driver_Get_Call) Return(_a0 string, _a1 error) *Driver_Get_Call
func (*Driver_Get_Call) Run ¶
func (_c *Driver_Get_Call) Run(run func(file string)) *Driver_Get_Call
func (*Driver_Get_Call) RunAndReturn ¶
func (_c *Driver_Get_Call) RunAndReturn(run func(string) (string, error)) *Driver_Get_Call
type Driver_LastModified_Call ¶
Driver_LastModified_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LastModified'
func (*Driver_LastModified_Call) Return ¶
func (_c *Driver_LastModified_Call) Return(_a0 time.Time, _a1 error) *Driver_LastModified_Call
func (*Driver_LastModified_Call) Run ¶
func (_c *Driver_LastModified_Call) Run(run func(file string)) *Driver_LastModified_Call
func (*Driver_LastModified_Call) RunAndReturn ¶
func (_c *Driver_LastModified_Call) RunAndReturn(run func(string) (time.Time, error)) *Driver_LastModified_Call
type Driver_MakeDirectory_Call ¶
Driver_MakeDirectory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeDirectory'
func (*Driver_MakeDirectory_Call) Return ¶
func (_c *Driver_MakeDirectory_Call) Return(_a0 error) *Driver_MakeDirectory_Call
func (*Driver_MakeDirectory_Call) Run ¶
func (_c *Driver_MakeDirectory_Call) Run(run func(directory string)) *Driver_MakeDirectory_Call
func (*Driver_MakeDirectory_Call) RunAndReturn ¶
func (_c *Driver_MakeDirectory_Call) RunAndReturn(run func(string) error) *Driver_MakeDirectory_Call
type Driver_MimeType_Call ¶
Driver_MimeType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MimeType'
func (*Driver_MimeType_Call) Return ¶
func (_c *Driver_MimeType_Call) Return(_a0 string, _a1 error) *Driver_MimeType_Call
func (*Driver_MimeType_Call) Run ¶
func (_c *Driver_MimeType_Call) Run(run func(file string)) *Driver_MimeType_Call
func (*Driver_MimeType_Call) RunAndReturn ¶
func (_c *Driver_MimeType_Call) RunAndReturn(run func(string) (string, error)) *Driver_MimeType_Call
type Driver_Missing_Call ¶
Driver_Missing_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Missing'
func (*Driver_Missing_Call) Return ¶
func (_c *Driver_Missing_Call) Return(_a0 bool) *Driver_Missing_Call
func (*Driver_Missing_Call) Run ¶
func (_c *Driver_Missing_Call) Run(run func(file string)) *Driver_Missing_Call
func (*Driver_Missing_Call) RunAndReturn ¶
func (_c *Driver_Missing_Call) RunAndReturn(run func(string) bool) *Driver_Missing_Call
type Driver_Move_Call ¶
Driver_Move_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Move'
func (*Driver_Move_Call) Return ¶
func (_c *Driver_Move_Call) Return(_a0 error) *Driver_Move_Call
func (*Driver_Move_Call) Run ¶
func (_c *Driver_Move_Call) Run(run func(oldFile string, newFile string)) *Driver_Move_Call
func (*Driver_Move_Call) RunAndReturn ¶
func (_c *Driver_Move_Call) RunAndReturn(run func(string, string) error) *Driver_Move_Call
type Driver_Path_Call ¶
Driver_Path_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Path'
func (*Driver_Path_Call) Return ¶
func (_c *Driver_Path_Call) Return(_a0 string) *Driver_Path_Call
func (*Driver_Path_Call) Run ¶
func (_c *Driver_Path_Call) Run(run func(file string)) *Driver_Path_Call
func (*Driver_Path_Call) RunAndReturn ¶
func (_c *Driver_Path_Call) RunAndReturn(run func(string) string) *Driver_Path_Call
type Driver_PutFileAs_Call ¶
Driver_PutFileAs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutFileAs'
func (*Driver_PutFileAs_Call) Return ¶
func (_c *Driver_PutFileAs_Call) Return(_a0 string, _a1 error) *Driver_PutFileAs_Call
func (*Driver_PutFileAs_Call) Run ¶
func (_c *Driver_PutFileAs_Call) Run(run func(path string, source filesystem.File, name string)) *Driver_PutFileAs_Call
func (*Driver_PutFileAs_Call) RunAndReturn ¶
func (_c *Driver_PutFileAs_Call) RunAndReturn(run func(string, filesystem.File, string) (string, error)) *Driver_PutFileAs_Call
type Driver_PutFile_Call ¶
Driver_PutFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutFile'
func (*Driver_PutFile_Call) Return ¶
func (_c *Driver_PutFile_Call) Return(_a0 string, _a1 error) *Driver_PutFile_Call
func (*Driver_PutFile_Call) Run ¶
func (_c *Driver_PutFile_Call) Run(run func(path string, source filesystem.File)) *Driver_PutFile_Call
func (*Driver_PutFile_Call) RunAndReturn ¶
func (_c *Driver_PutFile_Call) RunAndReturn(run func(string, filesystem.File) (string, error)) *Driver_PutFile_Call
type Driver_Put_Call ¶
Driver_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put'
func (*Driver_Put_Call) Return ¶
func (_c *Driver_Put_Call) Return(_a0 error) *Driver_Put_Call
func (*Driver_Put_Call) Run ¶
func (_c *Driver_Put_Call) Run(run func(file string, content string)) *Driver_Put_Call
func (*Driver_Put_Call) RunAndReturn ¶
func (_c *Driver_Put_Call) RunAndReturn(run func(string, string) error) *Driver_Put_Call
type Driver_Size_Call ¶
Driver_Size_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Size'
func (*Driver_Size_Call) Return ¶
func (_c *Driver_Size_Call) Return(_a0 int64, _a1 error) *Driver_Size_Call
func (*Driver_Size_Call) Run ¶
func (_c *Driver_Size_Call) Run(run func(file string)) *Driver_Size_Call
func (*Driver_Size_Call) RunAndReturn ¶
func (_c *Driver_Size_Call) RunAndReturn(run func(string) (int64, error)) *Driver_Size_Call
type Driver_TemporaryUrl_Call ¶
Driver_TemporaryUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TemporaryUrl'
func (*Driver_TemporaryUrl_Call) Return ¶
func (_c *Driver_TemporaryUrl_Call) Return(_a0 string, _a1 error) *Driver_TemporaryUrl_Call
func (*Driver_TemporaryUrl_Call) Run ¶
func (_c *Driver_TemporaryUrl_Call) Run(run func(file string, _a1 time.Time)) *Driver_TemporaryUrl_Call
func (*Driver_TemporaryUrl_Call) RunAndReturn ¶
func (_c *Driver_TemporaryUrl_Call) RunAndReturn(run func(string, time.Time) (string, error)) *Driver_TemporaryUrl_Call
type Driver_Url_Call ¶
Driver_Url_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Url'
func (*Driver_Url_Call) Return ¶
func (_c *Driver_Url_Call) Return(_a0 string) *Driver_Url_Call
func (*Driver_Url_Call) Run ¶
func (_c *Driver_Url_Call) Run(run func(file string)) *Driver_Url_Call
func (*Driver_Url_Call) RunAndReturn ¶
func (_c *Driver_Url_Call) RunAndReturn(run func(string) string) *Driver_Url_Call
type Driver_WithContext_Call ¶
Driver_WithContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithContext'
func (*Driver_WithContext_Call) Return ¶
func (_c *Driver_WithContext_Call) Return(_a0 filesystem.Driver) *Driver_WithContext_Call
func (*Driver_WithContext_Call) Run ¶
func (_c *Driver_WithContext_Call) Run(run func(ctx context.Context)) *Driver_WithContext_Call
func (*Driver_WithContext_Call) RunAndReturn ¶
func (_c *Driver_WithContext_Call) RunAndReturn(run func(context.Context) filesystem.Driver) *Driver_WithContext_Call
type File ¶
File is an autogenerated mock type for the File type
func NewFile ¶
NewFile creates a new instance of File. 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 (*File) Disk ¶
func (_m *File) Disk(disk string) filesystem.File
Disk provides a mock function with given fields: disk
func (*File) EXPECT ¶
func (_m *File) EXPECT() *File_Expecter
func (*File) GetClientOriginalExtension ¶
GetClientOriginalExtension provides a mock function with no fields
func (*File) GetClientOriginalName ¶
GetClientOriginalName provides a mock function with no fields
func (*File) LastModified ¶
LastModified provides a mock function with no fields
type File_Disk_Call ¶
File_Disk_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Disk'
func (*File_Disk_Call) Return ¶
func (_c *File_Disk_Call) Return(_a0 filesystem.File) *File_Disk_Call
func (*File_Disk_Call) Run ¶
func (_c *File_Disk_Call) Run(run func(disk string)) *File_Disk_Call
func (*File_Disk_Call) RunAndReturn ¶
func (_c *File_Disk_Call) RunAndReturn(run func(string) filesystem.File) *File_Disk_Call
type File_Expecter ¶
type File_Expecter struct {
// contains filtered or unexported fields
}
func (*File_Expecter) Disk ¶
func (_e *File_Expecter) Disk(disk interface{}) *File_Disk_Call
Disk is a helper method to define mock.On call
- disk string
func (*File_Expecter) Extension ¶
func (_e *File_Expecter) Extension() *File_Extension_Call
Extension is a helper method to define mock.On call
func (*File_Expecter) File ¶
func (_e *File_Expecter) File() *File_File_Call
File is a helper method to define mock.On call
func (*File_Expecter) GetClientOriginalExtension ¶
func (_e *File_Expecter) GetClientOriginalExtension() *File_GetClientOriginalExtension_Call
GetClientOriginalExtension is a helper method to define mock.On call
func (*File_Expecter) GetClientOriginalName ¶
func (_e *File_Expecter) GetClientOriginalName() *File_GetClientOriginalName_Call
GetClientOriginalName is a helper method to define mock.On call
func (*File_Expecter) HashName ¶
func (_e *File_Expecter) HashName(path ...interface{}) *File_HashName_Call
HashName is a helper method to define mock.On call
- path ...string
func (*File_Expecter) LastModified ¶
func (_e *File_Expecter) LastModified() *File_LastModified_Call
LastModified is a helper method to define mock.On call
func (*File_Expecter) MimeType ¶
func (_e *File_Expecter) MimeType() *File_MimeType_Call
MimeType is a helper method to define mock.On call
func (*File_Expecter) Size ¶
func (_e *File_Expecter) Size() *File_Size_Call
Size is a helper method to define mock.On call
func (*File_Expecter) Store ¶
func (_e *File_Expecter) Store(path interface{}) *File_Store_Call
Store is a helper method to define mock.On call
- path string
func (*File_Expecter) StoreAs ¶
func (_e *File_Expecter) StoreAs(path interface{}, name interface{}) *File_StoreAs_Call
StoreAs is a helper method to define mock.On call
- path string
- name string
type File_Extension_Call ¶
File_Extension_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Extension'
func (*File_Extension_Call) Return ¶
func (_c *File_Extension_Call) Return(_a0 string, _a1 error) *File_Extension_Call
func (*File_Extension_Call) Run ¶
func (_c *File_Extension_Call) Run(run func()) *File_Extension_Call
func (*File_Extension_Call) RunAndReturn ¶
func (_c *File_Extension_Call) RunAndReturn(run func() (string, error)) *File_Extension_Call
type File_File_Call ¶
File_File_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'File'
func (*File_File_Call) Return ¶
func (_c *File_File_Call) Return(_a0 string) *File_File_Call
func (*File_File_Call) Run ¶
func (_c *File_File_Call) Run(run func()) *File_File_Call
func (*File_File_Call) RunAndReturn ¶
func (_c *File_File_Call) RunAndReturn(run func() string) *File_File_Call
type File_GetClientOriginalExtension_Call ¶
File_GetClientOriginalExtension_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClientOriginalExtension'
func (*File_GetClientOriginalExtension_Call) Return ¶
func (_c *File_GetClientOriginalExtension_Call) Return(_a0 string) *File_GetClientOriginalExtension_Call
func (*File_GetClientOriginalExtension_Call) Run ¶
func (_c *File_GetClientOriginalExtension_Call) Run(run func()) *File_GetClientOriginalExtension_Call
func (*File_GetClientOriginalExtension_Call) RunAndReturn ¶
func (_c *File_GetClientOriginalExtension_Call) RunAndReturn(run func() string) *File_GetClientOriginalExtension_Call
type File_GetClientOriginalName_Call ¶
File_GetClientOriginalName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClientOriginalName'
func (*File_GetClientOriginalName_Call) Return ¶
func (_c *File_GetClientOriginalName_Call) Return(_a0 string) *File_GetClientOriginalName_Call
func (*File_GetClientOriginalName_Call) Run ¶
func (_c *File_GetClientOriginalName_Call) Run(run func()) *File_GetClientOriginalName_Call
func (*File_GetClientOriginalName_Call) RunAndReturn ¶
func (_c *File_GetClientOriginalName_Call) RunAndReturn(run func() string) *File_GetClientOriginalName_Call
type File_HashName_Call ¶
File_HashName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HashName'
func (*File_HashName_Call) Return ¶
func (_c *File_HashName_Call) Return(_a0 string) *File_HashName_Call
func (*File_HashName_Call) Run ¶
func (_c *File_HashName_Call) Run(run func(path ...string)) *File_HashName_Call
func (*File_HashName_Call) RunAndReturn ¶
func (_c *File_HashName_Call) RunAndReturn(run func(...string) string) *File_HashName_Call
type File_LastModified_Call ¶
File_LastModified_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LastModified'
func (*File_LastModified_Call) Return ¶
func (_c *File_LastModified_Call) Return(_a0 time.Time, _a1 error) *File_LastModified_Call
func (*File_LastModified_Call) Run ¶
func (_c *File_LastModified_Call) Run(run func()) *File_LastModified_Call
func (*File_LastModified_Call) RunAndReturn ¶
func (_c *File_LastModified_Call) RunAndReturn(run func() (time.Time, error)) *File_LastModified_Call
type File_MimeType_Call ¶
File_MimeType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MimeType'
func (*File_MimeType_Call) Return ¶
func (_c *File_MimeType_Call) Return(_a0 string, _a1 error) *File_MimeType_Call
func (*File_MimeType_Call) Run ¶
func (_c *File_MimeType_Call) Run(run func()) *File_MimeType_Call
func (*File_MimeType_Call) RunAndReturn ¶
func (_c *File_MimeType_Call) RunAndReturn(run func() (string, error)) *File_MimeType_Call
type File_Size_Call ¶
File_Size_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Size'
func (*File_Size_Call) Return ¶
func (_c *File_Size_Call) Return(_a0 int64, _a1 error) *File_Size_Call
func (*File_Size_Call) Run ¶
func (_c *File_Size_Call) Run(run func()) *File_Size_Call
func (*File_Size_Call) RunAndReturn ¶
func (_c *File_Size_Call) RunAndReturn(run func() (int64, error)) *File_Size_Call
type File_StoreAs_Call ¶
File_StoreAs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreAs'
func (*File_StoreAs_Call) Return ¶
func (_c *File_StoreAs_Call) Return(_a0 string, _a1 error) *File_StoreAs_Call
func (*File_StoreAs_Call) Run ¶
func (_c *File_StoreAs_Call) Run(run func(path string, name string)) *File_StoreAs_Call
func (*File_StoreAs_Call) RunAndReturn ¶
func (_c *File_StoreAs_Call) RunAndReturn(run func(string, string) (string, error)) *File_StoreAs_Call
type File_Store_Call ¶
File_Store_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Store'
func (*File_Store_Call) Return ¶
func (_c *File_Store_Call) Return(_a0 string, _a1 error) *File_Store_Call
func (*File_Store_Call) Run ¶
func (_c *File_Store_Call) Run(run func(path string)) *File_Store_Call
func (*File_Store_Call) RunAndReturn ¶
func (_c *File_Store_Call) RunAndReturn(run func(string) (string, error)) *File_Store_Call
type Storage ¶
Storage is an autogenerated mock type for the Storage type
func NewStorage ¶
NewStorage creates a new instance of Storage. 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 (*Storage) AllDirectories ¶
AllDirectories provides a mock function with given fields: path
func (*Storage) DeleteDirectory ¶
DeleteDirectory provides a mock function with given fields: directory
func (*Storage) Directories ¶
Directories provides a mock function with given fields: path
func (*Storage) Disk ¶
func (_m *Storage) Disk(disk string) filesystem.Driver
Disk provides a mock function with given fields: disk
func (*Storage) EXPECT ¶
func (_m *Storage) EXPECT() *Storage_Expecter
func (*Storage) LastModified ¶
LastModified provides a mock function with given fields: file
func (*Storage) MakeDirectory ¶
MakeDirectory provides a mock function with given fields: directory
func (*Storage) PutFileAs ¶
PutFileAs provides a mock function with given fields: path, source, name
func (*Storage) TemporaryUrl ¶
TemporaryUrl provides a mock function with given fields: file, _a1
func (*Storage) WithContext ¶
func (_m *Storage) WithContext(ctx context.Context) filesystem.Driver
WithContext provides a mock function with given fields: ctx
type Storage_AllDirectories_Call ¶
Storage_AllDirectories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllDirectories'
func (*Storage_AllDirectories_Call) Return ¶
func (_c *Storage_AllDirectories_Call) Return(_a0 []string, _a1 error) *Storage_AllDirectories_Call
func (*Storage_AllDirectories_Call) Run ¶
func (_c *Storage_AllDirectories_Call) Run(run func(path string)) *Storage_AllDirectories_Call
func (*Storage_AllDirectories_Call) RunAndReturn ¶
func (_c *Storage_AllDirectories_Call) RunAndReturn(run func(string) ([]string, error)) *Storage_AllDirectories_Call
type Storage_AllFiles_Call ¶
Storage_AllFiles_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllFiles'
func (*Storage_AllFiles_Call) Return ¶
func (_c *Storage_AllFiles_Call) Return(_a0 []string, _a1 error) *Storage_AllFiles_Call
func (*Storage_AllFiles_Call) Run ¶
func (_c *Storage_AllFiles_Call) Run(run func(path string)) *Storage_AllFiles_Call
func (*Storage_AllFiles_Call) RunAndReturn ¶
func (_c *Storage_AllFiles_Call) RunAndReturn(run func(string) ([]string, error)) *Storage_AllFiles_Call
type Storage_Copy_Call ¶
Storage_Copy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Copy'
func (*Storage_Copy_Call) Return ¶
func (_c *Storage_Copy_Call) Return(_a0 error) *Storage_Copy_Call
func (*Storage_Copy_Call) Run ¶
func (_c *Storage_Copy_Call) Run(run func(oldFile string, newFile string)) *Storage_Copy_Call
func (*Storage_Copy_Call) RunAndReturn ¶
func (_c *Storage_Copy_Call) RunAndReturn(run func(string, string) error) *Storage_Copy_Call
type Storage_DeleteDirectory_Call ¶
Storage_DeleteDirectory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteDirectory'
func (*Storage_DeleteDirectory_Call) Return ¶
func (_c *Storage_DeleteDirectory_Call) Return(_a0 error) *Storage_DeleteDirectory_Call
func (*Storage_DeleteDirectory_Call) Run ¶
func (_c *Storage_DeleteDirectory_Call) Run(run func(directory string)) *Storage_DeleteDirectory_Call
func (*Storage_DeleteDirectory_Call) RunAndReturn ¶
func (_c *Storage_DeleteDirectory_Call) RunAndReturn(run func(string) error) *Storage_DeleteDirectory_Call
type Storage_Delete_Call ¶
Storage_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Storage_Delete_Call) Return ¶
func (_c *Storage_Delete_Call) Return(_a0 error) *Storage_Delete_Call
func (*Storage_Delete_Call) Run ¶
func (_c *Storage_Delete_Call) Run(run func(file ...string)) *Storage_Delete_Call
func (*Storage_Delete_Call) RunAndReturn ¶
func (_c *Storage_Delete_Call) RunAndReturn(run func(...string) error) *Storage_Delete_Call
type Storage_Directories_Call ¶
Storage_Directories_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Directories'
func (*Storage_Directories_Call) Return ¶
func (_c *Storage_Directories_Call) Return(_a0 []string, _a1 error) *Storage_Directories_Call
func (*Storage_Directories_Call) Run ¶
func (_c *Storage_Directories_Call) Run(run func(path string)) *Storage_Directories_Call
func (*Storage_Directories_Call) RunAndReturn ¶
func (_c *Storage_Directories_Call) RunAndReturn(run func(string) ([]string, error)) *Storage_Directories_Call
type Storage_Disk_Call ¶
Storage_Disk_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Disk'
func (*Storage_Disk_Call) Return ¶
func (_c *Storage_Disk_Call) Return(_a0 filesystem.Driver) *Storage_Disk_Call
func (*Storage_Disk_Call) Run ¶
func (_c *Storage_Disk_Call) Run(run func(disk string)) *Storage_Disk_Call
func (*Storage_Disk_Call) RunAndReturn ¶
func (_c *Storage_Disk_Call) RunAndReturn(run func(string) filesystem.Driver) *Storage_Disk_Call
type Storage_Exists_Call ¶
Storage_Exists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exists'
func (*Storage_Exists_Call) Return ¶
func (_c *Storage_Exists_Call) Return(_a0 bool) *Storage_Exists_Call
func (*Storage_Exists_Call) Run ¶
func (_c *Storage_Exists_Call) Run(run func(file string)) *Storage_Exists_Call
func (*Storage_Exists_Call) RunAndReturn ¶
func (_c *Storage_Exists_Call) RunAndReturn(run func(string) bool) *Storage_Exists_Call
type Storage_Expecter ¶
type Storage_Expecter struct {
// contains filtered or unexported fields
}
func (*Storage_Expecter) AllDirectories ¶
func (_e *Storage_Expecter) AllDirectories(path interface{}) *Storage_AllDirectories_Call
AllDirectories is a helper method to define mock.On call
- path string
func (*Storage_Expecter) AllFiles ¶
func (_e *Storage_Expecter) AllFiles(path interface{}) *Storage_AllFiles_Call
AllFiles is a helper method to define mock.On call
- path string
func (*Storage_Expecter) Copy ¶
func (_e *Storage_Expecter) Copy(oldFile interface{}, newFile interface{}) *Storage_Copy_Call
Copy is a helper method to define mock.On call
- oldFile string
- newFile string
func (*Storage_Expecter) Delete ¶
func (_e *Storage_Expecter) Delete(file ...interface{}) *Storage_Delete_Call
Delete is a helper method to define mock.On call
- file ...string
func (*Storage_Expecter) DeleteDirectory ¶
func (_e *Storage_Expecter) DeleteDirectory(directory interface{}) *Storage_DeleteDirectory_Call
DeleteDirectory is a helper method to define mock.On call
- directory string
func (*Storage_Expecter) Directories ¶
func (_e *Storage_Expecter) Directories(path interface{}) *Storage_Directories_Call
Directories is a helper method to define mock.On call
- path string
func (*Storage_Expecter) Disk ¶
func (_e *Storage_Expecter) Disk(disk interface{}) *Storage_Disk_Call
Disk is a helper method to define mock.On call
- disk string
func (*Storage_Expecter) Exists ¶
func (_e *Storage_Expecter) Exists(file interface{}) *Storage_Exists_Call
Exists is a helper method to define mock.On call
- file string
func (*Storage_Expecter) Files ¶
func (_e *Storage_Expecter) Files(path interface{}) *Storage_Files_Call
Files is a helper method to define mock.On call
- path string
func (*Storage_Expecter) Get ¶
func (_e *Storage_Expecter) Get(file interface{}) *Storage_Get_Call
Get is a helper method to define mock.On call
- file string
func (*Storage_Expecter) GetBytes ¶
func (_e *Storage_Expecter) GetBytes(file interface{}) *Storage_GetBytes_Call
GetBytes is a helper method to define mock.On call
- file string
func (*Storage_Expecter) LastModified ¶
func (_e *Storage_Expecter) LastModified(file interface{}) *Storage_LastModified_Call
LastModified is a helper method to define mock.On call
- file string
func (*Storage_Expecter) MakeDirectory ¶
func (_e *Storage_Expecter) MakeDirectory(directory interface{}) *Storage_MakeDirectory_Call
MakeDirectory is a helper method to define mock.On call
- directory string
func (*Storage_Expecter) MimeType ¶
func (_e *Storage_Expecter) MimeType(file interface{}) *Storage_MimeType_Call
MimeType is a helper method to define mock.On call
- file string
func (*Storage_Expecter) Missing ¶
func (_e *Storage_Expecter) Missing(file interface{}) *Storage_Missing_Call
Missing is a helper method to define mock.On call
- file string
func (*Storage_Expecter) Move ¶
func (_e *Storage_Expecter) Move(oldFile interface{}, newFile interface{}) *Storage_Move_Call
Move is a helper method to define mock.On call
- oldFile string
- newFile string
func (*Storage_Expecter) Path ¶
func (_e *Storage_Expecter) Path(file interface{}) *Storage_Path_Call
Path is a helper method to define mock.On call
- file string
func (*Storage_Expecter) Put ¶
func (_e *Storage_Expecter) Put(file interface{}, content interface{}) *Storage_Put_Call
Put is a helper method to define mock.On call
- file string
- content string
func (*Storage_Expecter) PutFile ¶
func (_e *Storage_Expecter) PutFile(path interface{}, source interface{}) *Storage_PutFile_Call
PutFile is a helper method to define mock.On call
- path string
- source filesystem.File
func (*Storage_Expecter) PutFileAs ¶
func (_e *Storage_Expecter) PutFileAs(path interface{}, source interface{}, name interface{}) *Storage_PutFileAs_Call
PutFileAs is a helper method to define mock.On call
- path string
- source filesystem.File
- name string
func (*Storage_Expecter) Size ¶
func (_e *Storage_Expecter) Size(file interface{}) *Storage_Size_Call
Size is a helper method to define mock.On call
- file string
func (*Storage_Expecter) TemporaryUrl ¶
func (_e *Storage_Expecter) TemporaryUrl(file interface{}, _a1 interface{}) *Storage_TemporaryUrl_Call
TemporaryUrl is a helper method to define mock.On call
- file string
- _a1 time.Time
func (*Storage_Expecter) Url ¶
func (_e *Storage_Expecter) Url(file interface{}) *Storage_Url_Call
Url is a helper method to define mock.On call
- file string
func (*Storage_Expecter) WithContext ¶
func (_e *Storage_Expecter) WithContext(ctx interface{}) *Storage_WithContext_Call
WithContext is a helper method to define mock.On call
- ctx context.Context
type Storage_Files_Call ¶
Storage_Files_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Files'
func (*Storage_Files_Call) Return ¶
func (_c *Storage_Files_Call) Return(_a0 []string, _a1 error) *Storage_Files_Call
func (*Storage_Files_Call) Run ¶
func (_c *Storage_Files_Call) Run(run func(path string)) *Storage_Files_Call
func (*Storage_Files_Call) RunAndReturn ¶
func (_c *Storage_Files_Call) RunAndReturn(run func(string) ([]string, error)) *Storage_Files_Call
type Storage_GetBytes_Call ¶
Storage_GetBytes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBytes'
func (*Storage_GetBytes_Call) Return ¶
func (_c *Storage_GetBytes_Call) Return(_a0 []byte, _a1 error) *Storage_GetBytes_Call
func (*Storage_GetBytes_Call) Run ¶
func (_c *Storage_GetBytes_Call) Run(run func(file string)) *Storage_GetBytes_Call
func (*Storage_GetBytes_Call) RunAndReturn ¶
func (_c *Storage_GetBytes_Call) RunAndReturn(run func(string) ([]byte, error)) *Storage_GetBytes_Call
type Storage_Get_Call ¶
Storage_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Storage_Get_Call) Return ¶
func (_c *Storage_Get_Call) Return(_a0 string, _a1 error) *Storage_Get_Call
func (*Storage_Get_Call) Run ¶
func (_c *Storage_Get_Call) Run(run func(file string)) *Storage_Get_Call
func (*Storage_Get_Call) RunAndReturn ¶
func (_c *Storage_Get_Call) RunAndReturn(run func(string) (string, error)) *Storage_Get_Call
type Storage_LastModified_Call ¶
Storage_LastModified_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LastModified'
func (*Storage_LastModified_Call) Return ¶
func (_c *Storage_LastModified_Call) Return(_a0 time.Time, _a1 error) *Storage_LastModified_Call
func (*Storage_LastModified_Call) Run ¶
func (_c *Storage_LastModified_Call) Run(run func(file string)) *Storage_LastModified_Call
func (*Storage_LastModified_Call) RunAndReturn ¶
func (_c *Storage_LastModified_Call) RunAndReturn(run func(string) (time.Time, error)) *Storage_LastModified_Call
type Storage_MakeDirectory_Call ¶
Storage_MakeDirectory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeDirectory'
func (*Storage_MakeDirectory_Call) Return ¶
func (_c *Storage_MakeDirectory_Call) Return(_a0 error) *Storage_MakeDirectory_Call
func (*Storage_MakeDirectory_Call) Run ¶
func (_c *Storage_MakeDirectory_Call) Run(run func(directory string)) *Storage_MakeDirectory_Call
func (*Storage_MakeDirectory_Call) RunAndReturn ¶
func (_c *Storage_MakeDirectory_Call) RunAndReturn(run func(string) error) *Storage_MakeDirectory_Call
type Storage_MimeType_Call ¶
Storage_MimeType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MimeType'
func (*Storage_MimeType_Call) Return ¶
func (_c *Storage_MimeType_Call) Return(_a0 string, _a1 error) *Storage_MimeType_Call
func (*Storage_MimeType_Call) Run ¶
func (_c *Storage_MimeType_Call) Run(run func(file string)) *Storage_MimeType_Call
func (*Storage_MimeType_Call) RunAndReturn ¶
func (_c *Storage_MimeType_Call) RunAndReturn(run func(string) (string, error)) *Storage_MimeType_Call
type Storage_Missing_Call ¶
Storage_Missing_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Missing'
func (*Storage_Missing_Call) Return ¶
func (_c *Storage_Missing_Call) Return(_a0 bool) *Storage_Missing_Call
func (*Storage_Missing_Call) Run ¶
func (_c *Storage_Missing_Call) Run(run func(file string)) *Storage_Missing_Call
func (*Storage_Missing_Call) RunAndReturn ¶
func (_c *Storage_Missing_Call) RunAndReturn(run func(string) bool) *Storage_Missing_Call
type Storage_Move_Call ¶
Storage_Move_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Move'
func (*Storage_Move_Call) Return ¶
func (_c *Storage_Move_Call) Return(_a0 error) *Storage_Move_Call
func (*Storage_Move_Call) Run ¶
func (_c *Storage_Move_Call) Run(run func(oldFile string, newFile string)) *Storage_Move_Call
func (*Storage_Move_Call) RunAndReturn ¶
func (_c *Storage_Move_Call) RunAndReturn(run func(string, string) error) *Storage_Move_Call
type Storage_Path_Call ¶
Storage_Path_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Path'
func (*Storage_Path_Call) Return ¶
func (_c *Storage_Path_Call) Return(_a0 string) *Storage_Path_Call
func (*Storage_Path_Call) Run ¶
func (_c *Storage_Path_Call) Run(run func(file string)) *Storage_Path_Call
func (*Storage_Path_Call) RunAndReturn ¶
func (_c *Storage_Path_Call) RunAndReturn(run func(string) string) *Storage_Path_Call
type Storage_PutFileAs_Call ¶
Storage_PutFileAs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutFileAs'
func (*Storage_PutFileAs_Call) Return ¶
func (_c *Storage_PutFileAs_Call) Return(_a0 string, _a1 error) *Storage_PutFileAs_Call
func (*Storage_PutFileAs_Call) Run ¶
func (_c *Storage_PutFileAs_Call) Run(run func(path string, source filesystem.File, name string)) *Storage_PutFileAs_Call
func (*Storage_PutFileAs_Call) RunAndReturn ¶
func (_c *Storage_PutFileAs_Call) RunAndReturn(run func(string, filesystem.File, string) (string, error)) *Storage_PutFileAs_Call
type Storage_PutFile_Call ¶
Storage_PutFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PutFile'
func (*Storage_PutFile_Call) Return ¶
func (_c *Storage_PutFile_Call) Return(_a0 string, _a1 error) *Storage_PutFile_Call
func (*Storage_PutFile_Call) Run ¶
func (_c *Storage_PutFile_Call) Run(run func(path string, source filesystem.File)) *Storage_PutFile_Call
func (*Storage_PutFile_Call) RunAndReturn ¶
func (_c *Storage_PutFile_Call) RunAndReturn(run func(string, filesystem.File) (string, error)) *Storage_PutFile_Call
type Storage_Put_Call ¶
Storage_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put'
func (*Storage_Put_Call) Return ¶
func (_c *Storage_Put_Call) Return(_a0 error) *Storage_Put_Call
func (*Storage_Put_Call) Run ¶
func (_c *Storage_Put_Call) Run(run func(file string, content string)) *Storage_Put_Call
func (*Storage_Put_Call) RunAndReturn ¶
func (_c *Storage_Put_Call) RunAndReturn(run func(string, string) error) *Storage_Put_Call
type Storage_Size_Call ¶
Storage_Size_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Size'
func (*Storage_Size_Call) Return ¶
func (_c *Storage_Size_Call) Return(_a0 int64, _a1 error) *Storage_Size_Call
func (*Storage_Size_Call) Run ¶
func (_c *Storage_Size_Call) Run(run func(file string)) *Storage_Size_Call
func (*Storage_Size_Call) RunAndReturn ¶
func (_c *Storage_Size_Call) RunAndReturn(run func(string) (int64, error)) *Storage_Size_Call
type Storage_TemporaryUrl_Call ¶
Storage_TemporaryUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TemporaryUrl'
func (*Storage_TemporaryUrl_Call) Return ¶
func (_c *Storage_TemporaryUrl_Call) Return(_a0 string, _a1 error) *Storage_TemporaryUrl_Call
func (*Storage_TemporaryUrl_Call) Run ¶
func (_c *Storage_TemporaryUrl_Call) Run(run func(file string, _a1 time.Time)) *Storage_TemporaryUrl_Call
func (*Storage_TemporaryUrl_Call) RunAndReturn ¶
func (_c *Storage_TemporaryUrl_Call) RunAndReturn(run func(string, time.Time) (string, error)) *Storage_TemporaryUrl_Call
type Storage_Url_Call ¶
Storage_Url_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Url'
func (*Storage_Url_Call) Return ¶
func (_c *Storage_Url_Call) Return(_a0 string) *Storage_Url_Call
func (*Storage_Url_Call) Run ¶
func (_c *Storage_Url_Call) Run(run func(file string)) *Storage_Url_Call
func (*Storage_Url_Call) RunAndReturn ¶
func (_c *Storage_Url_Call) RunAndReturn(run func(string) string) *Storage_Url_Call
type Storage_WithContext_Call ¶
Storage_WithContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithContext'
func (*Storage_WithContext_Call) Return ¶
func (_c *Storage_WithContext_Call) Return(_a0 filesystem.Driver) *Storage_WithContext_Call
func (*Storage_WithContext_Call) Run ¶
func (_c *Storage_WithContext_Call) Run(run func(ctx context.Context)) *Storage_WithContext_Call
func (*Storage_WithContext_Call) RunAndReturn ¶
func (_c *Storage_WithContext_Call) RunAndReturn(run func(context.Context) filesystem.Driver) *Storage_WithContext_Call