cloudbackup

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

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) Download added in v1.4.3

func (s *StorageSFTP) Download(ctx context.Context, ppath string, w io.Writer) error

func (*StorageSFTP) Put

func (s *StorageSFTP) Put(ctx context.Context, reader io.Reader, ppath string, size int64) (err error)

func (*StorageSFTP) Remove

func (s *StorageSFTP) Remove(ctx context.Context, ppath string) error

func (*StorageSFTP) RemoveDir

func (s *StorageSFTP) RemoveDir(ctx context.Context, ppath string) error

func (*StorageSFTP) Restore added in v1.4.3

func (s *StorageSFTP) Restore(ctx context.Context, ppath string, destpath string, callback func(from, to string)) error

func (*StorageSFTP) SetProgressor added in v1.4.5

func (s *StorageSFTP) SetProgressor(prog notice.Progressor)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL