Documentation
¶
Index ¶
- type File
- type FileInfo
- func (f *FileInfo) ContentType() string
- func (f *FileInfo) CreatedAt() time.Time
- func (f *FileInfo) DirPath() string
- func (f *FileInfo) Extension() string
- func (f *FileInfo) FullName() string
- func (f *FileInfo) ID() *uuid.UUID
- func (f *FileInfo) Mode() os.FileMode
- func (f *FileInfo) Name() string
- func (f *FileInfo) Path() string
- func (f *FileInfo) Size() int64
- func (f *FileInfo) Sys() driver.Any
- func (f *FileInfo) ToStruct() driver.FileInfo
- func (f *FileInfo) UpdatedAt() time.Time
- type Location
- func (l *Location) CopyFile(file driver.FileInterface, dest driver.FileDestination) (driver.FileInterface, error)
- func (l *Location) DeleteFile(file driver.FileInterface) error
- func (l *Location) FileExists(filePath string) (bool, error)
- func (l *Location) FileFromInfo(fileInfo driver.FileInfo) (driver.FileInterface, error)
- func (l *Location) FileFromInfoJson(fileInfo string) (driver.FileInterface, error)
- func (l *Location) FileFromInfoMap(fileInfo map[string]interface{}) (driver.FileInterface, error)
- func (l *Location) FindFile(filePath string) (driver.FileInterface, error)
- func (l *Location) GetFilePath(filePath string) string
- func (l *Location) MoveFile(file driver.FileInterface, dest driver.FileDestination) (driver.FileInterface, error)
- func (l *Location) Open() (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func (*File) Info ¶
func (f *File) Info() driver.FileInfoInterface
func (*File) Location ¶
func (f *File) Location() driver.LocationInterface
type FileInfo ¶
type FileInfo struct {
// contains filtered or unexported fields
}
func DriverFileInfoToNative ¶
func NewFileInfo ¶
func (*FileInfo) ContentType ¶
type Location ¶
type Location struct {
DirPath string
}
func (*Location) CopyFile ¶
func (l *Location) CopyFile( file driver.FileInterface, dest driver.FileDestination, ) (driver.FileInterface, error)
func (*Location) DeleteFile ¶
func (l *Location) DeleteFile( file driver.FileInterface, ) error
func (*Location) FileFromInfo ¶
FileFromInfo -> it recreates the file struct/object from driver.FileInfo so further manipulations can be made
func (*Location) FileFromInfoJson ¶
func (l *Location) FileFromInfoJson(fileInfo string) (driver.FileInterface, error)
TODO: FileFromInfoMap -> it recreates the file struct/object from driver.FileInfo so further manipulations can be made
func (*Location) FileFromInfoMap ¶
func (l *Location) FileFromInfoMap(fileInfo map[string]interface{}) (driver.FileInterface, error)
TODO: FileFromInfoMap -> it recreates the file struct/object from driver.FileInfo so further manipulations can be made
func (*Location) FindFile ¶
func (l *Location) FindFile(filePath string) (driver.FileInterface, error)
func (*Location) GetFilePath ¶
func (*Location) MoveFile ¶
func (l *Location) MoveFile( file driver.FileInterface, dest driver.FileDestination, ) (driver.FileInterface, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.