Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IFileSystem ¶
type IFileSystem interface { Open(name string) (io.ReadCloser, error) OpenFile(name string) (IFile, error) Stat(name string) (os.FileInfo, error) Remove(name string) error }
var ( // 默认使用本地文件系统(以后需要被 minio相关实现覆盖) FileSystem IFileSystem = &_localFileSystem{ basePath: "/files/", } // 临时文件默认使用本地文件系统 TmpFileSystem IFileSystem = &_localFileSystem{ basePath: "/tmp/", } )
Click to show internal directories.
Click to hide internal directories.