Commit Graph

2799 Commits

Author SHA1 Message Date
Brian Tiger Chow
67c161fb72 doc todo 2015-01-14 03:02:23 -08:00
Brian Tiger Chow
9700d2f94b use atomicfile for safer writes
for now, allow daemon and client to both hit config
2015-01-14 03:02:23 -08:00
Brian Tiger Chow
aacf871955 officially move to Go 1.4
@jbenet @whyrusleeping thoughts?
2015-01-14 03:02:22 -08:00
Brian Tiger Chow
acbd9a2204 rm unused function 2015-01-14 03:02:22 -08:00
Brian Tiger Chow
9a7fbe3210 doc(fsrepo): Roadmap 2015-01-14 03:02:22 -08:00
Juan Batiz-Benet
6959b4f032 p2p/net/swarm: fix travis env flag val
the travis docs say the env flag TRAVIS=true but, i want
to make absolutely sure. explicitness leaves less room for
error.
2015-01-13 23:34:28 -08:00
Juan Batiz-Benet
920ddc7fc3 Merge pull request #553 from jbenet/serial-file
Serial File Opening
2015-01-13 23:30:08 -08:00
Juan Batiz-Benet
07b35e6a59 Merge pull request #545 from jbenet/stdin-input
Stdin Input
2015-01-13 23:27:04 -08:00
Matt Bell
86bb8ca7a7 core/commands: Enabled stdin for various command arguments 2015-01-13 22:51:11 -08:00
Matt Bell
70adc21d08 core/commands: Enable stdin arguments for 'add' and 'cat', resolves #542 2015-01-13 22:51:10 -08:00
Matt Bell
78d36230d5 commands/cli: When parsing stdin as string argument, split lines into separate tokens 2015-01-13 22:51:10 -08:00
Matt Bell
dbb5118d76 commands/files: Fixed tests 2015-01-13 22:50:54 -08:00
Matt Bell
f8347f925c commands/files: Made ReaderFile take ReadClosers instead of trying to cast reader to Closer 2015-01-13 22:50:54 -08:00
Matt Bell
a2b3402aa4 commands/http: Fixed package import in tests 2015-01-13 22:50:54 -08:00
Matt Bell
9ba728532f commands/files: Created SerialFile, which opens directory contents serially 2015-01-13 22:50:53 -08:00
Matt Bell
7a579bbf79 commands: Moved files code into 'commands/files' subpackage 2015-01-13 22:50:53 -08:00
Juan Batiz-Benet
b6670da5ac Merge pull request #557 from jbenet/swarm-fix-racey-test
p2p/net/swarm: fix racey test
2015-01-13 22:49:57 -08:00
Juan Batiz-Benet
670b2b59b5 p2p/net/swarm: fix racey test 2015-01-13 22:46:41 -08:00
Juan Batiz-Benet
102c43a3b1 Merge pull request #551 from jbenet/fix-swarm-more-connect
p2p/net/swarm: more connection bugs
2015-01-13 09:17:19 -08:00
Juan Batiz-Benet
d9a815b3a0 p2p/net/swarm: nicer test timeouts for travis 2015-01-13 08:42:46 -08:00
Juan Batiz-Benet
1272bb6651 p2p/net/swarm: parallelize tests. poor travis. 2015-01-13 08:16:02 -08:00
Juan Batiz-Benet
baf2541237 p2p/net/swarm: extensive dial tests 2015-01-13 08:15:26 -08:00
Juan Batiz-Benet
7f3a651f5d p2p/net/swarm: sync diagram explain 2015-01-13 08:14:35 -08:00
Juan Batiz-Benet
f58276d6d2 p2p/net/swarm: async grabbing of best conn
this is actually pretty important in case some peers end
up changing addrs, so others dont fail dialing simply for
picking the wrong addr to start with.
2015-01-13 08:13:32 -08:00
Juan Batiz-Benet
9689b280e6 p2p/net/swarm: configurable timeout for tests 2015-01-13 08:12:45 -08:00
Juan Batiz-Benet
af889dc182 p2p/net/swrm: InterfaceListenAddrs now method 2015-01-13 05:58:49 -08:00
Juan Batiz-Benet
70ceaa975d p2p/net/swarm: dial backoff
This commit introduces a backoff when failing to dial
peers. It makes everything much faster.
2015-01-13 05:04:12 -08:00
Juan Batiz-Benet
8de8ed0842 p2p/net/swarm: dial timeout to 10s + dialer 2015-01-13 04:08:08 -08:00
Brian Tiger Chow
e5bd30b349 Merge pull request #546 from jbenet/feat/repo-fsrepo
feat(repo): FSRepo
2015-01-13 03:37:53 -08:00
Juan Batiz-Benet
5b4a3c09bd p2p/net/swarm: more connection bugs
* filtering InterfaceListenAddresses(s) instead
* return error if for loops skip
* large dial timeout
2015-01-13 03:32:15 -08:00
Brian Tiger Chow
01f54d6966 refactor(fsrepo.test) use TempDir
@jbenet
2015-01-13 03:09:33 -08:00
Brian Tiger Chow
3eafb3e5ab style(repo): repo.Interface -> repo.Repo
The pkg.Interface style is modeled after heap.Interface. Generally, I
find it helpful for interfaces that have many implementations. It
provides clear distinction between the generic interface and the |n|
implementations that implement it (which may be interface types
themselves).

