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) Exists(file string) bool
- func (_m *Driver) Files(path string) ([]string, error)
- func (_m *Driver) Get(file string) (string, error)
- func (_m *Driver) MakeDirectory(directory 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 File
- func (_m *File) Disk(disk string) filesystem.File
- 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) Store(path string) (string, error)
- func (_m *File) StoreAs(path string, name string) (string, error)
- type NewDriverT
- type NewFileT
- type NewStorageT
- 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) Exists(file string) bool
- func (_m *Storage) Files(path string) ([]string, error)
- func (_m *Storage) Get(file string) (string, error)
- func (_m *Storage) MakeDirectory(directory 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
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 ¶
func NewDriver(t NewDriverT) *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.
func (*Driver) AllDirectories ¶ added in v1.6.1
AllDirectories provides a mock function with given fields: path
func (*Driver) DeleteDirectory ¶
DeleteDirectory provides a mock function with given fields: directory
func (*Driver) Directories ¶ added in v1.6.1
Directories provides a mock function with given fields: path
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 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.
func (*File) Disk ¶
func (_m *File) Disk(disk string) filesystem.File
Disk provides a mock function with given fields: disk
func (*File) GetClientOriginalExtension ¶ added in v1.6.1
GetClientOriginalExtension provides a mock function with given fields:
func (*File) GetClientOriginalName ¶ added in v1.6.1
GetClientOriginalName provides a mock function with given fields:
type NewDriverT ¶
type NewStorageT ¶
type Storage ¶
Storage is an autogenerated mock type for the Storage type
func NewStorage ¶
func NewStorage(t NewStorageT) *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.
func (*Storage) AllDirectories ¶ added in v1.6.1
AllDirectories provides a mock function with given fields: path
func (*Storage) AllFiles ¶ added in v1.6.1
AllFiles provides a mock function with given fields: path
func (*Storage) DeleteDirectory ¶
DeleteDirectory provides a mock function with given fields: directory
func (*Storage) Directories ¶ added in v1.6.1
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) 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