Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SFTP Backend #16

Merged
merged 8 commits into from
Sep 20, 2019
Merged

SFTP Backend #16

merged 8 commits into from
Sep 20, 2019

Conversation

mjgarton
Copy link
Contributor

This is the initial implementation of an SFTP backend for straw.

This is the initial implementation of an SFTP backend for straw.
Copy link
Contributor

@johanbrandhorst johanbrandhorst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to see it's possible to write an in-memory SFTP server nowadays - I remember testing this with a separate docker container with manual key authentication which was an absolute nightmare to get right. This is so much nicer!

Also the server package really should be a standalone thing, I don't know if there is one like it?

straw_sftp.go Show resolved Hide resolved
straw_sftp.go Show resolved Hide resolved
straw_test.go Outdated Show resolved Hide resolved
straw_test.go Outdated Show resolved Hide resolved
straw_test.go Outdated Show resolved Hide resolved
straw_test.go Outdated Show resolved Hide resolved
straw_test.go Outdated Show resolved Hide resolved
Mention sftp in the README
This reinstates the logging test wrapper for the sftp tests to make it
match all of the others.  This was removed while debugging something and
I forgot to put it back.
Use log.Writer() for output, instead of our `debugStream` variable.
Use idiomatic logging in the sftp test code.
Use log instead of fmt for logging.
Remove comments in the sftp server code that were left in after copying
from an example.  The comments removed serve mostly to explain how the
sftp server library code should be used, we don't need to explain that
here.
@mjgarton mjgarton merged commit a771324 into master Sep 20, 2019
@mjgarton mjgarton deleted the sftp branch September 20, 2019 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants