Documentation ¶
Overview ¶
Package xfer contains functions for secure file stransfer
Index ¶
- Constants
- func DownloadSftpFile(uri string, privateKeys map[string]string, dstFile *os.File) error
- func GetFileBytes(uri string, certPath string, privateKeys map[string]string) ([]byte, error)
- func GetHttpReadCloser(uri string, scheme string, certDir string) (io.ReadCloser, error)
- func GetS3ReadCloser(uri string) (io.ReadCloser, error)
- func NewSshClientConfig(user string, privateKeyPath string, privateKeyPassword string) (*ssh.ClientConfig, error)
- func UploadS3File(srcPath string, u *url.URL) error
- func UploadSftpFile(srcPath string, uri string, privateKeys map[string]string) error
- type ParsedSftpUri
- type S3ConfigStatus
Constants ¶
View Source
const DefaultSshPort int = 22
View Source
const UriSchemeFile string = "file"
View Source
const UriSchemeHttp string = "http"
View Source
const UriSchemeHttps string = "https"
View Source
const UriSchemeS3 string = "s3"
View Source
const UriSchemeSftp string = "sftp"
Variables ¶
This section is empty.
Functions ¶
func DownloadSftpFile ¶
func GetFileBytes ¶
func GetHttpReadCloser ¶
func GetS3ReadCloser ¶ added in v1.1.19
func GetS3ReadCloser(uri string) (io.ReadCloser, error)
func NewSshClientConfig ¶
Types ¶
type ParsedSftpUri ¶
type S3ConfigStatus ¶ added in v1.1.20
func GetS3ConfigStatus ¶ added in v1.1.20
func GetS3ConfigStatus(ctx context.Context) *S3ConfigStatus
func (*S3ConfigStatus) String ¶ added in v1.1.20
func (st *S3ConfigStatus) String() string
Click to show internal directories.
Click to hide internal directories.