Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TmpFileMask ¶ added in v0.2.5
func TmpFileMask(callback func())
Types ¶
type BucketConfig ¶ added in v0.2.5
type BucketStat ¶ added in v0.2.5
type IFileBucket ¶ added in v0.2.5
type IFileBucket interface { Bucket() string Info() (stat BucketStat, err error) SetConfig(conf BucketConfig) (err error) List(path string) ([]os.FileInfo, error) Open(name string) (io.ReadSeekCloser, error) OpenFile(name string) (IFile, error) MergeFile(ctx context.Context, dst MergeOption, src ...MergeOption) (IFileStat, error) Stat(name string) (IFileStat, error) Remove(name string) error }
type IFileSystem ¶
type IFileSystem interface { IsOnline() bool Bucket(name string) (IFileBucket, error) }
默认使用本地文件系统(以后需要被 minio相关实现覆盖)
var FileSystem IFileSystem
type MergeOption ¶ added in v0.2.23
type MergeOption struct {
Path string
}
Click to show internal directories.
Click to hide internal directories.