Versions in this module Expand all Collapse all v0 v0.1.0 Oct 11, 2020 Changes in this version + func FileExists(filename string) bool + func FolderExists(filename string) bool + func IsNotFoundError(err error) bool + type FileGetOptions struct + VersionID string + type FilePutOptions struct + ContentType string + Progress io.Reader + type FileStatOptions struct + type FileSystem interface + FileExists func(folder, name string) (bool, error) + FileGet func(folder, name string, opts FileGetOptions) ([]byte, error) + FileOpenRead func(folder, name string, opts FileGetOptions) (io.ReadCloser, error) + FilePut func(folder, name string, data []byte, opts FilePutOptions) error + FileRead func(folder, name string, w io.Writer, size int64, opts FileGetOptions) error + FileStat func(folder, name string, opts FileStatOptions) (os.FileInfo, error) + FileWrite func(folder, name string, r io.Reader, size int64, opts FilePutOptions) error + FolderCreate func(folder string, opts FolderCreateOptions) error + FolderExists func(folder string) (bool, error) + Protocol func() string + String func() string + type FolderCreateOptions struct + ObjectLocking bool + type GitFs struct + func NewGitFs(basepath string, logger *logging.Logger) (*GitFs, error) + func (fs *GitFs) Commit(msg, name, email string) error + func (fs *GitFs) FileExists(folder, name string) (bool, error) + func (fs *GitFs) FileGet(folder, name string, opts FileGetOptions) ([]byte, error) + func (fs *GitFs) FileOpenRead(folder, name string, opts FileGetOptions) (io.ReadCloser, error) + func (fs *GitFs) FilePut(folder, name string, data []byte, opts FilePutOptions) error + func (fs *GitFs) FileRead(folder, name string, w io.Writer, size int64, opts FileGetOptions) error + func (fs *GitFs) FileStat(folder, name string, opts FileStatOptions) (os.FileInfo, error) + func (fs *GitFs) FileWrite(folder, name string, r io.Reader, size int64, opts FilePutOptions) error + func (fs *GitFs) FolderCreate(folder string, opts FolderCreateOptions) error + func (fs *GitFs) FolderExists(folder string) (bool, error) + func (fs *GitFs) Open() error + func (fs *GitFs) String() string + type LocalFs struct + func NewLocalFs(basepath string, logger *logging.Logger) (*LocalFs, error) + func (fs *LocalFs) FileExists(folder, name string) (bool, error) + func (fs *LocalFs) FileGet(folder, name string, opts FileGetOptions) ([]byte, error) + func (fs *LocalFs) FileOpenRead(folder, name string, opts FileGetOptions) (io.ReadCloser, error) + func (fs *LocalFs) FilePut(folder, name string, data []byte, opts FilePutOptions) error + func (fs *LocalFs) FileRead(folder, name string, w io.Writer, size int64, opts FileGetOptions) error + func (fs *LocalFs) FileStat(folder, name string, opts FileStatOptions) (os.FileInfo, error) + func (fs *LocalFs) FileWrite(folder, name string, r io.Reader, size int64, opts FilePutOptions) error + func (fs *LocalFs) FolderCreate(folder string, opts FolderCreateOptions) error + func (fs *LocalFs) FolderExists(folder string) (bool, error) + func (fs *LocalFs) Protocol() string + func (fs *LocalFs) String() string + type NotFoundError struct + func (nf *NotFoundError) Error() string + type S3FileInfo struct + func NewS3FileInfo(bucket, name string, info minio.ObjectInfo) *S3FileInfo + func (sfi *S3FileInfo) IsDir() bool + func (sfi *S3FileInfo) ModTime() time.Time + func (sfi *S3FileInfo) Mode() os.FileMode + func (sfi *S3FileInfo) Name() string + func (sfi *S3FileInfo) Size() int64 + func (sfi *S3FileInfo) Sys() interface{} + type S3Fs struct + func NewS3Fs(Endpoint string, AccessKeyId string, SecretAccessKey string, UseSSL bool) (*S3Fs, error) + func (fs *S3Fs) FileExists(folder, name string) (bool, error) + func (fs *S3Fs) FileGet(folder, name string, opts FileGetOptions) ([]byte, error) + func (fs *S3Fs) FileOpenRead(folder, name string, opts FileGetOptions) (io.ReadCloser, error) + func (fs *S3Fs) FilePut(folder, name string, data []byte, opts FilePutOptions) error + func (fs *S3Fs) FileRead(folder, name string, w io.Writer, size int64, opts FileGetOptions) error + func (fs *S3Fs) FileStat(folder, name string, opts FileStatOptions) (os.FileInfo, error) + func (fs *S3Fs) FileWrite(folder, name string, r io.Reader, size int64, opts FilePutOptions) error + func (fs *S3Fs) FolderCreate(folder string, opts FolderCreateOptions) error + func (fs *S3Fs) FolderExists(folder string) (bool, error) + func (fs *S3Fs) Protocol() string + func (fs *S3Fs) String() string Other modules containing this package github.com/je4/zsync/v2