librarian v0.2.0 SSH.SCP.Fetch View Source

implements the data transactions involved in streaming SCP file transfer from the destination server.

Concretely, the following functions are implemented:

Link to this section Summary

Functions

initializes the fetching procedure for SCP

responds to information returned on the stdout stream by the scp -f command

responds to information returned on the stderr stream by the scp -f command

handles the remote scp agent not calling back

Link to this section Functions

Specs

init(SSH.Stream.t(), any()) :: {:ok, SSH.Stream.t()} | {:error, String.t()}

initializes the fetching procedure for SCP

Link to this function

on_stderr(string, stream)

View Source

Specs

on_stderr(binary(), SSH.Stream.t()) :: {[term()], SSH.Stream.t()}

responds to information returned on the stdout stream by the scp -f command

Link to this function

on_stdout(value, stream)

View Source

Specs

on_stdout(binary(), SSH.Stream.t()) :: {[], SSH.Stream.t()}

responds to information returned on the stderr stream by the scp -f command

Specs

on_timeout(SSH.Stream.t()) :: {[], SSH.Stream.t()}

handles the remote scp agent not calling back