Documentation ¶
Index ¶
- Variables
- func Sync(option *UtilsSync, primary vfs.Filesystem, secondary ...vfs.Filesystem) error
- type ReplicationFS
- func (ctx *ReplicationFS) Lstat(name string) (fs.FileInfo, error)
- func (ctx *ReplicationFS) Mkdir(name string, perm os.FileMode) error
- func (ctx *ReplicationFS) Open(name string) (vfs.File, error)
- func (ctx *ReplicationFS) OpenFile(name string, flag int, perm os.FileMode) (vfs.File, error)
- func (ctx *ReplicationFS) PathSeparator() uint8
- func (ctx *ReplicationFS) RReadDir(path string) ([]fs.FileInfo, [][]fs.FileInfo, error)
- func (ctx *ReplicationFS) ReadDir(path string) ([]fs.FileInfo, error)
- func (ctx *ReplicationFS) Remove(name string) error
- func (ctx *ReplicationFS) Rename(oldpath string, newpath string) error
- func (ctx *ReplicationFS) Stat(name string) (fs.FileInfo, error)
- func (ctx *ReplicationFS) Symlink(oldname, newname string) error
- type UtilsSync
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPrimaryFileIsNull = errors.New("replication: primary file is null")
Functions ¶
func Sync ¶
func Sync(option *UtilsSync, primary vfs.Filesystem, secondary ...vfs.Filesystem) error
Types ¶
type ReplicationFS ¶
type ReplicationFS struct {
// contains filtered or unexported fields
}
func NewReplication ¶
func NewReplication(primary vfs.Filesystem, secondary ...vfs.Filesystem) *ReplicationFS
func (*ReplicationFS) PathSeparator ¶
func (ctx *ReplicationFS) PathSeparator() uint8
func (*ReplicationFS) ReadDir ¶
func (ctx *ReplicationFS) ReadDir(path string) ([]fs.FileInfo, error)
func (*ReplicationFS) Remove ¶
func (ctx *ReplicationFS) Remove(name string) error
func (*ReplicationFS) Rename ¶
func (ctx *ReplicationFS) Rename(oldpath string, newpath string) error
func (*ReplicationFS) Symlink ¶
func (ctx *ReplicationFS) Symlink(oldname, newname string) error
Click to show internal directories.
Click to hide internal directories.