Documentation ¶
Index ¶
- type FileStatHandler
- type LocalFileBucket
- func (l *LocalFileBucket) Bucket() string
- func (*LocalFileBucket) Info() (stat fio.BucketStat, err error)
- func (l *LocalFileBucket) Init() error
- func (*LocalFileBucket) List(path string) ([]fs.FileInfo, error)
- func (l *LocalFileBucket) MergeFile(ctx context.Context, dst fio.MergeOption, src ...fio.MergeOption) (fio.IFileStat, error)
- func (l *LocalFileBucket) Open(name string) (io.ReadSeekCloser, error)
- func (l *LocalFileBucket) OpenFile(name string) (fio.IFile, error)
- func (l *LocalFileBucket) Remove(name string) error
- func (*LocalFileBucket) SetConfig(conf fio.BucketConfig) (err error)
- func (l *LocalFileBucket) Stat(name string) (fio.IFileStat, error)
- type LocalFileSystem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileStatHandler ¶ added in v0.2.22
func (*FileStatHandler) Sha1 ¶ added in v0.2.22
func (f *FileStatHandler) Sha1() string
Sha1 implements fio.IFileStat.
type LocalFileBucket ¶
type LocalFileBucket struct {
// contains filtered or unexported fields
}
本地文件系统(需要被 minio相关实现覆盖)
func (*LocalFileBucket) Bucket ¶ added in v0.2.12
func (l *LocalFileBucket) Bucket() string
Bucket implements fio.IFileBucket.
func (*LocalFileBucket) Info ¶
func (*LocalFileBucket) Info() (stat fio.BucketStat, err error)
Info implements fio.IFileBucket.
func (*LocalFileBucket) Init ¶
func (l *LocalFileBucket) Init() error
func (*LocalFileBucket) List ¶
func (*LocalFileBucket) List(path string) ([]fs.FileInfo, error)
List implements fio.IFileBucket.
func (*LocalFileBucket) MergeFile ¶ added in v0.2.23
func (l *LocalFileBucket) MergeFile(ctx context.Context, dst fio.MergeOption, src ...fio.MergeOption) (fio.IFileStat, error)
MergeFile implements fio.IFileBucket.
func (*LocalFileBucket) Open ¶
func (l *LocalFileBucket) Open(name string) (io.ReadSeekCloser, error)
OpenReadOnly implements IFileSystem
func (*LocalFileBucket) OpenFile ¶
func (l *LocalFileBucket) OpenFile(name string) (fio.IFile, error)
OpenFile implements IFileSystem
func (*LocalFileBucket) Remove ¶
func (l *LocalFileBucket) Remove(name string) error
func (*LocalFileBucket) SetConfig ¶
func (*LocalFileBucket) SetConfig(conf fio.BucketConfig) (err error)
SetConfig implements fio.IFileBucket.
type LocalFileSystem ¶
type LocalFileSystem struct { BasePath string // contains filtered or unexported fields }
func (*LocalFileSystem) Bucket ¶
func (l *LocalFileSystem) Bucket(name string) (fio.IFileBucket, error)
Bucket implements fio.IFileSystem.
func (*LocalFileSystem) Init ¶
func (l *LocalFileSystem) Init()
func (*LocalFileSystem) IsOnline ¶
func (l *LocalFileSystem) IsOnline() bool
Click to show internal directories.
Click to hide internal directories.