Commit Graph

668 Commits

Author SHA1 Message Date
Jeromy
72a5902e12 address concerns from PR 2015-01-28 19:36:30 +00:00
Jeromy
f1267d0624 change ipns resolve/publish to store raw keys, not b58 encoded 2015-01-28 19:36:30 +00:00
Juan Batiz-Benet
7ae3706b6d fuse: no longer require fuse to compile ipfs
This commit removes the dependency on go-fuse-version, and thus the
fuse headers. It also introduces an elaborate troubleshooting process
that diagnoses whether fuse installed -- and which version -- with as
little requirements as possible (attept to use sysctl, fall-back on
the go-fuse-version binary, etc). It then nicely instructs the user
what to do next.
2015-01-28 05:18:41 -08:00
Brian Tiger Chow
bbce860bd0 remove debug log output 2015-01-27 17:15:56 -08:00
Brian Tiger Chow
961e3ced43 feat(coreunix): AddR for recursive Adds 2015-01-27 16:24:36 -08:00
Brian Tiger Chow
1ea9481a63 move config.Init into config package 2015-01-27 16:23:58 -08:00
Jeromy
b456d476a3 updates from CR 2015-01-27 17:28:02 +00:00
Jeromy
c50d763727 add more help text for ipfs diag net 2015-01-27 09:05:06 +00:00
Jeromy Johnson
4940c3e0ae Merge pull request #655 from jbenet/feat/dagseek
Implement io.Seeker on unixio.DAGReader
2015-01-26 19:33:41 -08:00
Juan Batiz-Benet
1eb0bfe834 Merge pull request #668 from jbenet/hack
misc user-friendliness fixes
2015-01-26 19:00:09 -08:00
Juan Batiz-Benet
2b0c89a5c7 commands/diag: switch clarity 2015-01-26 18:50:16 -08:00
Jeromy
26826bd55e implement seeking in the dagreader 2015-01-27 01:33:09 +00:00
Juan Batiz-Benet
36d03306d7 Merge pull request #652 from jbenet/cli-changes
CLI changes
2015-01-26 17:24:54 -08:00
Matt Bell
d666155a0a core/commands: get: Clean output path 2015-01-26 17:07:30 -08:00
Juan Batiz-Benet
76d9d89aff user friendliness in logs + output 2015-01-26 17:01:00 -08:00
Matt Bell
2c019b542e core/commands: Fixed net diag command not outputting in chosen format 2015-01-26 17:01:00 -08:00
Juan Batiz-Benet
ae5e244354 Merge pull request #648 from jbenet/nat-lite
NAT-Lite
2015-01-26 16:59:33 -08:00
Matt Bell
3799ad9023 core/commands: log tail: Return from goroutine when request context closes, resolves #659 2015-01-26 14:24:33 -08:00
Juan Batiz-Benet
ca757c66ff p2p/nat: managed by host now.
Exposing the NAT to the core is unnecessary. The Host can take
care of it. If a need emerges, we can address it then.
2015-01-26 14:00:00 -08:00
Juan Batiz-Benet
332d350196 p2p/nat: re-factors nat object
- allow retrieving addresses
- allow notifications on mapping changes
- allow lifecycle mgmt (future commit will manage it)
2015-01-26 13:45:02 -08:00
Matt Bell
41d5c822d7 core/commands: get: Place files at root of TAR when using a multi-element ipfs path 2015-01-24 21:40:19 -08:00
Matt Bell
e6d6e9fed6 core/commands: Added 'get' to root command helptext 2015-01-24 21:40:18 -08:00
Jeromy
403940af42 print out correct object for dht findproviders command 2015-01-25 01:21:23 +00:00
Juan Batiz-Benet
069cff3d25 p2p/nat: upnp + pmp 2015-01-24 12:42:22 -08:00
Brian Tiger Chow
f9395b7667 fix: flush the pinner 2015-01-24 12:22:22 -08:00
Brian Tiger Chow
7f6bd2807d feat(coreunix): AddR for recursive Adds 2015-01-24 12:22:22 -08:00
Matt Bell
27c7ebdf48 core/commands: get: Changed option description 2015-01-24 07:28:43 -08:00
Matt Bell
3909905313 core/commands: get: Cleaned up option handling 2015-01-24 05:35:27 -08:00
Matt Bell
fe48ae2dd6 Extracted TAR archive building/reading code out of 'ipfs get' 2015-01-24 03:06:25 -08:00
Matt Bell
5efd99c1fe core/commands: get: Error if specified compression level is invalid 2015-01-24 03:06:25 -08:00
Matt Bell
816a047a12 core/commands: 'get' arguments shouldn't be variadic 2015-01-24 03:06:25 -08:00
Matt Bell
f034f3e13a core/commands: Show download progress in 'get' 2015-01-24 03:06:25 -08:00
Matt Bell
f3c4f87ec2 core/commands: Added GZIP compression to 'get' 2015-01-24 03:06:25 -08:00
Matt Bell
f433a95201 core/commands: Save 'get' output to disk
squash! core/commands: Save 'get' output to disk

