sftp

package
v0.0.0-...-1d5d43e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params 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, params Params) (*SFTP, error)

func (*SFTP) Clone

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

func (*SFTP) Close

func (s *SFTP) Close() error

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) SetBackupPath

func (s *SFTP) SetBackupPath(path string)

func (*SFTP) SetRetention

func (s *SFTP) SetRetention(r Retention)

Jump to

Keyboard shortcuts

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