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
Mildred Ki'Lya
d221d55d85
HTTP: add handlers to allow object creation and modification
2015-01-31 20:47:34 +01:00
Juan Batiz-Benet
a8bfa947d8
fuse/ipns: use Read() not ReadAll()
2015-01-29 16:12:45 -08:00
Juan Batiz-Benet
c05b4f06f0
fuse/ipfs: remove ReadAll
2015-01-29 16:12:45 -08:00
Juan Batiz-Benet
fcf7f0e7c1
fuse/ipfs: seeking
...
This commit changed the "ReadAll" to do proper read requests.
Seeking in fuse mounted fs now works. Note: this is why opening a
mounted video didnt work... we just didnt look at this code in
months.
2015-01-29 16:12:45 -08:00
Jeromy
abb3c9c9c4
implement path type
2015-01-29 17:51:08 +00:00
Jeromy
f1267d0624
change ipns resolve/publish to store raw keys, not b58 encoded
2015-01-28 19:36:30 +00:00
Jeromy
26826bd55e
implement seeking in the dagreader
2015-01-27 01:33:09 +00:00
Jeromy
1244fd251d
update tests, and ensure 'default' blocks are pinned
2015-01-22 00:16:30 +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
Juan Batiz-Benet
0311c0518d
testing/ci: all env var checks now use new pkgs
...
Good thing, i checked one wrong, too!
2015-01-14 16:01:03 -08:00
Jeromy
edd7062c56
mark ipns as readonly
2015-01-10 01:22:44 -08:00
Juan Batiz-Benet
919e9bebee
ipns test: is fast republish a timing prob?
2015-01-05 05:48:35 -08:00
Juan Batiz-Benet
e21b1f662b
fuse mount lifecycle fixes
...
This commit cleans up how mounting was being done.
It now successfully signals when it is properly mounted
and listen to close signals correctly.
2015-01-04 00:47:27 -08:00
Juan Batiz-Benet
cc0d7c9b57
crypto -> p2p/crypto
...
The crypto package moves into p2p. Nothing in it so far is ipfs
specific; everything is p2p-general.
2015-01-02 08:46:45 -08:00
Juan Batiz-Benet
c84a714b16
peer change: peer.Peer -> peer.ID
...
this is a major refactor of the entire codebase
it changes the monolithic peer.Peer into using
a peer.ID and a peer.Peerstore.
Other changes:
- removed handshake3.
- testutil vastly simplified peer
- secio bugfix + debugging logs
- testutil: RandKeyPair
- backpressure bugfix: w.o.w.
- peer: added hex enc/dec
- peer: added a PeerInfo struct
PeerInfo is a small struct used to pass around a peer with
a set of addresses and keys. This is not meant to be a
complete view of the system, but rather to model updates to
the peerstore. It is used by things like the routing system.
- updated peer/queue + peerset
- latency metrics
- testutil: use crand for PeerID gen
RandPeerID generates random "valid" peer IDs. it does not
NEED to generate keys because it is as if we lost the key
right away. fine to read some randomness and hash it. to
generate proper keys and an ID, use:
sk, pk, _ := testutil.RandKeyPair()
id, _ := peer.IDFromPublicKey(pk)
Also added RandPeerIDFatal helper
- removed old spipe
- updated seccat
- core: cleanup initIdentity
- removed old getFromPeerList
2014-12-23 08:33:32 -08:00
Juan Batiz-Benet
41751b4938
Integrated new network into ipfs
2014-12-16 14:47:29 -08:00
Juan Batiz-Benet
6ff472be61
mount: move Mount func into mount obj
2014-11-16 01:56:34 -08:00
Juan Batiz-Benet
99f2378bac
mount: fixed mount init + teardown
...
This commit adds a Mount abstraction (which is really just
a wrapped context closer). It makes sure to bind the mount
to the fate of the Node (i.e. close it if the node ends).
This fixes #350
2014-11-16 01:42:42 -08:00
Brian Tiger Chow
ed4a8eb782
chore(tests) add Short() -> SkipNow() to slowest tests
...
vanilla:
21.57 real 45.14 user 8.51 sys
short:
14.40 real 31.13 user 5.56 sys
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-15 02:10:53 -08:00
Jeromy
4f083d54d6
write a few package doc strings to improve look of godoc
2014-11-08 21:42:36 -08:00
Juan Batiz-Benet
387d0a935d
ipns test: unused import + rmv old comment
2014-11-07 14:21:12 -08:00
Jeromy
bc0e31922b
probably fix the cat bug
2014-11-07 14:13:11 -08:00
Jeromy
2e2d02a741
probably fix OSX ipns bug
2014-11-07 14:13:11 -08:00
Brian Tiger Chow
de61d663b5
fix(race condition)
...
https://github.com/jbenet/go-ipfs/issues/270
2014-11-05 10:01:22 -08:00
Brian Tiger Chow
cea398b8a7
fix(all) log.Debug -> log.Debugf
2014-10-30 06:35:29 -07: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
Brian Tiger Chow
a1b61f399c
refactor(unixfs/pb) mv proto PBData -> Data, etc.
2014-10-22 21:52:59 -07:00
Brian Tiger Chow
75a860ca2b
refactor(unixfs) move proto to pb package
...
not internal since io needs it
fix(fuse/ipns) use pb package
fix(fuse) import protos from unixfs/pb package
2014-10-22 15:54:17 -07:00
Brian Tiger Chow
a817531653
fix(fuse) named/aliased imports
2014-10-22 15:54:16 -07:00
Juan Batiz-Benet
9ca87fbb93
peer.Peer is now an interface
...

