spiegel_podman/vendor/github.com/pkg/sftp
renovate[bot] aa6086ceb0
Update common, image, and storage deps to b3642f3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-07-19 01:57:22 +00:00
..
internal/encoding/ssh/filexfer vendor: update c/{common,storage} 2025-03-26 12:11:11 +01:00
.gitignore podman ssh work, using new c/common interface 2022-08-09 14:00:58 -04:00
allocator.go podman ssh work, using new c/common interface 2022-08-09 14:00:58 -04:00
attrs.go Update common, image, and storage deps to b3642f3 2026-07-19 01:57:22 +00:00
attrs_stubs.go add --module flag 2023-08-16 14:32:35 +02:00
attrs_unix.go vendor latest c/{buildah,common,image,storage} 2024-11-07 10:39:15 +01:00
client.go Update common, image, and storage deps to b3642f3 2026-07-19 01:57:22 +00:00
conn.go Remove hardcoded refs from ociartifact code 2025-11-13 22:57:21 +01:00
CONTRIBUTORS podman ssh work, using new c/common interface 2022-08-09 14:00:58 -04:00
debug.go Update common, image, and storage deps to b3642f3 2026-07-19 01:57:22 +00:00
errno_plan9.go vendor latest c/{buildah,common,image,storage} 2024-11-07 10:39:15 +01:00
errno_posix.go vendor latest c/{buildah,common,image,storage} 2024-11-07 10:39:15 +01:00
fuzz.go add --module flag 2023-08-16 14:32:35 +02:00
LICENSE podman ssh work, using new c/common interface 2022-08-09 14:00:58 -04:00
ls_formatting.go add --module flag 2023-08-16 14:32:35 +02:00
ls_plan9.go add --module flag 2023-08-16 14:32:35 +02:00
ls_stub.go add --module flag 2023-08-16 14:32:35 +02:00
ls_unix.go vendor latest c/{buildah,common,image,storage} 2024-11-07 10:39:15 +01:00
Makefile podman ssh work, using new c/common interface 2022-08-09 14:00:58 -04:00
match.go podman ssh work, using new c/common interface 2022-08-09 14:00:58 -04:00
packet-manager.go Update common, image, and storage deps to b3642f3 2026-07-19 01:57:22 +00:00
packet-typing.go add --module flag 2023-08-16 14:32:35 +02:00
packet.go Update common, image, and storage deps to b3642f3 2026-07-19 01:57:22 +00:00
pool.go podman ssh work, using new c/common interface 2022-08-09 14:00:58 -04:00
README.md podman ssh work, using new c/common interface 2022-08-09 14:00:58 -04:00
release.go Update common, image, and storage deps to b3642f3 2026-07-19 01:57:22 +00:00
request-attrs.go vendor latest c/{buildah,common,image,storage} 2024-11-07 10:39:15 +01:00
request-errors.go podman ssh work, using new c/common interface 2022-08-09 14:00:58 -04:00
request-example.go Update common, image, and storage deps to b3642f3 2026-07-19 01:57:22 +00:00
request-interfaces.go vendor latest c/{buildah,common,image,storage} 2024-11-07 10:39:15 +01:00
request-plan9.go Update common, image, and storage deps to b3642f3 2026-07-19 01:57:22 +00:00
request-readme.md add --module flag 2023-08-16 14:32:35 +02:00
request-server.go Remove hardcoded refs from ociartifact code 2025-11-13 22:57:21 +01:00
request-unix.go Update common, image, and storage deps to b3642f3 2026-07-19 01:57:22 +00:00
request.go Update common, image, and storage deps to b3642f3 2026-07-19 01:57:22 +00:00
request_windows.go Update common, image, and storage deps to b3642f3 2026-07-19 01:57:22 +00:00
SECURITY.md Remove hardcoded refs from ociartifact code 2025-11-13 22:57:21 +01:00
server.go Update common, image, and storage deps to b3642f3 2026-07-19 01:57:22 +00:00
server_plan9.go add --module flag 2023-08-16 14:32:35 +02:00
server_posix.go vendor: update c/common 2025-03-20 13:37:19 +01:00
server_statvfs_darwin.go podman ssh work, using new c/common interface 2022-08-09 14:00:58 -04:00
server_statvfs_impl.go add --module flag 2023-08-16 14:32:35 +02:00
server_statvfs_linux.go add --module flag 2023-08-16 14:32:35 +02:00
server_statvfs_plan9.go podman ssh work, using new c/common interface 2022-08-09 14:00:58 -04:00
server_statvfs_stubs.go add --module flag 2023-08-16 14:32:35 +02:00
server_unix.go add --module flag 2023-08-16 14:32:35 +02:00
server_windows.go Update common, image, and storage deps to b3642f3 2026-07-19 01:57:22 +00:00
sftp.go Remove hardcoded refs from ociartifact code 2025-11-13 22:57:21 +01:00
stat.go vendor latest c/{buildah,common,image,storage} 2024-11-07 10:39:15 +01:00

sftp

The sftp package provides support for file system operations on remote ssh servers using the SFTP subsystem. It also implements an SFTP server for serving files from the filesystem.

CI Status Go Reference

usage and examples

See https://pkg.go.dev/github.com/pkg/sftp for examples and usage.

The basic operation of the package mirrors the facilities of the os package.

The Walker interface for directory traversal is heavily inspired by Keith Rarick's fs package.

roadmap

  • There is way too much duplication in the Client methods. If there was an unmarshal(interface{}) method this would reduce a heap of the duplication.

contributing

We welcome pull requests, bug fixes and issue reports.

Before proposing a large change, first please discuss your change by raising an issue.

For API/code bugs, please include a small, self contained code example to reproduce the issue. For pull requests, remember test coverage.

We try to handle issues and pull requests with a 0 open philosophy. That means we will try to address the submission as soon as possible and will work toward a resolution. If progress can no longer be made (eg. unreproducible bug) or stops (eg. unresponsive submitter), we will close the bug.

Thanks.