sftp_handler

package
v0.0.0-...-d053c91 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SFTPClient

type SFTPClient struct {
	Remote *SFTPRemote
	Conn   *ssh.Client
	Client *sftp.Client
}

func SFTPGetClient

func SFTPGetClient(signingConf certs.SigningConfig, homeDir, remoteString, defaultPath string) (*SFTPClient, error)

func (*SFTPClient) Close

func (s *SFTPClient) Close() error

type SFTPRemote

type SFTPRemote struct {
	SSHConfig ssh.ClientConfig
	Host      string
	Port      string
	Path      string
}

func ParseSFTPRemote

func ParseSFTPRemote(signingConf certs.SigningConfig, homeDir, remote, defaultPath string) (*SFTPRemote, error)

Jump to

Keyboard shortcuts

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