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) 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 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) 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 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) 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
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 ¶ 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) GetBytes ¶ added in v1.13.2
GetBytes provides a mock function with given fields: file
func (*Driver) LastModified ¶ added in v1.11.1
LastModified provides a mock function with given fields: file
func (*Driver) MakeDirectory ¶
MakeDirectory provides a mock function with given fields: directory
func (*Driver) MimeType ¶ added in v1.11.1
MimeType provides a mock function with given fields: file
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. 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) 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:
func (*File) LastModified ¶ added in v1.13.4
LastModified provides a mock function with given fields:
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 ¶ 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) GetBytes ¶ added in v1.13.4
GetBytes provides a mock function with given fields: file
func (*Storage) LastModified ¶ added in v1.11.1
LastModified provides a mock function with given fields: file
func (*Storage) MakeDirectory ¶
MakeDirectory provides a mock function with given fields: directory
func (*Storage) MimeType ¶ added in v1.11.1
MimeType provides a mock function with given fields: file
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