Versions in this module Expand all Collapse all v1 v1.48.1 Aug 21, 2019 Changes in this version + var ErrorBadBase32Encoding = errors.New("bad base32 filename encoding") + var ErrorBadDecryptControlChar = errors.New("bad decryption - contains control chars") + var ErrorBadDecryptUTF8 = errors.New("bad decryption - utf-8 invalid") + var ErrorBadSeek = errors.New("Seek beyond end of file") + var ErrorEncryptedBadBlock = errors.New("failed to authenticate decrypted block - bad password?") + var ErrorEncryptedBadMagic = errors.New("not an encrypted file - bad magic string") + var ErrorEncryptedFileBadHeader = errors.New("file has truncated block header") + var ErrorEncryptedFileTooShort = errors.New("file is too short to be encrypted") + var ErrorFileClosed = errors.New("file already closed") + var ErrorNotAMultipleOfBlocksize = errors.New("not a multiple of blocksize") + var ErrorNotAnEncryptedFile = errors.New("not an encrypted file - no \"" + encryptedSuffix + "\" suffix") + var ErrorTooLongAfterDecode = errors.New("too long after base32 decode") + var ErrorTooShortAfterDecode = errors.New("too short after base32 decode") + func NewFs(name, rpath string, m configmap.Mapper) (fs.Fs, error) + type Cipher interface + DecryptData func(io.ReadCloser) (io.ReadCloser, error) + DecryptDataSeek func(open OpenRangeSeek, offset, limit int64) (ReadSeekCloser, error) + DecryptDirName func(string) (string, error) + DecryptFileName func(string) (string, error) + DecryptedSize func(int64) (int64, error) + EncryptData func(io.Reader) (io.Reader, error) + EncryptDirName func(string) string + EncryptFileName func(string) string + EncryptedSize func(int64) int64 + NameEncryptionMode func() NameEncryptionMode + func NewCipher(m configmap.Mapper) (Cipher, error) + type Fs struct + func (f *Fs) About() (*fs.Usage, error) + func (f *Fs) ChangeNotify(notifyFunc func(string, fs.EntryType), pollIntervalChan <-chan time.Duration) + func (f *Fs) CleanUp() error + func (f *Fs) ComputeHash(o *Object, src fs.Object, hashType hash.Type) (hashStr string, err error) + func (f *Fs) Copy(src fs.Object, remote string) (fs.Object, error) + func (f *Fs) DecryptFileName(encryptedFileName string) (string, error) + func (f *Fs) DirCacheFlush() + func (f *Fs) DirMove(src fs.Fs, srcRemote, dstRemote string) error + func (f *Fs) EncryptFileName(fileName string) string + func (f *Fs) Features() *fs.Features + func (f *Fs) Hashes() hash.Set + func (f *Fs) List(dir string) (entries fs.DirEntries, err error) + func (f *Fs) ListR(dir string, callback fs.ListRCallback) (err error) + func (f *Fs) MergeDirs(dirs []fs.Directory) error + func (f *Fs) Mkdir(dir string) error + func (f *Fs) Move(src fs.Object, remote string) (fs.Object, error) + func (f *Fs) Name() string + func (f *Fs) NewObject(remote string) (fs.Object, error) + func (f *Fs) PublicLink(remote string) (string, error) + func (f *Fs) Purge() error + func (f *Fs) Put(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error) + func (f *Fs) PutStream(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error) + func (f *Fs) PutUnchecked(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error) + func (f *Fs) Rmdir(dir string) error + func (f *Fs) Root() string + func (f *Fs) SetWrapper(wrapper fs.Fs) + func (f *Fs) String() string + func (f *Fs) UnWrap() fs.Fs + func (f *Fs) WrapFs() fs.Fs + type NameEncryptionMode int + const NameEncryptionObfuscated + const NameEncryptionOff + const NameEncryptionStandard + func NewNameEncryptionMode(s string) (mode NameEncryptionMode, err error) + func (mode NameEncryptionMode) String() (out string) + type Object struct + func (o *Object) Fs() fs.Info + func (o *Object) GetTier() string + func (o *Object) Hash(ht hash.Type) (string, error) + func (o *Object) ID() string + func (o *Object) Open(options ...fs.OpenOption) (rc io.ReadCloser, err error) + func (o *Object) Remote() string + func (o *Object) SetTier(tier string) error + func (o *Object) Size() int64 + func (o *Object) String() string + func (o *Object) UnWrap() fs.Object + func (o *Object) Update(in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) error + type ObjectInfo struct + func (o *ObjectInfo) Fs() fs.Info + func (o *ObjectInfo) Hash(hash hash.Type) (string, error) + func (o *ObjectInfo) Remote() string + func (o *ObjectInfo) Size() int64 + type OpenRangeSeek func(offset, limit int64) (io.ReadCloser, error) + type Options struct + DirectoryNameEncryption bool + FilenameEncryption string + Password string + Password2 string + Remote string + ShowMapping bool + type ReadSeekCloser interface