Attempt to develop blob support for SFTP protocol for gocloud framework.
It registers URL scheme sftp:https://
. Bucket urls are regular sftp urls.
go get github.com/rukavina/sftpblob
As an usage example please check the code in cmd/commander/main.go
and build it:
cd cmd/commander
go build
cd cmd/commander
#make sure that dir `/home/username/go-cloud/` exists
#upload via sftp
./commander sftp:https://username:[email protected]:22/home/username/go-cloud/ upload gopher.png
#list via sftp - make sure dir `test1` exists with some dummy content
./commander sftp:https://username:[email protected]:22/home/username/go-cloud/ list test1
#make dir
./commander sftp:https://username:[email protected]:22/home/username/go-cloud/ mkdir testnew
#delete (empty only!)
./commander sftp:https://username:[email protected]:22/home/username/go-cloud/ remove gopher.png