sftp

package
v0.0.0-...-996fc41 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SftpOop

type SftpOop struct {
	Conn *ssh.Client
	// contains filtered or unexported fields
}

func HandleReconnect

func HandleReconnect(sftpCurrent *SftpOop, user, pass, host, port string) (*SftpOop, error)

func Init

func Init(user string, pass string, host string, port string) (*SftpOop, error)

func (*SftpOop) GetConnection

func (s *SftpOop) GetConnection(ctx context.Context) *ssh.Client

func (*SftpOop) SendLocalFileToRemote

func (s *SftpOop) SendLocalFileToRemote(ctx context.Context, localpath, remotepath string) (int, error)

func (*SftpOop) SendLocalFileToRemoteWithDelete

func (s *SftpOop) SendLocalFileToRemoteWithDelete(ctx context.Context, localpath, remotepath string) (int, error)

Jump to

Keyboard shortcuts

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