W. Trevor King
40c6ffd4fe
core/commands: Make IpnsCmd and PublishCmd public
...
ipfs-shell [1] accesses the Command objects directly to construct
requests for an external IPFS daemon API. This isn't a terribly
robust approach, because it doesn't handle version differences between
the version of go-ipfs used to build the daemon and the version used
to build the ipfs-shell-consuming application. But for cases where
you can get those APIs to match it works well. Making these two
commands public allows us to write ipfs-shell wrappers for them.
Until we figure out how to get ipfs-shell working without access to
core/commands, I think the best approach is to make future command
objects and their returned structures public, and to go back and
expose existing commands/structures on an as-needed basis.
In this case, I need the public PublishCmd for the Docker-registry
storage driver, and I made the IpnsCmd public at the same time to stay
consistent for both 'ipfs name ...' sub-commands.
[1]: https://github.com/whyrusleeping/ipfs-shell
License: MIT
Signed-off-by: W. Trevor King <wking@tremily.us>
2015-06-19 02:44:03 -07:00
Juan Batiz-Benet
848502de1b
Merge pull request #1367 from ipfs/wantmanager-cleanup
...
select with context when sending on channels
2015-06-12 15:14:09 -07:00
Jeromy
b12cc09f64
select with context when sending on channels
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-06-12 11:32:06 -07:00
Juan Batiz-Benet
41785f3b59
Merge pull request #1356 from ipfs/fix/bitswap-leak
...
prevent wantmanager from leaking goroutines (and memory)
2015-06-11 20:39:08 -07:00
Jeromy
952dc9c60f
go-ipfs version 0.3.5
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-06-11 20:32:30 -07:00
Jeromy
e014a66bf5
comments from CR
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-06-11 16:43:21 -07:00
Jeromy
c5b40b3b02
prevent wantmanager from leaking goroutines (and memory)
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-06-11 09:38:09 -07:00
Juan Batiz-Benet
feba3e1da5
Merge pull request #1334 from ipfs/patch/patch
...
'key' objects dont marshal to json well
2015-06-08 13:36:11 -07:00
Jeromy
c214210354
add some basic testing for object patch
2015-06-08 10:19:26 -07:00
Jeromy
b4f55d337a
'key' objects dont marshal to json well
2015-06-08 10:19:26 -07:00
Juan Batiz-Benet
217fe2687c
Merge pull request #1287 from ipfs/feat/httpApiTcpPort0
...
httpGw: make /tcp/0 work
2015-06-08 03:46:35 -07:00
Henry
4b337bb7e8
daemon: addressed CR comments
2015-06-08 11:08:10 +02:00
Henry
07b3415cdb
http endpoints: dont print before listen
...
also splits api, gw and fuse bring up into helper functions
2015-06-08 10:56:05 +02:00
Juan Batiz-Benet
aad700bd6d
Merge pull request #1342 from ipfs/observe-addr-twice
...
Better symmetric NAT avoidance.
2015-06-07 18:14:52 -07:00
Juan Batiz-Benet
500bb51759
p2p/net/identify: clump addr observers into groups
...
Different mutliaddrs is not enough. Nodes may share transports.
NAT port mappings will likely only work on the base IP/TCP port
pair. We go one step further, and require different root (IP)
addrs. Just in case some NATs group by IP. In practice, this is
what we want: use addresses only if hosts that are on different
parts of the network have seen this address.
2015-06-07 17:00:56 -07:00
Juan Batiz-Benet
96ed20bffe
p2p/protocol/identify: dont double count observers
...
If the same peer observed the same address twice, it would be
double counted as different observations. This change adds a map
to make sure we're counting each observer once.
This is easily extended to require more than two observations,
but i have not yet encountered NATs for whom this is relevant.
2015-06-07 16:48:02 -07:00
Juan Batiz-Benet
39716077b4
Merge pull request #1341 from ipfs/use-go-sleep
...
Use github.com/chriscool/go-sleep
2015-06-07 03:58:53 -07:00
Christian Couder
14a3315dc7
sharness/test-lib: use go-sleep to sleep
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-06-07 10:29:08 +02:00
Christian Couder
fd449af227
test/Makefile: build go-sleep
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-06-07 10:28:13 +02:00
Juan Batiz-Benet
268894c85f
Merge pull request #1340 from harlantwood/patch-1
...
fix typo
2015-06-06 21:31:15 -07:00
Juan Batiz-Benet
553960d413
Merge pull request #1339 from ipfs/update-cheggaaa-pb
...
Godeps: update cheggaaa/pb to the latest version
2015-06-06 16:35:49 -07:00
Christian Couder
d4e0ad97df
Vendor github.com/chriscool/go-sleep
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-06-06 23:07:21 +02:00
Harlan T Wood
e82e5cd87e
fix typo
2015-06-06 13:42:54 -07:00
Christian Couder
24de361001
Godeps: update cheggaaa/pb to the latest version
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-06-05 23:48:17 +02:00
Juan Batiz-Benet
13cd226bff
Merge pull request #1317 from ipfs/builder-default
...
make the default repo for corebuilder work
2015-06-03 16:30:02 -07:00
Jeromy
6b16981979
make the default repo for corebuilder work
2015-06-03 16:06:15 -07:00
Juan Batiz-Benet
6cff7e87f6
Merge pull request #1299 from ipfs/feat/patch
...
implement patch command
2015-06-03 15:56:00 -07:00
Jeromy
40e423d6dc
implement an ipfs patch command for modifying merkledag objects
...
WIP: object creator command
better docs
move patch command into object namespace
dont ignore cancel funcs
addressing comment from CR
add two new subcommands to object patch and clean up main Run func
cancel contexts in early returns
switch to util.Key
2015-06-03 15:24:07 -07:00
Juan Batiz-Benet
0494a4db2c
Merge pull request #1327 from rht/cleanup-rand
...
Swap all 'crypto/rand' rng in tests with 'math/rand'
2015-06-03 15:11:25 -07:00
Juan Batiz-Benet
0397bdf5d3
Merge pull request #1329 from ipfs/implement-test-seq
...
ipfs-test-lib: implement test_seq()
2015-06-03 15:10:54 -07:00
Juan Batiz-Benet
238fac5488
Merge pull request #1330 from ipfs/fix/test-deps
...
fix up some dependencies to avoid circular record deps
2015-06-03 15:10:16 -07:00
Christian Couder
59cac0a161
test-lib: use test_seq()
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-06-03 23:53:24 +02:00
Christian Couder
3c2e0ba586
ipfs-test-lib: implement test_seq()
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-06-03 23:51:50 +02:00
Jeromy
c2b7456b49
fix up some dependencies to avoid circular record deps
2015-06-03 14:27:31 -07:00
Juan Batiz-Benet
898863d632
Merge pull request #1323 from ipfs/revert-godeps-update
...
Revert "godeps: update everything to master"
2015-06-03 14:26:16 -07:00
Jeromy
db98e77de9
add a test for issue repro
2015-06-03 08:41:25 -07:00
rht
f239a38fbb
golint on core/commands
2015-06-03 18:44:28 +07:00
rht
e671ab2f42
Swap all 'crypto/rand' rng in tests with 'math/rand'
2015-06-03 18:12:34 +07:00
Juan Batiz-Benet
18297e2dc9
Merge pull request #1326 from rht/master
...
Test repeat in 10 sec: increase check frequency tenfold
2015-06-03 03:30:17 -07:00
rht
c14ab9bd51
go vet on core/commands
2015-06-03 17:20:40 +07:00
rht
9bdc1d6060
Test repeat in 10 sec: increase check frequency tenfold
2015-06-03 16:49:03 +07:00
Jeromy
546415b174
Revert "godeps: update everything to master"
...
This reverts commit dc758b1c81 .
2015-06-02 14:55:32 -07:00
Juan Batiz-Benet
7fbfecf6fa
Merge pull request #1319 from travisperson/bug/name-help-fix
...
Text under `ipfs name --help` incorrect
2015-06-02 00:46:20 -07:00
Travis Person
11780198b6
Text under ipfs name --help incorrect
...
Change help text to display proper results from an `ipfs name resolve`.
2015-06-02 00:08:33 -07:00
Juan Batiz-Benet
c9ad7a98f9
Merge pull request #1315 from ipfs/fix/prov-store
...
fix rampant memory leak in providers records storage
2015-06-01 17:25:54 -07:00
Jeromy
abb85fc194
fix rampant memory leak in providers records storage
...
address comments from CR
use map and array combo for better perf
2015-06-01 17:00:33 -07:00
Juan Batiz-Benet
9a9eb8416f
Merge pull request #1318 from ipfs/feat/keypkg
...
move util.Key into its own package under blocks
2015-06-01 16:44:19 -07:00
Jeromy
ef294431d4
move util.Key into its own package under blocks
2015-06-01 16:10:08 -07:00
Juan Batiz-Benet
fd8a51d862
Merge pull request #1314 from ipfs/webui-v0.2.0
...
updated webui to 0.2.0
2015-06-01 00:49:15 -07:00
Juan Batiz-Benet
e9fec3d5ee
updated webui to 0.2.0
2015-06-01 00:37:02 -07:00