For clients who cannot keep the repo name, one can imagine that the most
likely rename is `ipfsrepo`. In that case, `ipfsrepo.Interface` remains
meaningful.

This is low-pri so it doesn't matter than much. But for the record, the
repo.Interface feels appropriate in this use-case.
2015-01-13 03:09:33 -08:00
Brian Tiger Chow
5705ea9859 style(init): -> errRepoExists
@jbenet
2015-01-13 03:09:33 -08:00
Brian Tiger Chow
89afdabb7e refactor(fsrepo): move OpenerCounter 2015-01-13 03:09:33 -08:00
Brian Tiger Chow
97b865ff6f fix(init): simpler initialization logic
@jbenet this removes everything under the path
2015-01-13 03:09:33 -08:00
Brian Tiger Chow
4aba282379 feat(fsrepo): handle safe Removal 2015-01-13 03:09:33 -08:00
Brian Tiger Chow
3ec5c678ae fix(updates): record the occurrence of the auto-update check
This may have been failing before.
2015-01-13 03:09:33 -08:00
Brian Tiger Chow
899c419ac3 refactor(config): break it apart 2015-01-13 03:09:33 -08:00
Brian Tiger Chow
631d2154f2 fix(fsrepo): use "please run ipfs init" message 2015-01-13 03:09:32 -08:00
Brian Tiger Chow
e84fc5df22 fix(config): avoid clobbering user-provided key value pairs
let me know if this looks off @whyrusleeping @jbenet
2015-01-13 03:09:32 -08:00
Brian Tiger Chow
196bc04541 test(bootstrap, config): ensure user-provided keys are protected 2015-01-13 03:09:32 -08:00
Brian Tiger Chow
bbaf70974d move utility method 2015-01-13 03:09:32 -08:00
Brian Tiger Chow
306c7e2e7b doc(fsrepo) 2015-01-13 03:09:32 -08:00
Brian Tiger Chow
b54c7de48c fix(fsrepo): add guard to ConfigKey methods 2015-01-13 03:09:32 -08:00
Brian Tiger Chow
3986af7691 refactor(repo): move public methods 2015-01-13 03:09:32 -08:00
Brian Tiger Chow
47e4a35e6b refactor(repo): privatize serialization methods 2015-01-13 03:09:32 -08:00
Brian Tiger Chow
86258face6 refactor(config, repo): use repo.Interface to (Get|Set)ConfigKey 2015-01-13 03:09:32 -08:00
Brian Tiger Chow
80c2e97692 refactor(main): use fsrepo to load config 2015-01-13 03:09:31 -08:00
Brian Tiger Chow
53f201cea9 fix(test/sharness/Makefile): remove ipfs binary when cleaning 2015-01-13 03:09:31 -08:00
Brian Tiger Chow
1b700864f9 refactor(repo): all config writes must go through repo 2015-01-13 03:09:31 -08:00