package
0.0.0-20250306163500-5f3bb2705e1f
Repository: https://github.com/versoriumx/teleport.git
Documentation: pkg.go.dev

# Functions

CreateDownloadConfig returns a Config ready to download files over SFTP.
CreateHTTPDownloadConfig returns a Config ready to download a file from over SFTP and write it to a HTTP response.
CreateHTTPUploadConfig returns a Config ready to upload a file from a HTTP request over SFTP.
CreateUploadConfig returns a Config ready to upload files over SFTP.
NewProgressBar returns a new progress bar that writes to writer.
ParseDestination takes a string representing a remote resource for SFTP to download/upload in the form "[user@]host:[path]" and parses it into a structured form.

# Constants

FileTransferDstPath is the dstPath (location) for the requested file transfer.
FileTransferRequestID is an optional parameter id of an file transfer request that has gone through an approval process during a moderated session to allow a file transfer scp command to be executed used as a value in the file transfer context and env var for exec session.
ModeratedSessionID is an optional parameter sent during SCP requests to specify which moderated session to check for valid FileTransferRequests used as a value in the file transfer context and env var for exec session.

# Structs

Config describes the settings of a file transfer.
Destination is a remote SFTP destination to copy to or from.
HTTPTransferRequest describes file transfer request over HTTP.
Options control aspects of a file transfer.

# Interfaces

FileSystem describes file operations to be done either locally or over SFTP.