Documentation ¶
Index ¶
- type FileStatHandler
- type MinIOFileSystem
- type MinioFile
- type MinioFileBucket
- func (m *MinioFileBucket) Bucket() string
- func (m *MinioFileBucket) Info() (stat fio.BucketStat, err error)
- func (m *MinioFileBucket) Init() (err error)
- func (m *MinioFileBucket) List(path string) (res []fs.FileInfo, err error)
- func (m *MinioFileBucket) MergeFile(ctx context.Context, dst fio.MergeOption, srcs ...fio.MergeOption) (stat fio.IFileStat, err error)
- func (m *MinioFileBucket) Open(name string) (io.ReadSeekCloser, error)
- func (m *MinioFileBucket) OpenFile(name string) (fio.IFile, error)
- func (m *MinioFileBucket) Remove(name string) error
- func (m *MinioFileBucket) SetConfig(conf fio.BucketConfig) (err error)
- func (m *MinioFileBucket) Stat(name string) (fio.IFileStat, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileStatHandler ¶
type FileStatHandler struct {
minio.ObjectInfo
}
func (*FileStatHandler) ModTime ¶
func (f *FileStatHandler) ModTime() time.Time
ModTime implements fs.FileInfo
func (*FileStatHandler) Mode ¶
func (f *FileStatHandler) Mode() fs.FileMode
Mode implements fs.FileInfo
func (*FileStatHandler) Sha1 ¶ added in v0.2.22
func (f *FileStatHandler) Sha1() string
Sha1 implements fio.IFileStat.
type MinIOFileSystem ¶
type MinIOFileSystem struct {
// contains filtered or unexported fields
}
func NewMinioFileSystem ¶
func NewMinioFileSystem(conf fio.MinIO) (ii *MinIOFileSystem, err error)
func (*MinIOFileSystem) Bucket ¶
func (m *MinIOFileSystem) Bucket(name string) (fio.IFileBucket, error)
Bucket implements fio.IFileSystem.
func (*MinIOFileSystem) IsOnline ¶
func (m *MinIOFileSystem) IsOnline() bool
IsOnline implements fio.IFileSystem.
type MinioFile ¶
type MinioFile struct {
// contains filtered or unexported fields
}
type MinioFileBucket ¶
type MinioFileBucket struct {
// contains filtered or unexported fields
}
func (*MinioFileBucket) Bucket ¶ added in v0.2.12
func (m *MinioFileBucket) Bucket() string
func (*MinioFileBucket) Info ¶
func (m *MinioFileBucket) Info() (stat fio.BucketStat, err error)
Info implements fio.IFileBucket 获取存储桶信息 (配额, 版本控制)
func (*MinioFileBucket) Init ¶
func (m *MinioFileBucket) Init() (err error)
func (*MinioFileBucket) List ¶
func (m *MinioFileBucket) List(path string) (res []fs.FileInfo, err error)
func (*MinioFileBucket) MergeFile ¶ added in v0.2.23
func (m *MinioFileBucket) MergeFile(ctx context.Context, dst fio.MergeOption, srcs ...fio.MergeOption) (stat fio.IFileStat, err error)
MergeFile implements fio.IFileBucket.
func (*MinioFileBucket) Open ¶
func (m *MinioFileBucket) Open(name string) (io.ReadSeekCloser, error)
OpenReadOnly implements io.IFileSystem 打开文件(只读管道)
func (*MinioFileBucket) OpenFile ¶
func (m *MinioFileBucket) OpenFile(name string) (fio.IFile, error)
OpenFile implements io.IFileSystem 打开文件(虚拟)
func (*MinioFileBucket) Remove ¶
func (m *MinioFileBucket) Remove(name string) error
func (*MinioFileBucket) SetConfig ¶
func (m *MinioFileBucket) SetConfig(conf fio.BucketConfig) (err error)
Click to show internal directories.
Click to hide internal directories.