dbxfs

package
v0.0.0-...-57e3cb4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFile            = errors.New("not a file")
	ErrNotDir             = errors.New("not a directory")
	ErrBadPath            = errors.New("bad path")
	ErrNotOpen            = errors.New("file not open")
	ErrBadOpenFileOptions = errors.New("bad open file options")
	ErrNotSupported       = errors.New("not supported")
	ErrStatUnavailable    = errors.New("stat unavailable")
	ErrBadReadWriteOffset = errors.New("bad read/write offset")
	ErrUnimplemented      = errors.New("unimplemented")
)

Functions

This section is empty.

Types

type FileHandle

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

func (*FileHandle) Chmod

func (f *FileHandle) Chmod(mode os.FileMode) error

func (*FileHandle) Close

func (f *FileHandle) Close() error

func (*FileHandle) Name

func (f *FileHandle) Name() string

func (*FileHandle) Read

func (f *FileHandle) Read(b []byte) (int, error)

func (*FileHandle) ReadAt

func (f *FileHandle) ReadAt(b []byte, off int64) (int, error)

func (*FileHandle) Readdir

func (f *FileHandle) Readdir(n int) ([]os.FileInfo, error)

func (*FileHandle) Readdirnames

func (f *FileHandle) Readdirnames(n int) ([]string, error)

func (*FileHandle) Stat

func (f *FileHandle) Stat() (os.FileInfo, error)

func (*FileHandle) Write

func (f *FileHandle) Write(b []byte) (int, error)

func (*FileHandle) WriteAt

func (f *FileHandle) WriteAt(b []byte, off int64) (int, error)

type FileStat

type FileStat struct {
	FileMetadata   *files.FileMetadata
	FolderMetadata *files.FolderMetadata
}

func (*FileStat) GetDropboxId

func (st *FileStat) GetDropboxId() string

func (*FileStat) IsDir

func (st *FileStat) IsDir() bool

func (*FileStat) ModTime

func (st *FileStat) ModTime() time.Time

func (*FileStat) Mode

func (st *FileStat) Mode() os.FileMode

func (*FileStat) Name

func (st *FileStat) Name() string

func (*FileStat) Size

func (st *FileStat) Size() int64

func (*FileStat) Sys

func (st *FileStat) Sys() interface{}

type Fs

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

func Attach

func Attach(cfg dropbox.Config) (*Fs, error)

func (*Fs) Chmod

func (fs *Fs) Chmod(fpath string, mode os.FileMode) error

func (*Fs) Close

func (fs *Fs) Close() error

func (*Fs) Create

func (fs *Fs) Create(fpath string) (*FileHandle, error)

func (*Fs) Mkdir

func (fs *Fs) Mkdir(fpath string, mode os.FileMode) error

func (*Fs) Open

func (fs *Fs) Open(fpath string) (vfs.File, error)

func (*Fs) OpenFile

func (fs *Fs) OpenFile(fpath string, flags int, perm os.FileMode) (vfs.File, error)

func (*Fs) Remove

func (fs *Fs) Remove(fpath string) error

func (*Fs) Rename

func (fs *Fs) Rename(from, to string) error

func (*Fs) Stat

func (fs *Fs) Stat(fpath string) (os.FileInfo, error)

Jump to

Keyboard shortcuts

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