cloudbackup

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: AGPL-3.0 Imports: 10 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) 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

Jump to

Keyboard shortcuts

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