core/commands: get: Fixed PostRun signature
2015-01-24 03:06:25 -08:00
Matt Bell
276a8d062c core/commands: Made 'get' copying thread-safe 2015-01-24 03:06:24 -08:00
Matt Bell
36249b9292 core/commands: Added 'get' command 2015-01-24 03:06:24 -08:00
Brian Tiger Chow
af20d67ac0 add synchronous garbage collect function 2015-01-24 01:32:28 -08:00
Brian Tiger Chow
d738a02428 rename GarbageCollectAsync method
corerepo package name provides sufficient context (even if renamed by
caller)
2015-01-24 01:32:28 -08: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
Brian Tiger Chow
d5e4c6a0bf move core/repo to core/corerepo 2015-01-24 01:32:27 -08:00
Brian Tiger Chow
e9d3c9828c perform multiaddr conversion in the function 2015-01-24 01:32:27 -08:00
Jeromy
b287422ebd fix type in findProviders command 2015-01-24 08:59:34 +00:00
Brian Tiger Chow
6fedf259eb remove prefix logger 2015-01-24 00:30:56 -08:00
Jeromy
20c40c3f10 fix commands interface 2015-01-24 08:06:57 +00:00
Juan Batiz-Benet
4334f6fda3 Merge pull request #613 from jbenet/progress-bars
Progress Bars
2015-01-23 22:20:34 -08:00
Juan Batiz-Benet
b279da2918 Merge pull request #626 from jbenet/query-cmd
dht query command
2015-01-23 22:01:48 -08:00
Jeromy
d68efad06c respect verbose option a bit, and show query events for other commands 2015-01-24 05:32:50 +00:00
Jeromy
4607f54254 add findpeer command 2015-01-24 03:56:46 +00:00
Jeromy
56a5e72760 implement dht findprovs and add error output to dht query 2015-01-24 03:56:46 +00:00
Jeromy
528eb5a55a use a notification type strategy for the query events 2015-01-24 03:56:45 +00:00
Jeromy
ec5276c29c really ugly impl of 'ipfs dht query' command 2015-01-24 03:56:45 +00:00
Matt Bell
ccaabbc06d core/commands: Rearranged command list sections 2015-01-23 19:17:09 -08:00
Matt Bell
452f54a48e core/commands: Enabled stdin arguments for 'bootstrap {add, rm} 2015-01-23 19:11:56 -08:00
Matt Bell
71301d2c63 core/commands: Updated root command helptext 2015-01-23 19:11:56 -08:00
Matt Bell
5706471897 commands: Made PostRun signature match Run 2015-01-23 18:29:31 -08:00
Matt Bell
79741438d9 core/commands: config: Simplified some syntax 2015-01-23 18:29:31 -08:00
Matt Bell
3fc9bedb0b commands: Made Std{in|out|err} accessible in Request/Response 2015-01-23 18:29:31 -08:00
Matt Bell
b77d1c21b6 core/commands: add: Don't show progress bar when using --quiet option 2015-01-23 18:29:31 -08:00
Matt Bell
121dfb10b4 core/commands: Fixed progress bar line clear race condition in 'add' 2015-01-23 18:29:31 -08:00
Matt Bell
2363cb63e6 core/commands: Fixed 'add' progress bar sometimes not clearing progress bar output line 2015-01-23 18:29:31 -08:00
Matt Bell
c3ea164f64 core/commands: Added progress bars for 'add'
squash! core/commands: Added progress bars for 'add'

Use vendored progress bar lib in 'add'
2015-01-23 18:29:30 -08:00
Matt Bell
487ef33e67 core/commands: Added progress bar to 'cat'
squash! core/commands: Added progress bar to 'cat'

Vendored progress bar lib
2015-01-23 18:29:30 -08:00
Matt Bell
7b4de230eb commands: Refactored Command#Run function signature to (req Request, res Response) 2015-01-23 18:29:29 -08:00
Juan Batiz-Benet
c4f9a92e55 Merge pull request #628 from jbenet/feat/more-bootstraps
Add Bootstrap Peers: Mercury, Earth, Venus, Jupiter
2015-01-23 17:08:56 -08:00
Juan Batiz-Benet
bb2d81ace2 Merge pull request #622 from jbenet/webui-commands
Webui Commands
2015-01-23 16:51:11 -08:00
Brian Tiger Chow
bbc282bfab more bootstrap nodes 2015-01-23 16:19:50 -08:00
Matt Bell
68b2a3f15c core/commands: Renamed 'log read' to 'log tail' 2015-01-23 15:08:20 -08:00
Juan Batiz-Benet
95d58b2a4a core: cleaned up bootstrap process 2015-01-23 05:25:31 -08:00
Juan Batiz-Benet
dd9c1b6243 core/bootstrap: CR comments 2015-01-23 02:08:30 -08:00
Juan Batiz-Benet
d6ce837d72 core/bootstrap: cleaned up bootstrapping
Moved it to its own package to isolate scope.
2015-01-23 02:08:29 -08:00
Juan Batiz-Benet
010cedf0a9 ipfs swarm peers: sort output 2015-01-23 02:08:29 -08:00
Juan Batiz-Benet
ec848c486b core: call dht bootstrap 2015-01-23 02:08:28 -08:00
Juan Batiz-Benet
898b9696ca diag/net: add timeout param to cmd 2015-01-23 02:08:28 -08:00
Juan Batiz-Benet
82d38a2692 routing/dht: periodic bootstrapping #572 2015-01-23 02:08:28 -08:00
Jeromy
eb6afd3edc fix interface for coreunix.Cat, now takes a path 2015-01-23 06:39:20 +00:00
Matt Bell
81d17e0843 cmd/ipfs: gatewayHandler: Fixed directory listing getting appended to index.html pages 2015-01-22 16:29:00 -08:00
Matt Bell
926b96463d core/commands: Added 'log read' command
squash! core/commands: Added 'log read' command

core/commands: Use a unidirectional channel for 'log read' output
2015-01-22 16:28:59 -08:00
Matt Bell
8d412e48cf core/commands: Added an 'ipfs config replace' command 2015-01-22 16:28:59 -08:00
Brian Tiger Chow
fadede6cb2 separate concerns 2015-01-22 01:28:40 -08:00
Brian Tiger Chow
fadedf9e68 refactor(core) extract corehttp package
PACKAGE DOCUMENTATION

package corehttp

    FUNCTIONS

    func GatewayOption(n *core.IpfsNode, mux *http.ServeMux) error

    func ListenAndServe(n *core.IpfsNode, addr ma.Multiaddr, options
    ...ServeOption) error

    func WebUIOption(n *core.IpfsNode, mux *http.ServeMux) error

    TYPES

    type ServeOption func(*core.IpfsNode, *http.ServeMux) error

    func DaemonOption(cctx commands.Context) ServeOption
2015-01-22 01:08:59 -08:00
Juan Batiz-Benet
f6111d82fe Merge pull request #558 from jbenet/feat/gc
initial implementation of repo-gc command
2015-01-21 16:48:28 -08:00
Jeromy
8e7d984751 updates from PR, tests tests tests! 2015-01-21 08:55:50 +00:00
Brian Tiger Chow
721ff57263 fix(blockservice) fully async exchange.HasBlock 2015-01-20 23:43:21 -08:00
Jeromy
4de881a185 move GC code into core/repo, and add sharness test 2015-01-21 04:28:02 +00:00
Matt Bell
31ae178078 commands: Support outputting <-chan interface{} 2015-01-21 04:28:02 +00:00
Jeromy
9adcfe7bc2 address concerns from PR 2015-01-21 04:28:02 +00:00
Jeromy
ccb36277dd fix pinning UX, and add tests to match 2015-01-21 04:28:01 +00:00
Jeromy
b91db68056 update pinning to new semantics, and fix a couple bugs 2015-01-21 04:28:01 +00:00
Jeromy
3601a93d17 fix pin command output 2015-01-21 04:28:01 +00:00
Jeromy
f0781d8119 initial implementation of repo-gc command 2015-01-21 04:28:01 +00:00
Juan Batiz-Benet
56ae2fd0a8 routing: record validation into record/
This commit moves the record validation/verification
from dht/ into the new record/ packaage. Validator object
-- which is merely a map of ValidatorFuncs -- with a
VerifyRecord

cc @whyrusleeping
2015-01-19 08:10:37 +00:00
Jeromy
a5233faeae some comments 2015-01-19 08:06:51 +00:00
Jeromy
feeada0d90 fix fuse mounting issues
this time, without loading the private key on every startup
2015-01-19 08:05:52 +00:00
Brian Tiger Chow
797aad9137 refactor(core) extract const 2015-01-18 14:41:43 -08:00
Brian Tiger Chow
b0596cd4ff rename coreio to coreunix 2015-01-18 14:41:43 -08:00
Brian Tiger Chow
a025fc9adf refactor(core) switch style to type assertions
@jbenet cool with this?
2015-01-18 14:41:43 -08:00
Brian Tiger Chow
c1ff2149f1 doc(core) add TODO 2015-01-18 14:41:43 -08:00
Brian Tiger Chow
15a6237ffc fix(core) improve documentation and describe behavior of function 2015-01-18 14:41:43 -08:00
Brian Tiger Chow
19c2c6556f fix(core) don't assume Repo won't be nil 2015-01-18 14:41:43 -08:00
Brian Tiger Chow
de45277883 doc(core, main) 2015-01-18 14:41:43 -08:00