fio

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TmpFileMask added in v0.2.5

func TmpFileMask(callback func())

Types

type BucketConfig added in v0.2.5

type BucketConfig struct {
	Quota *int64 // 配额 (单位mb)
	Vers  *bool  // 是否开启版本控制
}

type BucketStat added in v0.2.5

type BucketStat struct {
	Quota int64 // 配额 (单位mb)
	Vers  bool  // 是否开启版本控制
}

type IFile

type IFile interface {
	io.Reader
	io.Writer
	io.Closer
}

type IFileBucket added in v0.2.5

type IFileBucket interface {
	Info() (stat BucketStat, err error)
	SetConfig(conf BucketConfig) (err error)
	List(path string) ([]os.FileInfo, error)
	Open(name string) (io.ReadCloser, error)
	OpenFile(name string) (IFile, error)
	Stat(name string) (os.FileInfo, error)
	Remove(name string) error
}

type IFileSystem

type IFileSystem interface {
	IsOnline() bool
	Bucket(name string) (IFileBucket, error)
}

默认使用本地文件系统(以后需要被 minio相关实现覆盖)

var FileSystem IFileSystem

type MinIO added in v0.2.5

type MinIO struct {
	Endpoint string
	Access   string
	Secret   string
	Secure   bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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