Versions in this module Expand all Collapse all v1 v1.0.0 Oct 17, 2021 Changes in this version + func CacheDir(path string) func(*Config) + func Debug() func(*Config) + func Insecure() func(*Config) + func Mountpoint(mountpoint string) func(*Config) + func SetGID(gid uint32) func(*Config) + func SetUID(uid uint32) func(*Config) + func Target(target string) func(*Config) + type AccessConfig struct + AccessKey string + SecretKey string + SecretToken string + Version string + func InitMinFSConfig() (*AccessConfig, error) + type Config struct + type CopyOperation struct + Source string + Target string + type Dir struct + Atime time.Time + Bkuptime time.Time + Chgtime time.Time + Crtime time.Time + ETag string + Flags uint32 + GID uint32 + Inode uint64 + Mode os.FileMode + Mtime time.Time + Path string + Size uint64 + UID uint32 + func (dir *Dir) Attr(ctx context.Context, a *fuse.Attr) error + func (dir *Dir) Create(ctx context.Context, req *fuse.CreateRequest, resp *fuse.CreateResponse) (fs.Node, fs.Handle, error) + func (dir *Dir) Dirent() fuse.Dirent + func (dir *Dir) FullPath() string + func (dir *Dir) Lookup(ctx context.Context, name string) (fs.Node, error) + func (dir *Dir) Mkdir(ctx context.Context, req *fuse.MkdirRequest) (fs.Node, error) + func (dir *Dir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error) + func (dir *Dir) RemotePath() string + func (dir *Dir) Remove(ctx context.Context, req *fuse.RemoveRequest) error + func (dir *Dir) Rename(ctx context.Context, req *fuse.RenameRequest, nd fs.Node) error + type File struct + Atime time.Time + Bkuptime time.Time + Chgtime time.Time + Crtime time.Time + ETag string + Flags uint32 + GID uint32 + Hash []byte + Inode uint64 + Mode os.FileMode + Mtime time.Time + Path string + Size uint64 + UID uint32 + func (f *File) Attr(ctx context.Context, a *fuse.Attr) error + func (f *File) Dirent() fuse.Dirent + func (f *File) Fsync(ctx context.Context, req *fuse.FsyncRequest) error + func (f *File) FullPath() string + func (f *File) Getattr(ctx context.Context, req *fuse.GetattrRequest, resp *fuse.GetattrResponse) error + func (f *File) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenResponse) (fs.Handle, error) + func (f *File) RemotePath() string + func (f *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *fuse.SetattrResponse) error + type FileHandle struct + func (fh *FileHandle) Flush(ctx context.Context, req *fuse.FlushRequest) error + func (fh *FileHandle) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error + func (fh *FileHandle) Release(ctx context.Context, req *fuse.ReleaseRequest) error + func (fh *FileHandle) Write(ctx context.Context, req *fuse.WriteRequest, resp *fuse.WriteResponse) error + type MinFS struct + func New(options ...func(*Config)) (*MinFS, error) + func (mfs *MinFS) Acquire(f *File) (*FileHandle, error) + func (mfs *MinFS) IsLocked(path string) bool + func (mfs *MinFS) Lock(path string) error + func (mfs *MinFS) NewCachePath() (string, error) + func (mfs *MinFS) NextSequence(tx *meta.Tx) (sequence uint64, err error) + func (mfs *MinFS) Release(fh *FileHandle) error + func (mfs *MinFS) Root() (fs.Node, error) + func (mfs *MinFS) Serve() (err error) + func (mfs *MinFS) Statfs(ctx context.Context, req *fuse.StatfsRequest, resp *fuse.StatfsResponse) error + func (mfs *MinFS) Unlock(path string) error + type MoveOperation struct + Source string + Target string + type Operation struct + Error chan error + type PutOperation struct + Length int64 + Source string + Target string + type Storer interface