Documentation ¶
Index ¶
- func NewStorageSFTP(cfg sftpmanager.Config) cloudbackup.Storager
- type StorageSFTP
- func (s *StorageSFTP) Close() (err error)
- func (s *StorageSFTP) Connect() (err error)
- func (s *StorageSFTP) Download(ctx context.Context, ppath string, w io.Writer) error
- func (s *StorageSFTP) Put(ctx context.Context, reader io.Reader, ppath string, size int64) (err error)
- func (s *StorageSFTP) Remove(ctx context.Context, ppath string) error
- func (s *StorageSFTP) RemoveDir(ctx context.Context, ppath string) error
- func (s *StorageSFTP) Restore(ctx context.Context, ppath string, destpath string, ...) error
- func (s *StorageSFTP) SetProgressor(prog notice.Progressor)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStorageSFTP ¶
func NewStorageSFTP(cfg sftpmanager.Config) cloudbackup.Storager
Types ¶
type StorageSFTP ¶
type StorageSFTP struct {
// contains filtered or unexported fields
}
func (*StorageSFTP) Close ¶
func (s *StorageSFTP) Close() (err error)
func (*StorageSFTP) Connect ¶
func (s *StorageSFTP) Connect() (err error)
func (*StorageSFTP) RemoveDir ¶
func (s *StorageSFTP) RemoveDir(ctx context.Context, ppath string) error
func (*StorageSFTP) SetProgressor ¶ added in v1.4.5
func (s *StorageSFTP) SetProgressor(prog notice.Progressor)
Click to show internal directories.
Click to hide internal directories.