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
456719ede7
Merge pull request #523 from jbenet/feat/ping
...
Implement ipfs ping
2015-01-10 08:11:03 -08:00
Juan Batiz-Benet
538550f8f8
fix osx mounting version checks
2015-01-10 01:07:43 -08:00
Jeromy
0f4f91c2f3
restore ability to ping by ID alone
2015-01-10 08:31:17 +00:00
Jeromy
1561291d61
improve UI of ping
2015-01-10 07:27:49 +00:00
Jeromy
9fc0f86a3a
cleanup from PR
2015-01-10 07:27:49 +00:00
Jeromy
50c8561bdd
add peer info after FindPeer RPC
...
fix ping test
2015-01-10 07:27:49 +00:00
Jeromy
566a86f5d4
Address PR comments and add in more user feedback
2015-01-10 07:27:48 +00:00
Jeromy
0794d5b46a
a little cleanup
2015-01-10 07:27:48 +00:00
Brian Tiger Chow
069966d55a
ping WIP
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Conflicts:
core/commands/root.go
begin ping command, WIP
finish initial ping implementation
2015-01-10 07:27:45 +00: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
Juan Batiz-Benet
8307572777
ipfs block stat bugfix: cast
2015-01-07 06:26:34 -08:00
Juan Batiz-Benet
6b2795338f
ipfs object has learned stat
...
'ipfs object stat' is a plumbing command to print DAG
node statistics. <key> is a base58 encoded multihash.
It outputs to stdout:
NumLinks int number of links in link table
BlockSize int size of the raw, encoded data
LinksSize int size of the links segment
DataSize int size of the data segment
CumulativeSize int cumulative size of object and references
2015-01-07 02:31:29 -08:00
Juan Batiz-Benet
07b923d7a4
ipfs block stat cmd
2015-01-07 00:55:27 -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
abd390b892
core/commands: Made add command show streamed output
2015-01-06 15:53:48 -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
Juan Batiz-Benet
0395a7af1e
ipfs add output not sorted, cmds files sorted
...
I made the commands lib dir listing sort the contents
so we get the same sequence of files from it repeatably.
2015-01-06 14:02:49 -08:00
Christian Couder
d490a85706
Make sure ipfs add output is sorted by name
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-01-06 13:12:22 -08:00
Juan Batiz-Benet
64bf493b54
swarm peers print pid.Pretty
2015-01-06 10:13:49 -08:00
Juan Batiz-Benet
9e67acf51a
bootstrap add --default option
2015-01-06 04:30:06 -08:00
Juan Batiz-Benet
517d3e99b8
bootstrap addrs: moved parsing around
...
this commit:
* moves parsing of bootstrap peers into config
* moves location of bootstrap addrs into core/commands
* refactor `*BootstrapPeer -> BootstrapPeer
2015-01-06 00:25:17 -08:00
Juan Batiz-Benet
730793e2f7
cmds/bootstrap: rm --all
2015-01-05 07:59:53 -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
8fb5cf9578
swap net2 -> net
2015-01-02 08:46:46 -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
89f5cd4c94
introducing p2p pkg
...
I think it's time to move a lot of the peer-to-peer networking
but-not-ipfs-specific things into its own package: p2p.
This could in the future be split off into its own library.
The first thing to go is the peer.
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
Markus Amalthea Magnuson
dbefedbb2e
Fix typo.
...
”configurationx” -> ”configuration”
2014-12-14 20:55:29 +01:00
Brian Tiger Chow
73a89e161d
refactor(peerstore) s/Get/FindOrCreate
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 02:10:42 -08:00
Brian Tiger Chow
3f63e50c54
fix(peer): use error-checking multiaddr method
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 01:10:25 -08:00
Juan Batiz-Benet
59c1ab2fc3
Merge pull request #406 from jbenet/new-msgio
...
updated msgio
2014-12-06 16:20:51 -08:00
Juan Batiz-Benet
5c64ee90e0
cmds: remove info logging
2014-12-06 10:27:12 -05:00
Brian Tiger Chow
697453dfc2
fix(cmd/bootstrap) s/remove/rm
...
@jbenet
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:56:28 -08:00
Matt Bell
c91805d7bd
core/commands: Fixed build on Windows
2014-12-05 20:56:26 -08:00
Brian Tiger Chow
4882904c3e
fix: s/bootstrap rm/boostrap remove
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:56:26 -08:00
Brian Tiger Chow
3bdb36614e
fix(cmd/id) determine offline-ness with !node.OnlineMode()
...
It's better to have one mechanism for determining whether we're offline
and to improve the SnR of this mechanism over time. We presently have
too many arbitrary heuristics for determining whether we're running in
offline mode. TRTTD is to use polymorphism to eliminate these
conditional checks. (instantiate the node with offline versions of
routing, network, etc.) It'll clean up the core constructor, make it
easier to create ephemeral nodes, and eliminate a class of errors.
@whyrusleeping @jbenet
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-05 20:56:26 -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
Juan Batiz-Benet
11508f8f19
Merge pull request #372 from chriscool/add_quiet_flag
...
Implement the -q or --quiet flag to add with minimal output
2014-12-05 15:45:49 -05:00
Jeromy
b0e915be47
cleanup useless debug statement
2014-12-01 17:08:35 +00:00
Jeromy
28a32915b7
fix for #381
2014-12-01 08:34:07 +00:00
Christian Couder
5bfdc2e2b7
Add --quiet option to ipfs add
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-30 14:23:08 +01:00
Matt Bell
ab16237bc7
core/commands: Added no-op Mount implementation for Windows
2014-11-19 05:29:48 -08:00
Matt Bell
5461d76957
core/commands: Better syntax for 'pin ls' option value handling
2014-11-19 03:23:21 -08:00
Matt Bell
928f20b4bd
core/commands: pin ls: Default type to 'direct'
2014-11-19 01:44:51 -08:00
Matt Bell
9de01007d0
core/commands: pin ls: Accept 'type' option to specify type of pinned keys to list
2014-11-19 00:53:57 -08:00
Matt Bell
4c1a5f6816
core/commands: Restored 'pin'/'refs' option names
2014-11-19 00:36:30 -08:00
Matt Bell
87853f2bde
core/commands: Made 'add' use OptionRecursivePath
2014-11-19 00:36:03 -08:00
Matt Bell
49dc13e5dd
core/commands: Added plaintext marshaler for 'pin ls'
2014-11-18 23:20:38 -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
Matt Bell
961e4504f1
core/commands: Fixed pin flag name (conflicted with global -r/--recursive flag)
2014-11-18 23:03:41 -08:00
Matt Bell
afc7b6f48d
core/commands: Added a 'pin ls' command
2014-11-18 23:02:33 -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
Jeromy
ce223eef61
some small cleanup of logging
2014-11-01 16:07:56 -07:00
Jeromy
ae339a0320
remove dagwriter in favor of new importer function
2014-10-31 05:03:42 +00:00
Brian Tiger Chow
cea398b8a7
fix(all) log.Debug -> log.Debugf
2014-10-30 06:35:29 -07:00
Juan Batiz-Benet
b5fc3caea3
cmd/add: output file hash Fixed #239
2014-10-30 06:15:23 -07:00
Juan Batiz-Benet
70e1f9b6bc
make vendor
...
cc @whyrusleeping
2014-10-30 05:43:14 -07:00
Jeromy
71ac117546
Address concerns in PR
2014-10-30 06:23:31 +00:00
Jeromy
18ada93ec3
rewrite add command to use dagwriter, moved a pinner into the dagwriter for inline pinning
2014-10-30 04:40:48 +00:00
Jeromy
87407a99b9
add context to blockservice Get
2014-10-25 12:38:32 -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
Henry
4f42a26836
fixed --force flag for shutdown after update
2014-10-22 12:42:13 +02:00
Henry
3e40788188
updateApply: force shutdown check on daemon (TODO: force flag in cli)
2014-10-22 11:25:30 +02:00
Henry
cb73ea7ba4
removed duplicate logic
2014-10-22 11:25:30 +02:00
Henry
7ddf3836d0
implemented manual check and update (with signature verification)
2014-10-22 11:25:30 +02:00
Henry
5fa3053e19
added command stubs
2014-10-22 11:24:34 +02:00
Jeromy
3ee3c44d7c
flush!
2014-10-22 00:28:42 -07:00
Jeromy
31b0ff0307
add testing for pins
2014-10-22 00:28:41 -07:00
Juan Batiz-Benet
9ca87fbb93
peer.Peer is now an interface
...

2014-10-20 03:26:46 -07:00
Juan Batiz-Benet
9e3bfa28bb
Merge pull request #185 from cryptix/cmdObjects
...
object plumbing commands
2014-10-19 16:58:47 -07:00
Henry
468494e5e5
break with ErrObjectTooLarge
2014-10-19 17:07:03 +02:00
Henry
bc38bdf512
limit raw input to 512 kilobytes
2014-10-19 16:57:12 +02:00
Henry
2276b55c57
no links, no error
2014-10-19 16:52:45 +02:00
Jeromy
4189d50d77
fix bug in diagnostics, and add more peers to closer peer responses
2014-10-18 04:28:25 -07:00
Henry
e735addbb2
object plumbing commands
2014-10-18 04:35:12 +02:00
Henry
e4da27a2a5
implemented ipfs log command
2014-10-15 13:34:38 +02:00
Henry
3455846b35
add log command
2014-10-15 13:18:00 +02:00
Henry
98d9df544f
remove utils.PErr()
2014-10-15 13:17:04 +02:00
Henry
03e42d8ed4
added TODO about reading from io.Reader arg
2014-10-14 09:57:19 +02:00
Henry
a6630c804f
display key if BlockPut is successful
2014-10-14 00:39:29 +02:00
Henry
073ec11529
fixed BlockGet and cleaned up logging
2014-10-14 00:31:34 +02:00
Henry
08bb6f149f
templates for block commands (updates #138 )
2014-10-13 20:31:14 +02:00
Juan Batiz-Benet
b204c21d10
add plumbing output + logging
...
Fixes #157
Found #158
2014-10-13 02:40:39 -07:00
Jeromy
bb84c232e1
make add command use absolute paths and print properly, issue #151
2014-10-10 13:46:51 -07:00
Jeromy
a7b69500b1
address concerns in PR and make log stuff more fun
2014-10-10 13:18:20 -07:00
Jeromy
96af2a1f81
pretty output
2014-10-10 13:18:20 -07:00
Jeromy
808cf9dfc0
fail with error when running diagnostic in offline mode
2014-10-10 13:18:19 -07:00
Jeromy
d5f0476c1c
implement diagnostics command
2014-10-10 13:18:19 -07:00
Juan Batiz-Benet
2fa43ce46c
ipfs name cmd improvements
...
- cleaned up cmd help
- ipfs name publish [<name>] <ref>
- ipfs name resolve [<name>]
- publish validates <ref>
- both validate n args
2014-10-09 03:39:47 -07:00
Jeromy
093c8fb04d
Rework package structure for unixfs and subpackage
...
cc @jbenet
2014-10-08 21:14:18 +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
77fccaa2f3
Obviated need for .ID.Pretty() all over the place.
2014-10-06 04:23:55 -07: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
Juan Batiz-Benet
ee1d1ac078
add: only show added once.
2014-10-04 03:56:12 -07: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
Juan Batiz-Benet
f923652d88
remove extra printf
2014-10-02 03:07:52 -07:00
Juan Batiz-Benet
b787c705e2
command output nit
2014-10-01 01:28:55 -07:00
Juan Batiz-Benet
1cfb0ffd05
command output nit
2014-10-01 01:28:20 -07:00
Juan Batiz-Benet
14a384d826
pin: add depth arg.
2014-10-01 01:26:48 -07:00
Juan Batiz-Benet
728f17d3c9
cmd/ipfs/pin.go now uses MakeCommand
...
+ added recursive pinning func
2014-10-01 01:17:27 -07:00
Juan Batiz-Benet
7cd9e4db3e
remove merge issue (logger)
2014-10-01 00:45:36 -07:00
Juan Batiz-Benet
f085d594aa
vendoring ipns things
2014-10-01 00:44:22 -07:00
Jeromy
6080944af9
writing files inside ipns works now! also implemented resolve cli command
2014-10-01 00:41:29 -07:00
Jeromy
e61c59758b
implement initial ipns filesystem interface as well as plumbing command for publishing
2014-10-01 00:39:57 -07:00
Jeromy
8ddfb57c59
some bugfixes and added logging
2014-10-01 00:26:59 -07:00
Jeromy
b5fd9492d7
fixes to make interface more usable
2014-10-01 00:25:52 -07:00
Jeromy
9c221719f9
switch over to using a lock file for daemon connections
2014-09-30 03:20:15 -07:00
Jeromy
727b6bf9a3
udpated commands and RPC dialing to work with new configuration changes
2014-09-27 16:02:50 -07:00
Juan Batiz-Benet
64ba4cd0df
output + linting
2014-09-22 04:06:17 -07:00
Juan Batiz-Benet
da20887e76
ipfs add should output hash to user
...
for now, ipfs add output format:
added <hash> <path>
...
(these commands will adhere to strict formats.)
2014-09-22 04:06:17 -07:00
Juan Batiz-Benet
74a0aa54ad
fixed [%s] bug
2014-09-22 04:06:17 -07:00
Jeromy
9e4b8586a9
Add config flag to cmd line interface
2014-09-17 02:49:36 +00:00
Jeromy
b55a5078a8
refactor daemon code, moved commands to core/commands
2014-09-12 21:29:54 +00:00
Jeromy
b2a218816d
initial hack at turning ipfs into a daemon, just implemented simple rpc at this point
2014-09-09 05:11:56 +00:00