sftp

package
v0.0.0-...-dd1a141 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor interface {
	Connection(con *ssh.Client) (*sftp.Client, error)
	GetRootPath(conn *sftp.Client) error
}

type FtpAdapter

type FtpAdapter struct {
	// contains filtered or unexported fields
}

func NewFtp

func NewFtp(console *zap.Logger, rabbitAdapter queue.Executor) *FtpAdapter

func (*FtpAdapter) Connection

func (s *FtpAdapter) Connection(con *ssh.Client) (*sftp.Client, error)

func (*FtpAdapter) CreateDir

func (s *FtpAdapter) CreateDir(conn *sftp.Client, root string) error

func (*FtpAdapter) CreateFile

func (s *FtpAdapter) CreateFile(conn *sftp.Client) error

func (*FtpAdapter) GetFiles

func (s *FtpAdapter) GetFiles(conn *sftp.Client) error

func (*FtpAdapter) GetRootPath

func (s *FtpAdapter) GetRootPath(conn *sftp.Client) error

Jump to

Keyboard shortcuts

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