Documentation ¶
Index ¶
- func OneWay(src, dst Target, sync bool) error
- type FilesystemTarget
- func (t *FilesystemTarget) Dir(path string) ([]*Object, error)
- func (t *FilesystemTarget) Inventory() ([]*Object, error)
- func (t *FilesystemTarget) Mkdir(path string) error
- func (t *FilesystemTarget) Move(src, dest string) error
- func (t *FilesystemTarget) ReadStream(path string) (io.ReadCloser, error)
- func (t *FilesystemTarget) Rm(path string) error
- func (t *FilesystemTarget) SetModificationTime(path string, mtime time.Time) error
- func (t *FilesystemTarget) WriteStream(path string, stream io.Reader, mode os.FileMode) error
- func (t *FilesystemTarget) WriteStreamWithModTime(path string, stream io.Reader, mode os.FileMode, modTime time.Time) error
- type FilesystemTargetConfig
- type Object
- type Target
- type WebDAVTarget
- func (t *WebDAVTarget) Dir(path string) ([]*Object, error)
- func (t *WebDAVTarget) Inventory() ([]*Object, error)
- func (t *WebDAVTarget) Mkdir(path string) error
- func (t *WebDAVTarget) Move(src, dest string) error
- func (t *WebDAVTarget) ReadStream(path string) (io.ReadCloser, error)
- func (t *WebDAVTarget) Rm(path string) error
- func (t *WebDAVTarget) SetModificationTime(path string, mtime time.Time) error
- func (t *WebDAVTarget) WriteStream(path string, rs io.Reader, _ os.FileMode) error
- func (t *WebDAVTarget) WriteStreamWithModTime(path string, rs io.Reader, _ os.FileMode, modTime time.Time) error
- type WebDAVTargetConfig
- type ZrokTarget
- func (t *ZrokTarget) Dir(path string) ([]*Object, error)
- func (t *ZrokTarget) Inventory() ([]*Object, error)
- func (t *ZrokTarget) Mkdir(path string) error
- func (t *ZrokTarget) Move(src, dest string) error
- func (t *ZrokTarget) ReadStream(path string) (io.ReadCloser, error)
- func (t *ZrokTarget) Rm(path string) error
- func (t *ZrokTarget) SetModificationTime(path string, mtime time.Time) error
- func (t *ZrokTarget) WriteStream(path string, rs io.Reader, _ os.FileMode) error
- func (t *ZrokTarget) WriteStreamWithModTime(path string, rs io.Reader, _ os.FileMode, modTime time.Time) error
- type ZrokTargetConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FilesystemTarget ¶
type FilesystemTarget struct {
// contains filtered or unexported fields
}
func NewFilesystemTarget ¶
func NewFilesystemTarget(cfg *FilesystemTargetConfig) *FilesystemTarget
func (*FilesystemTarget) Inventory ¶
func (t *FilesystemTarget) Inventory() ([]*Object, error)
func (*FilesystemTarget) Mkdir ¶
func (t *FilesystemTarget) Mkdir(path string) error
func (*FilesystemTarget) Move ¶
func (t *FilesystemTarget) Move(src, dest string) error
func (*FilesystemTarget) ReadStream ¶
func (t *FilesystemTarget) ReadStream(path string) (io.ReadCloser, error)
func (*FilesystemTarget) Rm ¶
func (t *FilesystemTarget) Rm(path string) error
func (*FilesystemTarget) SetModificationTime ¶
func (t *FilesystemTarget) SetModificationTime(path string, mtime time.Time) error
func (*FilesystemTarget) WriteStream ¶
type FilesystemTargetConfig ¶
type FilesystemTargetConfig struct {
Root string
}
type Target ¶
type Target interface { Inventory() ([]*Object, error) Dir(path string) ([]*Object, error) Mkdir(path string) error ReadStream(path string) (io.ReadCloser, error) WriteStream(path string, stream io.Reader, mode os.FileMode) error WriteStreamWithModTime(path string, stream io.Reader, mode os.FileMode, modTime time.Time) error Move(src, dest string) error Rm(path string) error SetModificationTime(path string, mtime time.Time) error }
type WebDAVTarget ¶
type WebDAVTarget struct {
// contains filtered or unexported fields
}
func NewWebDAVTarget ¶
func NewWebDAVTarget(cfg *WebDAVTargetConfig) (*WebDAVTarget, error)
func (*WebDAVTarget) Inventory ¶
func (t *WebDAVTarget) Inventory() ([]*Object, error)
func (*WebDAVTarget) Mkdir ¶
func (t *WebDAVTarget) Mkdir(path string) error
func (*WebDAVTarget) Move ¶
func (t *WebDAVTarget) Move(src, dest string) error
func (*WebDAVTarget) ReadStream ¶
func (t *WebDAVTarget) ReadStream(path string) (io.ReadCloser, error)
func (*WebDAVTarget) Rm ¶
func (t *WebDAVTarget) Rm(path string) error
func (*WebDAVTarget) SetModificationTime ¶
func (t *WebDAVTarget) SetModificationTime(path string, mtime time.Time) error
func (*WebDAVTarget) WriteStream ¶
type WebDAVTargetConfig ¶
type ZrokTarget ¶
type ZrokTarget struct {
// contains filtered or unexported fields
}
func NewZrokTarget ¶
func NewZrokTarget(cfg *ZrokTargetConfig) (*ZrokTarget, error)
func (*ZrokTarget) Inventory ¶
func (t *ZrokTarget) Inventory() ([]*Object, error)
func (*ZrokTarget) Mkdir ¶
func (t *ZrokTarget) Mkdir(path string) error
func (*ZrokTarget) Move ¶
func (t *ZrokTarget) Move(src, dest string) error
func (*ZrokTarget) ReadStream ¶
func (t *ZrokTarget) ReadStream(path string) (io.ReadCloser, error)
func (*ZrokTarget) Rm ¶
func (t *ZrokTarget) Rm(path string) error
func (*ZrokTarget) SetModificationTime ¶
func (t *ZrokTarget) SetModificationTime(path string, mtime time.Time) error
func (*ZrokTarget) WriteStream ¶
Click to show internal directories.
Click to hide internal directories.