2014-10-20 03:26:46 -07:00
Juan Batiz-Benet
972c0f7b4b
u.DOut -> log.Debug
...
and other logging switches. I kept the u.PErr and u.POut in cli
commands, as those do need to write raw output directly.
2014-10-09 04:50:22 -07:00
Juan Batiz-Benet
6ac1170209
Skip ipns_test.TestMultiWrite in darwin
2014-10-09 03:03:57 -07:00
Juan Batiz-Benet
c565309a21
skip ipns fuse tests in travis
2014-10-09 02:59:56 -07:00
Jeromy
093c8fb04d
Rework package structure for unixfs and subpackage
...
cc @jbenet
2014-10-08 21:14:18 +00:00
Jeromy
15a4701003
update error handling in ipns
2014-10-08 17:29:46 +00:00
Juan Batiz-Benet
2944360f5c
New NameSystem interface
...
type NameSystem interface {
Resolver
Publisher
}
should say it all.
cc @whyrusleeping
2014-10-08 04:14:52 -07:00
Juan Batiz-Benet
459e0d5373
ipns TestFastRepublish
2014-10-08 02:52:16 -07:00
Jeromy
98cde1578d
integrate dagmodifier into ipns
2014-10-07 07:23:30 +00:00
Jeromy
5592030ed3
working on dag modification structures, factored out the data format into an importer subpackage and added more ipns tests
2014-10-06 03:42:59 +00:00
Jeromy
a13baff33d
fixed data size reporting
2014-10-05 01:22:01 +00:00
Jeromy
16e42f82b0
fixed ipns file persistence bug
2014-10-04 22:42:03 +00:00
Jeromy
faaaa2298b
Merge branch 'ipns' of github.com:jbenet/go-ipfs into ipns
2014-10-04 19:26:58 +00:00
Jeromy
25b36d1000
moved mock core node to core package
2014-10-04 19:13:56 +00:00
Juan Batiz-Benet
0c8ae7674e
loggers: set level
2014-10-04 03:53:21 -07:00
Juan Batiz-Benet
7e1cd59259
initialize loggers at ERROR
2014-10-04 03:36:30 -07:00
Jeromy
c64add1959
clean up ipns test and add more asserts
2014-10-04 08:30:24 +00:00
Jeromy
5423a00894
create test node and make first ipns test pass
2014-10-04 08:00:13 +00:00
Jeromy
0c7ff7b0a8
add skeleton for ipns test, to be finished when there is a mock core.IpfsNode
2014-10-04 07:24:57 +00:00