sftp

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: MIT Imports: 9 Imported by: 1

Documentation

Overview

Package sftp provides an SFTP connection layer

Index

Constants

This section is empty.

Variables

View Source
var ErrNoHostKeyVerification = errors.New(
	`sftp: no host key verification configured: set "known_hosts" or "host_key", ` +
		`or set "insecure_ignore_host_key" to "true" to disable verification (unsafe)`)

ErrNoHostKeyVerification is returned when no host key verification method has been configured. Verifying the host key protects against man-in-the-middle attacks, so it must either be set up (with "known_hosts" or "host_key") or explicitly disabled (with "insecure_ignore_host_key").

Functions

func LoadFs

func LoadFs(access *confpar.Access, logger *slog.Logger) (afero.Fs, error)

LoadFs loads a file system from an access description

Types

type ConnectionError added in v0.8.0

type ConnectionError struct {
	Source error
}

ConnectionError is returned when a connection occurs while connecting to the SFTP server

func (ConnectionError) Error added in v0.8.0

func (err ConnectionError) Error() string

Jump to

Keyboard shortcuts

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