miniofs

package
v0.2.28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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) IsDir

func (f *FileStatHandler) IsDir() bool

IsDir implements fs.FileInfo

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) Name

func (f *FileStatHandler) Name() string

Name implements fs.FileInfo

func (*FileStatHandler) Sha1 added in v0.2.22

func (f *FileStatHandler) Sha1() string

Sha1 implements fio.IFileStat.

func (*FileStatHandler) Size

func (f *FileStatHandler) Size() int64

Size implements fs.FileInfo

func (*FileStatHandler) Sys

func (f *FileStatHandler) Sys() any

Sys 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
}

func (*MinioFile) Close

func (m *MinioFile) Close() (err error)

Close implements fio.IFile

func (*MinioFile) Read

func (m *MinioFile) Read(p []byte) (n int, err error)

Read implements fio.IFile

func (*MinioFile) Write

func (m *MinioFile) Write(p []byte) (n int, err error)

Write implements fio.IFile

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)

func (*MinioFileBucket) Stat

func (m *MinioFileBucket) Stat(name string) (fio.IFileStat, error)

Stat implements io.IFileSystem 获取文件信息

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL