localfs

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalFileBucket

type LocalFileBucket struct {
	// contains filtered or unexported fields
}

本地文件系统(需要被 minio相关实现覆盖)

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

func (l *LocalFileBucket) Open(name string) (io.ReadCloser, 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.

func (*LocalFileBucket) Stat

func (l *LocalFileBucket) Stat(name string) (fs.FileInfo, error)

Stat implements IFileSystem

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

Jump to

Keyboard shortcuts

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