Skip to content

common: add ssh.ExecWithOutput to allow streaming output#865

Open
danishprakash wants to merge 1 commit into
containers:mainfrom
danishprakash:ssh-execwithoutput
Open

common: add ssh.ExecWithOutput to allow streaming output#865
danishprakash wants to merge 1 commit into
containers:mainfrom
danishprakash:ssh-execwithoutput

Conversation

@danishprakash
Copy link
Copy Markdown
Member

Follow-up to 2681204 that added ExecWithInput, allowing executing commands over SSH while passing an optional input reader. For cases where remote > local output needs to be streamed, add a similar ExecWithOutput that returns a ReadCloser.

Follow-up to 2681204 that added ExecWithInput allowing executing
commands over ssh while passing an optional input reader. For cases
where remote > local output needs to be streamed, add a similar
ExecWithOutput that returns a ReadCloser.

Signed-off-by: Danish Prakash <contact@danishpraka.sh>
@github-actions github-actions Bot added the common Related to "common" package label May 21, 2026
@mtrmac
Copy link
Copy Markdown
Contributor

mtrmac commented May 25, 2026

Thanks! (I didn’t read the code ~at all.) Is there an expected user in the Podman ecosystem?

@danishprakash
Copy link
Copy Markdown
Member Author

Ah, yes, I should've mentioned this, but this is a requirement for implementing support for containers/podman#28321. For supporting *-dir formats between remote to local/remote ie "save image on remote host and stream it back". I'm yet to raise the PR on podman, which uses this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common Related to "common" package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants