pallet.ssh.file-upload.sftp-upload documentation

Implementation of file upload using SFTP.

This assumes that chown/chgrp/chmod are all going to work.

->SftpUpload

fn

[upload-root]

Positional factory function for class pallet.ssh.fileupload.sftpupload.SftpUpload.

map->SftpUpload

fn

[m__5665__auto__]

Factory function for class pallet.ssh.fileupload.sftpupload.SftpUpload, taking a map of keywords to field values.

md5-digest-input-stream

fn

[str]

Return a tuple containing a MessageDigest and a DigestInputStream.

sftp-ensure-dir

fn

[connection target-path]

Ensure directory exists

sftp-remote-md5

fn

[connection md5-path]

Return the md5 for a remote file.

sftp-upload

fn

[{:keys [upload-root], :as options}]

Create an instance of the SFTP upload strategy.

sftp-upload-file

fn

[connection local-path target-path]

Upload a file via SFTP

upload-dir

fn

[upload-root username]

Return the upload directory for username. A :home at the start of the upload directory will be replaced by the user's home directory.