read remote file on the net like local ones

1,115 views
Skip to first unread message

Jeremy Li

unread,
Jun 19, 2014, 5:17:23 AM6/19/14
to golan...@googlegroups.com
i want to read/write the file on the other host just like what i do to local files.
for example:
file = new File(url)
file.Read()/file.Write()

will it be supported  in  golang in the layer of abstraction of  programming language.
because if it is supported directly in the programming language, life will be better.

Dave Cheney

unread,
Jun 19, 2014, 6:10:26 AM6/19/14
to golan...@googlegroups.com
I don't recognise the mcp url scheme. Which file transfer protocol does your remote host support ? 

Jeremy Li

unread,
Jun 19, 2014, 8:40:47 PM6/19/14
to golan...@googlegroups.com
my suggestion is that we can create a protocol to access files like local ones. 
every client(host) can start to run a daemon to process file access requests. 
it's kind of another version of rpc which is only intend to file access.
and the point is that it should be supported in the layer of programming language, just like the net/rpc package.

在 2014年6月19日星期四UTC+8下午6时10分26秒,Dave Cheney写道:

Dave Cheney

unread,
Jun 19, 2014, 8:48:27 PM6/19/14
to Jeremy Li, golang-nuts
WebDAV over http{,s} ?
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/golang-nuts/obUC1G_vhOU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> golang-nuts...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Jeremy Li

unread,
Jun 19, 2014, 10:05:50 PM6/19/14
to golan...@googlegroups.com, beexp...@gmail.com
is there a way to implements WebDAV not over http and open source it?

在 2014年6月20日星期五UTC+8上午8时48分27秒,Dave Cheney写道:

andrey mirtchovski

unread,
Jun 19, 2014, 10:09:53 PM6/19/14
to Jeremy Li, golang-nuts
> my suggestion is that we can create a protocol to access files like local
> ones.
> every client(host) can start to run a daemon to process file access
> requests.
> it's kind of another version of rpc which is only intend to file access.

you're looking for either go-fuse or go9p.

Dave Cheney

unread,
Jun 19, 2014, 10:10:21 PM6/19/14
to Jeremy Li, golang-nuts
If you don't want to use http, why not sftp, then you don't need to
write a daemon, you can use the standard ssh daemon available on most
operating systems ?

Jeremy Li

unread,
Jun 19, 2014, 11:52:28 PM6/19/14
to golan...@googlegroups.com, beexp...@gmail.com
but ssh is always used in sh script.
i want to use it in my golang programs, and i want to read/write files on the other computer, keep the api syntax with consistency 
actually, i want to implements  a cloud computing framework, and if the consistent syntax  is supported, it will be easy to implements it.


在 2014年6月20日星期五UTC+8上午10时10分21秒,Dave Cheney写道:

Dave Cheney

unread,
Jun 19, 2014, 11:58:03 PM6/19/14
to Jeremy Li, golan...@googlegroups.com
Go has native packages for ssh and sftp for your client, the server runs the standard sshd daemon. 


Jeremy Li

unread,
Jun 20, 2014, 2:05:31 AM6/20/14
to golan...@googlegroups.com, beexp...@gmail.com
ok, thank you very much!

在 2014年6月20日星期五UTC+8上午11时58分03秒,Dave Cheney写道:
Reply all
Reply to author
Forward
0 new messages