Documentation ¶
Index ¶
- type FileStatHandler
- type MinIOFileSystem
- type MinioFile
- type MinioFileBucket
- 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) Open(name string) (io.ReadCloser, 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) (fs.FileInfo, 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
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) 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) Open ¶
func (m *MinioFileBucket) Open(name string) (io.ReadCloser, 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.