filesystem

package
v0.0.0-...-43f976d Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotImplemented = errors.New("method not implemented")

Functions

func DateTimeAsc

func DateTimeAsc(fi1, fi2 fsIntf.FileInfo) bool

func DateTimeDesc

func DateTimeDesc(fi1, fi2 fsIntf.FileInfo) bool

func DirsFirst

func DirsFirst(fi1, fi2 fsIntf.FileInfo) bool

func DirsLast

func DirsLast(fi1, fi2 fsIntf.FileInfo) bool

func ExtAsc

func ExtAsc(fi1, fi2 fsIntf.FileInfo) bool

func ExtDesc

func ExtDesc(fi1, fi2 fsIntf.FileInfo) bool

func NamesAsc

func NamesAsc(fi1, fi2 fsIntf.FileInfo) bool

func NamesDesc

func NamesDesc(fi1, fi2 fsIntf.FileInfo) bool

func RegisterRPCFileSystem

func RegisterRPCFileSystem(f fsIntf.FileSystem) error

func SizeAsc

func SizeAsc(fi1, fi2 fsIntf.FileInfo) bool

func SizeDesc

func SizeDesc(fi1, fi2 fsIntf.FileInfo) bool

Types

type Dir

type Dir string

A Dir implements FileSystem using the native file system restricted to a specific directory tree.

An empty Dir is treated as ".".

func (Dir) Create

func (d Dir) Create(parentId string, name string, flag int) (fsIntf.File, error)

func (Dir) Mkdir

func (d Dir) Mkdir(parentId string, name string, perm os.FileMode) (string, error)

func (Dir) Open

func (d Dir) Open(id string) (fsIntf.File, error)

func (Dir) RemoveAll

func (d Dir) RemoveAll(id string) error

func (Dir) Rename

func (d Dir) Rename(oldId, newParentId string, newName string) (string, error)

func (Dir) Stat

func (d Dir) Stat(id string) (fsIntf.FileInfo, error)

type FileInfoArray

type FileInfoArray []fsIntf.FileInfo

func (FileInfoArray) SortBy

func (arr FileInfoArray) SortBy(less ...LessFunc)

type LessFunc

type LessFunc func(fi1, fi2 fsIntf.FileInfo) bool

type RPCFile

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

func (*RPCFile) Close

func (f *RPCFile) Close(id fsIntf.FileId, _ *int) error

func (*RPCFile) Id

func (f *RPCFile) Id(id fsIntf.FileId, fId *string) error

func (*RPCFile) ParentId

func (f *RPCFile) ParentId(id fsIntf.FileId, parentId *string) error

func (*RPCFile) Read

func (f *RPCFile) Read(params fsIntf.ReadParams, retParams *fsIntf.ReadReturnParams) error

func (*RPCFile) Readdir

func (f *RPCFile) Readdir(params fsIntf.ReaddirParams, fi *[]fsIntf.FileInfoStruct) error

func (*RPCFile) Seek

func (f *RPCFile) Seek(params fsIntf.SeekParams, ret *int64) error

func (*RPCFile) Stat

func (f *RPCFile) Stat(id fsIntf.FileId, fi *fsIntf.FileInfoStruct) error

func (*RPCFile) Sync

func (f *RPCFile) Sync(id fsIntf.FileId, _ *int) error

func (*RPCFile) Write

func (f *RPCFile) Write(params fsIntf.WriteParams, n *int) error

type RPCFileCache

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

func (*RPCFileCache) Create

func (*RPCFileCache) GetBool

func (c *RPCFileCache) GetBool(params fsIntf.GetCacheValueParams, value *bool) error

func (*RPCFileCache) GetString

func (c *RPCFileCache) GetString(params fsIntf.GetCacheValueParams, value *string) error

func (*RPCFileCache) Open

func (*RPCFileCache) PutBool

func (c *RPCFileCache) PutBool(params fsIntf.PutBoolParams, _ *int) error

func (*RPCFileCache) PutString

func (c *RPCFileCache) PutString(params fsIntf.PutStringParams, _ *int) error

type RPCFileSystem

type RPCFileSystem struct {
	fsIntf.FileSystem
	// contains filtered or unexported fields
}

func (*RPCFileSystem) Create

func (fs *RPCFileSystem) Create(p fsIntf.CreateParams, id *fsIntf.FileId) error

func (*RPCFileSystem) Mkdir

func (fs *RPCFileSystem) Mkdir(p fsIntf.MkdirParams, encName *string) error

func (*RPCFileSystem) Open

func (fs *RPCFileSystem) Open(fid string, id *fsIntf.FileId) error

func (*RPCFileSystem) RemoveAll

func (fs *RPCFileSystem) RemoveAll(id string, _ *int) error

func (*RPCFileSystem) Rename

func (fs *RPCFileSystem) Rename(p fsIntf.RenameParams, encName *string) error

func (*RPCFileSystem) Stat

func (fs *RPCFileSystem) Stat(id string, fi *fsIntf.FileInfoStruct) error

Jump to

Keyboard shortcuts

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