Dave Cheney
5e9ad277fc
Use pkg/errors for error handling ( #101 )
2016-05-19 15:16:48 +10:00
Mark Sheahan
7e2e721fdf
use ssh_FXP_STAT for Stat(); previously Stat() and Lstat() were both Lstat()
2016-04-26 12:07:21 -07:00
Matt Layher
051287be6d
*: remove all named and naked returns
2016-01-07 15:56:04 -05:00
Matt Layher
9374ae613d
*: golint: add and fix up comments on exported types
2016-01-07 15:16:34 -05:00
Matt Layher
b348482b1a
*: golint (part 1)
2016-01-07 12:10:24 -05:00
Matthew Sykes
f5afc8315a
Add Getwd to client
2015-12-22 09:04:46 -05:00
Mark Sheahan
bce43f23ac
Address review comments; alter server test to allow the user / group words to be different
2015-09-07 22:50:46 -07:00
Mark Sheahan
cbd08aeb80
implement setstat & fsetstat
2015-09-07 02:13:07 -07:00
Mark Sheahan
d80ae36051
rmdir and symlink packet handling
2015-09-07 01:05:16 -07:00
Mark Sheahan
7bb2083ca9
Address review comments; about to change decodePacket()
2015-09-06 23:55:15 -07:00
Mark Sheahan
0d8e136458
removing sftp server to client layer; using straight os.* calls
2015-09-06 19:36:47 -07:00
Mark Sheahan
4325c3654b
fix format of 'name' packets (shortname, longname, attrs), add Stat
2015-08-05 12:57:28 -07:00
Mark Sheahan
2f3ef8b897
Merge branch 'master' into server
2015-08-04 21:11:01 -07:00
Mark Sheahan
0f2bc1aa17
server is passing the client integration tests now. I don't understand the ATTRs field, it has a name in it.
2015-07-31 23:09:51 -07:00
Mark Sheahan
435f753792
readdir, rename, remove
2015-07-31 15:46:13 -07:00
Mark Sheahan
bf6b5bce28
fstat
2015-07-30 09:21:59 -07:00
Mark Sheahan
c9cee8ac6f
implement write
2015-07-29 17:37:58 -07:00
Mark Sheahan
2888b4a6b1
implement read
2015-07-29 17:24:24 -07:00
Mark Sheahan
058e1bee58
open & close
2015-07-26 01:32:19 -07:00
Mark Sheahan
91d0c9e68a
mkdir
2015-07-25 19:07:33 -07:00
Mark Sheahan
5b6348f034
version, lstat
2015-07-25 01:19:29 -07:00
Dave Cheney
c020667ac1
Make c.sendRequest concurrent
...
This is an attempt to permit overlapping requests.
For each request sent, we spin off a goroutine to send the request for us
then handle _a_ response. That goroutine will try to dispatch the request
to the original sender. As every request is initiated from the client, there
will always be a matching number of replies from the server so eventally
every worker goroutine will process a request and exit.
2015-05-23 22:51:29 +10:00
Dave Cheney
50631306d7
Push c.mu.Lock/Unlock down to sendRequest
...
Also includes gofmt cleanups
2015-05-23 17:10:22 +10:00
Maximilian Pachl
0b805e96f9
added statvfs@openssh.com extension request
2015-05-15 20:37:52 +02:00
Alexander Neumann
29ed2c7341
Run gofmt
2014-10-09 21:01:38 +02:00
Dave Cheney
cbcfa1f2b9
removed unused field on fxpMkdir
...
Fixes #14 compatability issues with older sftp servers.
2014-09-28 13:02:29 +10:00
Dave Cheney
ea8e50a388
Remove unused field in fxpOpenPacket
...
Update #14
2014-09-28 13:01:15 +10:00
Dave Cheney
5f305f8c6b
Fix missing Id field in fxpRename
...
Fixes #20
2014-09-28 12:41:49 +10:00
Dave Cheney
11195960a5
Fix type that transposed capacity into length,
...
Updates #19
2014-09-28 12:39:40 +10:00
Matthieu Rakotojaona
6c93917172
Manually marshal readlink packet
2014-09-28 03:57:44 +02:00
Matthieu Rakotojaona
c01839afa0
Manually marshal packets for more speed
2014-09-27 14:29:57 +02:00
Claudio Felber
119022645a
Fixed an error in marshalUint64() that resulted in incorrect marshalling of values >= 2^24
2013-12-11 00:14:59 +01:00
Dave Cheney
69fafb0562
Fixed attr walking, readdir now works!
2013-11-05 22:11:34 +11:00
Dave Cheney
aa9d9e3605
readdir isnt reading dirs properly
2013-11-05 17:33:47 +11:00
Dave Cheney
6ce8872642
Added recvPacket
2013-11-05 14:36:38 +11:00
Dave Cheney
9187a3b3b2
adedd string unmarshal
2013-11-05 12:31:20 +11:00
Dave Cheney
30b997f450
added unmarhshal for uint32/64 yptes
2013-11-05 12:23:48 +11:00
Dave Cheney
049a0ff391
implement rudamentary reflect based marshalling
2013-11-05 12:03:58 +11:00
Dave Cheney
b17decee5f
added generic marshal
2013-11-05 11:36:47 +11:00
Dave Cheney
fbcab0566f
Added initial message tests
2013-11-05 11:25:17 +11:00