sftp

package
v0.0.0-...-c600a59 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts struct {
	User           string
	Host           string
	Port           int
	Password       string
	KeyFile        string
	ConnectTimeout time.Duration
}

type SFTP

type SFTP struct {
	Retention
	// contains filtered or unexported fields
}

func Init

func Init(name string, opts Opts, rl int64) (*SFTP, error)

func (*SFTP) Clone

func (s *SFTP) Clone() interfaces.Storage

func (*SFTP) Close

func (s *SFTP) Close() error

func (*SFTP) Configure

func (s *SFTP) Configure(p Params)

func (*SFTP) DeleteOldBackups

func (s *SFTP) DeleteOldBackups(logCh chan logger.LogRecord, ofsPart string, job interfaces.Job, full bool) error

func (*SFTP) DeliveryBackup

func (s *SFTP) DeliveryBackup(logCh chan logger.LogRecord, jobName, tmpBackupFile, ofs, bakType string) (err error)

func (*SFTP) GetFileReader

func (s *SFTP) GetFileReader(ofsPath string) (io.Reader, error)

func (*SFTP) GetName

func (s *SFTP) GetName() string

func (*SFTP) IsLocal

func (s *SFTP) IsLocal() int

func (*SFTP) ListBackups

func (s *SFTP) ListBackups(filePath string) (fl []string, err error)

Jump to

Keyboard shortcuts

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