Jeromy
206739d10c
allow channel marshaler to return errors from cmds.Response
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-09-04 14:12:19 -07:00
Jeromy
8d6fa2ede7
dont put newlines in refs json output
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-08-13 11:08:10 -07:00
gatesvp
8fe7d2f571
Fix refs -r -u for #1211
...
License: MIT
Signed-off-by: Gaetan Voyer-Perrault <gatesvp@gmail.com>
2015-07-28 06:14:20 -07:00
Jeromy
bb3a75aa08
remove context from context
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-07-20 20:53:06 -07:00
rht
f239a38fbb
golint on core/commands
2015-06-03 18:44:28 +07:00
Jeromy
ef294431d4
move util.Key into its own package under blocks
2015-06-01 16:10:08 -07:00
rht
3547f7ae33
Replace 'var * bytes.Buffer' with '\1 := new(bytes.Buffer)'
2015-05-26 23:18:04 +07:00
Jeromy
002cf5128e
fix silent refs failure
2015-05-20 09:46:22 -07:00
Henry
f640ba0089
core: add context.Context param to core.Resolve()
...
commands/object: remove objectData() and objectLinks() helpers
resolver: added context parameters
sharness: $HASH carried the \r from the http protocol with
sharness: write curl output to individual files
http gw: break PUT handler until PR#1191
2015-05-08 03:14:32 +02:00
gatesvp
31ff954539
Move IPNS resolutions into the core library
...
Move IPNS resolutions into the core library via the pathresolver.go
file. Fix the CLI commands to leverage this core component.
2015-04-20 01:04:30 -07:00
Ho-Sheng Hsiao
bf22aeec0a
Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs
...
- Modified Godeps/Godeps.json by hand
- [TEST] Updated welcome docs hash to sharness
- [TEST] Updated contact doc
- [TEST] disabled breaking test (t0080-repo refs local)
2015-03-31 12:52:25 -07:00
Jeromy
13c489eca1
fix context respect through fuse reading
2015-03-24 12:23:01 -07:00
Henry
92d08db7a5
rewrote import paths of go.net/context to use golang.org/x/context
...
- updated go-ctxgroup and goprocess
ctxgroup: AddChildGroup was changed to AddChild. Used in two files:
- p2p/net/mock/mock_net.go
- routing/dht/dht.go
- updated context from hg repo to git
prev. commit in hg was ad01a6fcc8a19d3a4478c836895ffe883bd2ceab. (context: make parentCancelCtx iterative)
represents commit 84f8955a887232b6308d79c68b8db44f64df455c in git repo
- updated context to master (b6fdb7d8a4ccefede406f8fe0f017fb58265054c)
Aaron Jacobs (2):
net/context: Don't accept a context in the DoSomethingSlow example.
context: Be clear that users must cancel the result of WithCancel.
Andrew Gerrand (1):
go.net: use golang.org/x/... import paths
Bryan C. Mills (1):
net/context: Don't leak goroutines in Done example.
Damien Neil (1):
context: fix removal of cancelled timer contexts from parent
David Symonds (2):
context: Fix WithValue example code.
net: add import comments.
Sameer Ajmani (1):
context: fix TestAllocs to account for ints in interfaces
2015-02-25 11:58:19 +01:00
Jeromy
3cda8ca685
teach ipfs refs -r how to use GetBlocks
2015-02-19 03:21:55 +00:00
Juan Batiz-Benet
58f39687cf
logs: removed all log.Errors unhelpful to users
...
Let's save log.Error for things the user can take action on.
Moved all our diagnostics to log.Debug. We can ideally reduce them
even further.
2015-02-03 01:06:07 -08:00
Jeromy
abb3c9c9c4
implement path type
2015-01-29 17:51:08 +00:00
Brian Tiger Chow
be41444a9e
provide simple wrapper methods for AllKeysRange
...
@jbenet @whyrusleeping
was the 1<<16 intentional? replaced the raw methods with wrappers.
2015-01-24 01:32:28 -08:00
Matt Bell
7b4de230eb
commands: Refactored Command#Run function signature to (req Request, res Response)
2015-01-23 18:29:29 -08:00
Matt Bell
86bb8ca7a7
core/commands: Enabled stdin for various command arguments
2015-01-13 22:51:11 -08:00
Juan Batiz-Benet
374a75b612
refs: tie the contexts together
2015-01-11 20:52:33 -08:00
Juan Batiz-Benet
92e8a7bcd5
updated datastore for proper query handling
...
Queries now can be cancelled and the resources collected
2015-01-11 20:52:33 -08:00
Juan Batiz-Benet
708e47fcbc
ipfs blocks local command
...
ipfs blocks local returns _all_ local refs. For now this is one
long op. future commits will make it async.
2015-01-11 16:59:22 -08:00
Juan Batiz-Benet
d1bff333a5
refs: log writer error
2015-01-07 13:49:13 -08:00
Juan Batiz-Benet
180b9b32d3
refs: added --format option
2015-01-07 13:42:06 -08:00
Juan Batiz-Benet
f46120b194
refs edges + stream fix
2015-01-07 12:56:14 -08:00
Matt Bell
6236ef7fdb
core/commands: Made add command output a channel
...
core/commands: Don't use pointers for Type field
2015-01-06 15:55:16 -08:00
Matt Bell
fd40702f73
commands: Changed Marshaler to return a io.Reader instead of a []byte
...
core/commands: Refactored command marshalers
2015-01-06 15:53:42 -08:00
Brian Tiger Chow
65c6bd07bf
feat(core/commands): expose commands to allow for the development of high-level interface
...
+ style: sort command list
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:56:26 -08:00
Matt Bell
4c1a5f6816
core/commands: Restored 'pin'/'refs' option names
2014-11-19 00:36:30 -08:00
Matt Bell
db53de806c
core/commands: Made 'refs' output u.Keys instead of strings
2014-11-18 23:20:20 -08:00
Matt Bell
477c246c6c
core/commands: Fixed 'refs' option name collision
2014-11-18 23:09:53 -08:00
Matt Bell
edb8eeaecf
core/commands: Created a general key list output type and plaintext marshaler
2014-11-18 23:08:56 -08:00
Juan Batiz-Benet
5aaa45db9a
transitioned ipfs2 -> ipfs
2014-11-18 06:15:00 -08:00
Juan Batiz-Benet
ad3f3e003f
removed old commands files
...
https://www.youtube.com/watch?v=kyFyAqLtHq8
2014-11-18 06:15:00 -08:00
Juan Batiz-Benet
184c25430b
go-vet friendly codebase
...
- distinguish log.Error and log.Errorf functions
- Initialize structs with field names
- A bit of unreachable code (defers)
2014-10-25 03:46:39 -07:00
Henry
98d9df544f
remove utils.PErr()
2014-10-15 13:17:04 +02:00
Jeromy
9e4b8586a9
Add config flag to cmd line interface
2014-09-17 02:49:36 +00:00