Skip to content

rukavina/sftpblob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gocloud SFTP Blob

Overview

Attempt to develop blob support for SFTP protocol for gocloud framework. It registers URL scheme sftp://. Bucket urls are regular sftp urls.

Install

go get github.com/rukavina/sftpblob

Example

As an usage example please check the code in cmd/commander/main.go and build it:

cd cmd/commander
go build

Test commands

cd cmd/commander

#make sure that dir `/home/username/go-cloud/` exists

#upload via sftp
./commander sftp://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://username:[email protected]:22/home/username/go-cloud/ list test1

#make dir
./commander sftp://username:[email protected]:22/home/username/go-cloud/ mkdir testnew

#delete (empty only!)
./commander sftp://username:[email protected]:22/home/username/go-cloud/ remove gopher.png