ftp

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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FTP

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

func Init

func Init(name string, params Params) (s *FTP, err error)

func (*FTP) Clone

func (f *FTP) Clone() interfaces.Storage

func (*FTP) Close

func (f *FTP) Close() error

func (*FTP) DeleteOldBackups

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

func (*FTP) DeliveryBackup

func (f *FTP) DeliveryBackup(logCh chan logger.LogRecord, jobName, tmpBackupFile, ofs string, bakType string) error

func (*FTP) GetFileReader

func (f *FTP) GetFileReader(ofsPath string) (io.Reader, error)

func (*FTP) GetName

func (f *FTP) GetName() string

func (*FTP) IsLocal

func (f *FTP) IsLocal() int

func (*FTP) SetBackupPath

func (f *FTP) SetBackupPath(path string)

func (*FTP) SetRetention

func (f *FTP) SetRetention(r Retention)

type Params

type Params struct {
	Host              string
	User              string
	Password          string
	Port              int
	ConnectCount      int
	ConnectionTimeout time.Duration
}

Jump to

Keyboard shortcuts

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