-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
Make use of SFTP API for incus file
operations
#1176
Comments
Can I work on this? If that is okay, should the change be done in client/incus_instances and replace the REST API part of the functions CreateInstanceFile..etc with the SFTP part? or directly in the cmd/incus/files? I believe the first but wanted to verify. |
Assigned it to you! The change should be done directly in |
Hey @HassanAlsamahi, how are things going with this one? |
Hey @stgraber . I made some progress but I didn't push a commit yet as I got busy and some personal stuff. I'll push a commit very soon for one of the operations, followed by the other operations. Thanks for asking and sorry for the delay. |
No worries, thanks for the update! |
@HassanAlsamahi any luck with the other ones? |
Hey @stgraber . Sorry I was on vacation in October totally logged off. Please check the latest PR and let me know if anything is needed regarding it. |
Thanks! |
Currently all the
incus file
operations are done through the individual REST API endpoints, which Incus then internally converts to SFTP interactions. This isn't exactly the most flexible or efficient.It'd be good to change all the
incus file
operations to instead useGetInstanceFileSFTP
to fetch a Go SFTP client and then perform the relevant filesystem operations through it.The text was updated successfully, but these errors were encountered: