filesystem

package
v1.16.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	mock.Mock
}

Driver is an autogenerated mock type for the Driver type

func NewDriver

func NewDriver(t interface {
	mock.TestingT
	Cleanup(func())
}) *Driver

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

func (_m *Driver) AllDirectories(path string) ([]string, error)

AllDirectories provides a mock function with given fields: path

func (*Driver) AllFiles

func (_m *Driver) AllFiles(path string) ([]string, error)

AllFiles provides a mock function with given fields: path

func (*Driver) Copy

func (_m *Driver) Copy(oldFile string, newFile string) error

Copy provides a mock function with given fields: oldFile, newFile

func (*Driver) Delete

func (_m *Driver) Delete(file ...string) error

Delete provides a mock function with given fields: file

func (*Driver) DeleteDirectory

func (_m *Driver) DeleteDirectory(directory string) error

DeleteDirectory provides a mock function with given fields: directory

func (*Driver) Directories

func (_m *Driver) Directories(path string) ([]string, error)

Directories provides a mock function with given fields: path

func (*Driver) EXPECT

func (_m *Driver) EXPECT() *Driver_Expecter

func (*Driver) Exists

func (_m *Driver) Exists(file string) bool

Exists provides a mock function with given fields: file

func (*Driver) Files

func (_m *Driver) Files(path string) ([]string, error)

Files provides a mock function with given fields: path

func (*Driver) Get

func (_m *Driver) Get(file string) (string, error)

Get provides a mock function with given fields: file

func (*Driver) GetBytes

func (_m *Driver) GetBytes(file string) ([]byte, error)

GetBytes provides a mock function with given fields: file

func (*Driver) LastModified

func (_m *Driver) LastModified(file string) (time.Time, error)

LastModified provides a mock function with given fields: file

func (*Driver) MakeDirectory

func (_m *Driver) MakeDirectory(directory string) error

MakeDirectory provides a mock function with given fields: directory

func (*Driver) MimeType

func (_m *Driver) MimeType(file string) (string, error)

MimeType provides a mock function with given fields: file

func (*Driver) Missing

func (_m *Driver) Missing(file string) bool

Missing provides a mock function with given fields: file

func (*Driver) Move

func (_m *Driver) Move(oldFile string, newFile string) error

Move provides a mock function with given fields: oldFile, newFile

func (*Driver) Path

func (_m *Driver) Path(file string) string

Path provides a mock function with given fields: file

func (*Driver) Put

func (_m *Driver) Put(file string, content string) error

Put provides a mock function with given fields: file, content

func (*Driver) PutFile

func (_m *Driver) PutFile(path string, source filesystem.File) (string, error)

PutFile provides a mock function with given fields: path, source

func (*Driver) PutFileAs

func (_m *Driver) PutFileAs(path string, source filesystem.File, name string) (string, error)

PutFileAs provides a mock function with given fields: path, source, name

func (*Driver) Size

func (_m *Driver) Size(file string) (int64, error)

Size provides a mock function with given fields: file

func (*Driver) TemporaryUrl

func (_m *Driver) TemporaryUrl(file string, _a1 time.Time) (string, error)

TemporaryUrl provides a mock function with given fields: file, _a1

func (*Driver) Url

func (_m *Driver) Url(file string) string

Url provides a mock function with given fields: file

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

type Driver_AllDirectories_Call struct {
	*mock.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 (*Driver_AllDirectories_Call) Run

func (*Driver_AllDirectories_Call) RunAndReturn

func (_c *Driver_AllDirectories_Call) RunAndReturn(run func(string) ([]string, error)) *Driver_AllDirectories_Call

type Driver_AllFiles_Call

type Driver_AllFiles_Call struct {
	*mock.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

type Driver_Copy_Call struct {
	*mock.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

type Driver_DeleteDirectory_Call struct {
	*mock.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 (*Driver_DeleteDirectory_Call) Run

func (_c *Driver_DeleteDirectory_Call) Run(run func(directory string)) *Driver_DeleteDirectory_Call

func (*Driver_DeleteDirectory_Call) RunAndReturn

type Driver_Delete_Call

type Driver_Delete_Call struct {
	*mock.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

type Driver_Directories_Call struct {
	*mock.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 (*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

type Driver_Exists_Call struct {
	*mock.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

type Driver_Files_Call struct {
	*mock.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

type Driver_GetBytes_Call struct {
	*mock.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

type Driver_Get_Call struct {
	*mock.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

type Driver_LastModified_Call struct {
	*mock.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 (*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

type Driver_MakeDirectory_Call struct {
	*mock.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 (*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

type Driver_MimeType_Call struct {
	*mock.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

type Driver_Missing_Call struct {
	*mock.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

type Driver_Move_Call struct {
	*mock.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

type Driver_Path_Call struct {
	*mock.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

type Driver_PutFileAs_Call struct {
	*mock.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 (*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

type Driver_PutFile_Call

type Driver_PutFile_Call struct {
	*mock.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

type Driver_Put_Call struct {
	*mock.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

type Driver_Size_Call struct {
	*mock.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

type Driver_TemporaryUrl_Call struct {
	*mock.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 (*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

type Driver_Url_Call

type Driver_Url_Call struct {
	*mock.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

type Driver_WithContext_Call struct {
	*mock.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 (*Driver_WithContext_Call) Run

func (*Driver_WithContext_Call) RunAndReturn

type File

type File struct {
	mock.Mock
}

File is an autogenerated mock type for the File type

func NewFile

func NewFile(t interface {
	mock.TestingT
	Cleanup(func())
}) *File

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) Extension

func (_m *File) Extension() (string, error)

Extension provides a mock function with no fields

func (*File) File

func (_m *File) File() string

File provides a mock function with no fields

func (*File) GetClientOriginalExtension

func (_m *File) GetClientOriginalExtension() string

GetClientOriginalExtension provides a mock function with no fields

func (*File) GetClientOriginalName

func (_m *File) GetClientOriginalName() string

GetClientOriginalName provides a mock function with no fields

func (*File) HashName

func (_m *File) HashName(path ...string) string

HashName provides a mock function with given fields: path

func (*File) LastModified

func (_m *File) LastModified() (time.Time, error)

LastModified provides a mock function with no fields

func (*File) MimeType

func (_m *File) MimeType() (string, error)

MimeType provides a mock function with no fields

func (*File) Size

func (_m *File) Size() (int64, error)

Size provides a mock function with no fields

func (*File) Store

func (_m *File) Store(path string) (string, error)

Store provides a mock function with given fields: path

func (*File) StoreAs

func (_m *File) StoreAs(path string, name string) (string, error)

StoreAs provides a mock function with given fields: path, name

type File_Disk_Call

type File_Disk_Call struct {
	*mock.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

type File_Extension_Call struct {
	*mock.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

type File_File_Call struct {
	*mock.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

type File_GetClientOriginalExtension_Call struct {
	*mock.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 (*File_GetClientOriginalExtension_Call) Run

func (*File_GetClientOriginalExtension_Call) RunAndReturn

type File_GetClientOriginalName_Call

type File_GetClientOriginalName_Call struct {
	*mock.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 (*File_GetClientOriginalName_Call) Run

func (*File_GetClientOriginalName_Call) RunAndReturn

type File_HashName_Call

type File_HashName_Call struct {
	*mock.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

type File_LastModified_Call struct {
	*mock.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 (*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

type File_MimeType_Call struct {
	*mock.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

type File_Size_Call struct {
	*mock.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

type File_StoreAs_Call struct {
	*mock.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

type File_Store_Call struct {
	*mock.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

type Storage struct {
	mock.Mock
}

Storage is an autogenerated mock type for the Storage type

func NewStorage

func NewStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *Storage

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

func (_m *Storage) AllDirectories(path string) ([]string, error)

AllDirectories provides a mock function with given fields: path

func (*Storage) AllFiles

func (_m *Storage) AllFiles(path string) ([]string, error)

AllFiles provides a mock function with given fields: path

func (*Storage) Copy

func (_m *Storage) Copy(oldFile string, newFile string) error

Copy provides a mock function with given fields: oldFile, newFile

func (*Storage) Delete

func (_m *Storage) Delete(file ...string) error

Delete provides a mock function with given fields: file

func (*Storage) DeleteDirectory

func (_m *Storage) DeleteDirectory(directory string) error

DeleteDirectory provides a mock function with given fields: directory

func (*Storage) Directories

func (_m *Storage) Directories(path string) ([]string, error)

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) Exists

func (_m *Storage) Exists(file string) bool

Exists provides a mock function with given fields: file

func (*Storage) Files

func (_m *Storage) Files(path string) ([]string, error)

Files provides a mock function with given fields: path

func (*Storage) Get

func (_m *Storage) Get(file string) (string, error)

Get provides a mock function with given fields: file

func (*Storage) GetBytes

func (_m *Storage) GetBytes(file string) ([]byte, error)

GetBytes provides a mock function with given fields: file

func (*Storage) LastModified

func (_m *Storage) LastModified(file string) (time.Time, error)

LastModified provides a mock function with given fields: file

func (*Storage) MakeDirectory

func (_m *Storage) MakeDirectory(directory string) error

MakeDirectory provides a mock function with given fields: directory

func (*Storage) MimeType

func (_m *Storage) MimeType(file string) (string, error)

MimeType provides a mock function with given fields: file

func (*Storage) Missing

func (_m *Storage) Missing(file string) bool

Missing provides a mock function with given fields: file

func (*Storage) Move

func (_m *Storage) Move(oldFile string, newFile string) error

Move provides a mock function with given fields: oldFile, newFile

func (*Storage) Path

func (_m *Storage) Path(file string) string

Path provides a mock function with given fields: file

func (*Storage) Put

func (_m *Storage) Put(file string, content string) error

Put provides a mock function with given fields: file, content

func (*Storage) PutFile

func (_m *Storage) PutFile(path string, source filesystem.File) (string, error)

PutFile provides a mock function with given fields: path, source

func (*Storage) PutFileAs

func (_m *Storage) PutFileAs(path string, source filesystem.File, name string) (string, error)

PutFileAs provides a mock function with given fields: path, source, name

func (*Storage) Size

func (_m *Storage) Size(file string) (int64, error)

Size provides a mock function with given fields: file

func (*Storage) TemporaryUrl

func (_m *Storage) TemporaryUrl(file string, _a1 time.Time) (string, error)

TemporaryUrl provides a mock function with given fields: file, _a1

func (*Storage) Url

func (_m *Storage) Url(file string) string

Url provides a mock function with given fields: file

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

type Storage_AllDirectories_Call struct {
	*mock.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 (*Storage_AllDirectories_Call) Run

func (*Storage_AllDirectories_Call) RunAndReturn

type Storage_AllFiles_Call

type Storage_AllFiles_Call struct {
	*mock.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

type Storage_Copy_Call struct {
	*mock.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

type Storage_DeleteDirectory_Call struct {
	*mock.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 (*Storage_DeleteDirectory_Call) Run

func (*Storage_DeleteDirectory_Call) RunAndReturn

type Storage_Delete_Call

type Storage_Delete_Call struct {
	*mock.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 (*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

type Storage_Directories_Call struct {
	*mock.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 (*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

type Storage_Disk_Call struct {
	*mock.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 (*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

type Storage_Exists_Call struct {
	*mock.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

type Storage_Files_Call struct {
	*mock.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

type Storage_GetBytes_Call struct {
	*mock.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

type Storage_Get_Call struct {
	*mock.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

type Storage_LastModified_Call struct {
	*mock.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 (*Storage_LastModified_Call) Run

func (*Storage_LastModified_Call) RunAndReturn

func (_c *Storage_LastModified_Call) RunAndReturn(run func(string) (time.Time, error)) *Storage_LastModified_Call

type Storage_MakeDirectory_Call

type Storage_MakeDirectory_Call struct {
	*mock.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 (*Storage_MakeDirectory_Call) Run

func (_c *Storage_MakeDirectory_Call) Run(run func(directory string)) *Storage_MakeDirectory_Call

func (*Storage_MakeDirectory_Call) RunAndReturn

type Storage_MimeType_Call

type Storage_MimeType_Call struct {
	*mock.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 (*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

type Storage_Missing_Call struct {
	*mock.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 (*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

type Storage_Move_Call struct {
	*mock.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

type Storage_Path_Call struct {
	*mock.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

type Storage_PutFileAs_Call struct {
	*mock.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 (*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

type Storage_PutFile_Call

type Storage_PutFile_Call struct {
	*mock.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

type Storage_Put_Call struct {
	*mock.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

type Storage_Size_Call struct {
	*mock.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

type Storage_TemporaryUrl_Call struct {
	*mock.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 (*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

type Storage_Url_Call

type Storage_Url_Call struct {
	*mock.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

type Storage_WithContext_Call struct {
	*mock.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 (*Storage_WithContext_Call) Run

func (*Storage_WithContext_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL