Matt Bell
4ee3d39253
cmd/ipfs: Added key size to 'ipfs init' output
2015-01-23 19:14:59 -08:00
Matt Bell
5706471897
commands: Made PostRun signature match Run
2015-01-23 18:29:31 -08:00
Matt Bell
7b4de230eb
commands: Refactored Command#Run function signature to (req Request, res Response)
2015-01-23 18:29:29 -08:00
Matt Bell
856d2896a7
commands: Added PreRun function to command
2015-01-23 18:19:40 -08:00
Matt Bell
1281b25105
commands: Added PostRun function, called on the client
2015-01-23 18:19: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
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
b0596cd4ff
rename coreio to coreunix
2015-01-18 14:41:43 -08:00
Brian Tiger Chow
de45277883
doc(core, main)
2015-01-18 14:41:43 -08:00
Brian Tiger Chow
deb1bbe74f
fix(command/init) rm stale comment
2015-01-18 14:41:43 -08:00
Brian Tiger Chow
1291470bf0
use core_io/Add in commands/init/writeWelcomeFile
2015-01-18 14:41:42 -08:00
Brian Tiger Chow
4b5ff960c9
feat(core): use repo.Repo in core constructor
2015-01-18 14:41:42 -08:00
Brian Tiger Chow
884143bf9c
move generic packages to thirdparty (see thirdparty/README.md)
2015-01-18 14:04:45 -08:00
Brian Tiger Chow
6ec20b3574
huh
2015-01-14 03:02:23 -08:00
Brian Tiger Chow
40e41d24f7
feat(fsrepo): protect with a repo lockfile
...
NB: daemon is one spot the repo lock is typically acquired
2015-01-14 03:02:23 -08:00
Brian Tiger Chow
5705ea9859
style(init): -> errRepoExists
...
@jbenet
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
80c2e97692
refactor(main): use fsrepo to load config
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
Brian Tiger Chow
405afd2a02
refactor(config, repo): all writes go through FSRepo. next: privatize these
2015-01-13 03:09:31 -08:00
Brian Tiger Chow
c2877b2045
refactor(init, repo): init logs in fsrepo
2015-01-13 03:09:31 -08:00
Brian Tiger Chow
c5da1561b9
check datastore directory when opening the repo for use
2015-01-13 03:09:31 -08:00
Brian Tiger Chow
0d88f70c6e
feat(init): remove datastore path override
2015-01-13 03:09:31 -08:00
Brian Tiger Chow
fa4cfe8da2
refactor(init, fsrepo): go through repo to write to config
2015-01-13 03:09:30 -08:00
Brian Tiger Chow
a2d1e3395e
refactor(init): write config at top level
2015-01-13 03:09:30 -08:00
Brian Tiger Chow
44f3d95c3b
refactor(repo/fsrepo): use repo to check whether config exists
2015-01-13 03:09:30 -08:00
Brian Tiger Chow
5b3164de5c
refactor(repo/config) move config under repo
2015-01-13 03:09:30 -08:00
Juan Batiz-Benet
cac7e025b8
daemon: log error from gateway
2015-01-12 01:31:59 -08:00
Juan Batiz-Benet
4afb4e090f
daemon gateway async
2015-01-12 01:14:32 -08:00
Juan Batiz-Benet
2c83cd5627
daemon: only try gateway addr if there
2015-01-12 01:05:15 -08:00
Juan Batiz-Benet
f215eee3ed
gateway: cleaned up ServeHTTP func
2015-01-12 01:01:22 -08:00
Juan Batiz-Benet
ed41ac27fd
daemon: refactor common parts of serve funcs
2015-01-12 01:01:21 -08:00
Matt Bell
f39f3fe432
cmd/ipfs: Redirect requests to /webui to webui app
2015-01-11 22:15:33 -08:00
Matt Bell
b5300f1d27
cmd/ipfs: Added gateway MIME type resolution
2015-01-11 22:15:33 -08:00
Matt Bell
e25b08231c
cmd/ipfs: Renamed 'ipfsHandler' to 'gatewayHandler'
2015-01-11 22:15:33 -08:00
Matt Bell
cb84a376bd
cmd/ipfs: Added an ipfsHandler constructor
2015-01-11 22:15:33 -08:00
Simon Kirkby
64cb1b6bf8
CR updates
...
replaced H
moved internal errors into function.
Signed-off-by: Simon Kirkby <tigger@interthingy.com>
2015-01-11 22:15:33 -08:00
Simon Kirkby
32823d2085
Static Website serving and listing
...
adds
trailing slash redirection
index.html return
templated directory listing
Signed off : Simon Kirkby <tigger@interthingy.com>
2015-01-11 22:15:33 -08:00
Matt Bell
9119435cb6
cmd/ipfs: Added gateway server to daemon
2015-01-11 22:15:32 -08:00
Brian Tiger Chow
57b3ffa533
feat: new core constructor + config options (Standard, Online, Offline)
2015-01-11 01:23:25 -08:00
Juan Batiz-Benet
e1cde6bc8c
Merge pull request #462 from jbenet/feat/indirect
...
Implement recursive indirect block creation for DAGs
2015-01-06 12:08:28 -08:00
Jeromy
e3cf893616
implement recursive indirect blocks
...
improve efficiency of multilayered indirect blocks
clean up tests
panic cleanup
clean up logic, improve readability
add final root node to the dagservice upon creation
importer: simplified dag generation
test: updated hashes using latest code
@whyrusleeping this is why the sharness tests
were failing: the hashes are added manually to
make sure our generation doesn't change.
cleanup after CR
fix merkledag tests
fix small block generation (no subblocks!)
2015-01-06 19:43:56 +00: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
64cb32dadd
disable utp
...
utp is BROKEN!! it causes tests to fail.
2015-01-05 00:16:53 -08:00
Juan Batiz-Benet
cf62f63b58
better daemon + main exit semantics
2015-01-04 00:47:27 -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
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
Markus Amalthea Magnuson
dbefedbb2e
Fix typo.
...
”configurationx” -> ”configuration”
2014-12-14 20:55:29 +01:00
Juan Batiz-Benet
ac2be0b68b
util/log: SetDebugLogging
2014-12-12 02:45:22 -08:00
Brian Tiger Chow
fb45e7b7fb
fix: name
...
editing in the browser here goes nothing
2014-12-09 15:27:02 -08:00
Brian Tiger Chow
c2c95d1105
start threading context through the system
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-09 07:11:48 -08:00
Brian Tiger Chow
6780228765
fix: seed the random number generator
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-09 00:06:53 -08:00
Brian Tiger Chow
bd685045c8
fix: uranus and saturn IP addresses
...
Mistake: Saturn referred to the NY node and vice versa.
Correction: Fittingly, Uranus is in NY and _S_aturn is _S_ingapore.
I'll have to reboot the testnet to rectify the changes.
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-08 23:19:52 -08:00
Brian Tiger Chow
af01e0a53c
add names
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-07 17:45:49 -08:00
Brian Tiger Chow
7ea2b2d80e
feat(bootstrap!) add saturn, neptune, pluto, uranus
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-07 17:07:15 -08:00
Jeromy
e8536db351
make bitswap sub-RPC's timeout (slowly for now)
2014-12-05 20:53:33 +00:00
Jeromy
514b26e2b8
remove sigquit from handled signals
2014-12-05 20:53:33 +00:00
Brian Tiger Chow
8d6f2ed0bc
chore(main) move logging statement to more appropriate place
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-27 17:06:20 -08:00
Brian Tiger Chow
9e6177ef2e
log(main) add log event for executing pre-command hooks
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-25 06:16:39 -08:00
Brian Tiger Chow
b5dc686fda
feat(main) create root context
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-25 06:16:39 -08:00
Matt Bell
706ebe8d24
daemon: Set allowed API origins in API_ORIGIN environment variable
2014-11-25 06:12:35 -08:00
Brian Tiger Chow
90ed148209
fix(eventlog) apply settings upon initialization
...
This commit applies the logging settings to the logging system upon
initialization `ipfs init` and `ipfs daemon --init`.
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-24 16:05:51 -08:00
Brian Tiger Chow
4d497f1c6e
refactor(repo) mv ConfigureLogger to repo package
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
Conflicts:
cmd/ipfs/main.go
2014-11-24 16:05:51 -08:00
Brian Tiger Chow
2c38487eb0
fix(eventlog) configure logging if repo is initialized
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-24 16:05:51 -08:00
Christian Couder
8b8b6ce9e2
Remove dot and slash before files in cmd/ipfs/.gitignore
...
It looks like files are not ignored when they are listed
starting with ./ in a .gitignore file.
At least this is true for me on Linux for the "ipfs"
binary in "cmd/ipfs/.gitignore".
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-22 21:55:12 +01:00
Jeromy
34da5f039c
log formatting (info -> infof)
2014-11-21 03:54:26 +00:00
Juan Batiz-Benet
a1dcbbad80
init: note about addrs
2014-11-20 09:15:48 -08:00
Juan Batiz-Benet
1a5cb300cb
config: swarm is list of addrs
2014-11-20 09:14:48 -08:00
Juan Batiz-Benet
43452fdeb7
updated multiaddr + multiaddr-net
...
I broke out multiaddr/net to its own package so
that multiaddr parsing could remain lean. multiaddr-net
will vendor special implementations of protocols (like utp)
2014-11-20 00:58:48 -08:00
Juan Batiz-Benet
a7d1fd42d8
updating daemon addr output
2014-11-18 08:19:25 -08:00
Brian Tiger Chow
e12edd2053
fix(daemon) ensure IPFS is initialized before starting the daemon
...
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-18 06:42:44 -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
Juan Batiz-Benet
e290b54d9e
Merge pull request #351 from jbenet/mount-fixes
...
Mount, Daemon, and Signal Handler Fixes
2014-11-16 02:40:31 -08:00
Juan Batiz-Benet
4ac6db9a24
ipfs1/mount: text + unmounting
2014-11-16 02:35:13 -08:00
Juan Batiz-Benet
13c390b0b5
fix ipfs1 mount so it will compile
2014-11-16 02:30:29 -08:00
Jeromy
ab805f3382
add in a default file hash and cleaned up init functiona bit
2014-11-15 17:50:05 -08:00
Brian Tiger Chow
67bc9cc89d
feat(init) display peer id in init command
...
use case:
Just configured and installed a node.
benefits:
1) reduces friction when setting up a new node
2) reveals useful details about the workings of the system. It's the
user's first encounter with her node's identity. The tour can build on
the user's knowledge.
```
ipfs (maybebtc-november) λ. ipfs init -f
initializing ipfs node at /Users/btc/.go-ipfs
generating key pair
peer identity: QmcRbn41Vc2CvbpLYfN36mAWusErKWvAAHbq92LPra2gFT
```
2014-11-05 10:15:17 -08:00
Juan Batiz-Benet
c6b74207bc
config/init: init Version with CheckPeriod #265
2014-11-04 19:15:25 -08:00
Juan Batiz-Benet
866c2c8915
updates + config: moved location of current version number
2014-11-04 18:58:15 -08:00
Juan Batiz-Benet
3eb43d1cb4
mount: darwin osx fuse check fix
...
committed my test case accidentally :(
2014-11-01 22:38:13 -07:00
Juan Batiz-Benet
7972f3a7ee
fixed osx fuse checks
2014-11-01 22:38:12 -07:00
Jeromy
c7ef55a450
move OSX specific calls to build tagged files
2014-10-31 19:46:42 +00:00
Juan Batiz-Benet
ca1bf26744
check osxfuse version. Fixes #202 .
2014-10-31 10:10:12 -07:00
Brian Tiger Chow
7510ef2081
feat(cmd/ipfs1) add mem profiling in debug mode
...
TODO add memory profiling to ipfs2
2014-10-29 18:24:32 -07:00
Brian Tiger Chow
1e847059bc
style(cmd/ipfs/pprof) move defer close to initialization
2014-10-29 18:24:32 -07:00
Juan Batiz-Benet
0ee4b3ec77
tour list: left justify
2014-10-26 10:03:38 -07:00
Juan Batiz-Benet
6f7bab389e
tour: command
2014-10-26 08:32:08 -07:00
Juan Batiz-Benet
d8eb8b1191
ipfs cmd help now shows update
...
+ reorder of plumbing
2014-10-22 15:22:01 -07:00
Henry
4f42a26836
fixed --force flag for shutdown after update
2014-10-22 12:42:13 +02:00
Henry
0a0c38fb91
using @jbenet's industrial lipstick to clean this up
2014-10-22 11:25:30 +02:00
Henry
0115d1e0de
respect cfg.Version.Check
2014-10-22 11:25:30 +02:00
Henry
cb73ea7ba4
removed duplicate logic
2014-10-22 11:25:30 +02:00
Henry
81f84d6cea
updated error messages and explicit import names
2014-10-22 11:25:30 +02:00
Henry
8d41021b89
check AutoUpdate settings and apply
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
Henry
2806260f5c
use inconshreveable's go-update to check for updates
2014-10-22 11:24:34 +02:00
Jeromy
65385b37ea
fix rm flags
2014-10-22 00:28:41 -07:00
Jeromy
6f750572cd
add lock to pinner and rework cli
2014-10-22 00:28:41 -07:00
Jeromy
31b0ff0307
add testing for pins
2014-10-22 00:28:41 -07:00
Juan Batiz-Benet
9e3bfa28bb
Merge pull request #185 from cryptix/cmdObjects
...
object plumbing commands
2014-10-19 16:58:47 -07:00
Juan Batiz-Benet
e989d6febe
move IDFromPubKey to peer pkg
2014-10-18 04:28:26 -07:00
Juan Batiz-Benet
d2671afd66
command help spacing
2014-10-18 04:28:23 -07:00
Henry
02659c68b6
fix IPFS_DEBUG (was set after SetupLogging)
2014-10-18 12:03:47 +02:00
Henry
e735addbb2
object plumbing commands
2014-10-18 04:35:12 +02:00
Henry
0631a39492
cleaned up SetupLogging()
2014-10-15 14:23:54 +02:00
Henry
0557b1052d
updated cmdIpfsLog help text
2014-10-15 14:04:46 +02:00
Henry
ea76b66b7f
output these errors directly to the user
2014-10-15 14:00:03 +02:00
Henry
db1ac7499a
added help about wildcard
2014-10-15 13:36:14 +02:00
Henry
3455846b35
add log command
2014-10-15 13:18:00 +02:00
Henry
c98b0e83b4
use log.Error() config.PathRoot() and CmdIpfs.Dispatch() err
2014-10-15 13:18:00 +02:00
Juan Batiz-Benet
8f1c12efe0
addCmd -> nameCmd
...
Thanks to @cryptix
2014-10-14 03:15:02 -07:00
Henry
a269e46017
fix setupCmdContext() for subcommands ( fixes #163 )
2014-10-14 10:49:01 +02:00
Henry
f613af438c
updated help for block commands
2014-10-14 09:55:14 +02:00
Henry
4abba7bc03
put has no key argument (it's derived from the valfile)
2014-10-14 00:13:12 +02:00
Henry
5b635bb9ea
removed old examples from block help
2014-10-13 20:48:37 +02:00
Henry
f93732a9c5
added block get and put commands to daemon
2014-10-13 20:47:09 +02:00
Henry
08bb6f149f
templates for block commands (updates #138 )
2014-10-13 20:31:14 +02:00
Jeromy
bb84c232e1
make add command use absolute paths and print properly, issue #151
2014-10-10 13:46:51 -07:00
Jeromy
26574b5345
add net-diag to help message
2014-10-10 13:18:20 -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
5c14df0a13
turn logging back off for @jbenet's sanity
2014-10-10 13:18:19 -07:00
Jeromy
77cec59083
actually put diagCmd into the super command so it can be run
2014-10-10 13:18:19 -07:00
Jeromy
d5f0476c1c
implement diagnostics command
2014-10-10 13:18:19 -07:00
Jeromy
280c7e7e06
implement diagnostics service
2014-10-10 13:18:19 -07:00
Juan Batiz-Benet
7652f86c6f
fixed a parsing bug on Version.CheckPeriod
...
And refactored a few names/comments
2014-10-09 20:31:26 -07:00
Peter Borzov
b60f0d582f
Limit update checks to once per configurable time period to avoid HTTP request time delay
2014-10-09 19:59:47 -07:00
Peter Borzov
8b90071478
Clean up error/warning messages for consistency
2014-10-09 19:59:32 -07:00
Peter Borzov
98ba0be060
Move versioning/updates stuff to a separate package
2014-10-09 19:59:15 -07:00
Peter Borzov
9f7dc48201
Add supported Version.Check values as consts
2014-10-09 19:58:51 -07:00
Peter Borzov
4c167a42e2
Rename config.Updates to config.Version
2014-10-09 19:58:51 -07:00
Peter Borzov
bd9142f042
Turn on update checker for local nodes
2014-10-09 19:58:19 -07:00
Peter Borzov
f6650b0289
Check for updates:if github releases with higher tag semvers exist
2014-10-09 19:57:59 -07:00
Peter Borzov
c8678666e3
Save ipfs version used to initialize config
2014-10-09 19:57:59 -07:00
Peter Borzov
6f033dd7a1
Initialize Updates.check config setting
2014-10-09 19:57:59 -07:00
Peter Borzov
ecd6f3b00c
Add Updates.Check field to Config
2014-10-09 19:57:58 -07:00
Juan Batiz-Benet
ab83c52431
Merge branch 'master' into ipns
...
Conflicts:
cmd/ipfs/ipfs.go
2014-10-09 03:46:35 -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
Juan Batiz-Benet
ffe2bdceef
init SetupLoggers
...
this is useful so that loggers are all setup during tests
2014-10-08 02:50:42 -07:00
Jeromy
5ba2efc2b8
make tests pass
2014-10-08 04:25:51 +00:00
Juan Batiz-Benet
abefd93fb8
edited bootstrap cmd
...
- safer parsing
- multiple inputs
- add: dup detection
- common cfg writing
2014-10-06 02:14:05 -07:00
Juan Batiz-Benet
091f6f8516
added getConfig
2014-10-05 17:46:44 -07:00
Siraj Ravel
a2c2c48773
Implement ipfs bootstrap command.
...
This set of commits implements the bootstrap commands,
following from the description in #117
2014-10-05 17:18:42 -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
Jeromy
d872e0cce5
move publish and resolve under the 'name' subcommand
2014-10-02 22:30:50 +00:00
Juan Batiz-Benet
a76f6af1df
remove old cat
2014-10-02 03:33:20 -07:00
Juan Batiz-Benet
bc0769e370
ipfs + ipns mounts with flags + config
2014-10-02 03:05:49 -07:00
Juan Batiz-Benet
068c0375f9
bugfix: get to root cmd for config flag
2014-10-02 03:05:05 -07:00
Juan Batiz-Benet
7bf7afb7a9
logging on gen
2014-10-02 03:04:48 -07:00
Juan Batiz-Benet
e91b2b8aec
use makeCommand for publish + resolve
2014-10-02 02:50:55 -07:00
Juan Batiz-Benet
330ee8c79f
added command struct for makeCommand
2014-10-02 02:50:33 -07:00
Juan Batiz-Benet
2bd843123e
added command context initialization
2014-10-02 02:49:36 -07:00
Juan Batiz-Benet
381824477e
Bugfix: daemon wg sync
2014-10-02 00:12:36 -07:00
Juan Batiz-Benet
ee1ba164d0
fix arg bug
2014-10-02 00:09:32 -07:00
Juan Batiz-Benet
874d61270e
Bugfix: daemon wg sync
2014-10-02 00:04:34 -07:00
Jeromy
b6a59c90cf
add flag for ipfs mountpoint
2014-10-02 06:14:38 +00:00
Juan Batiz-Benet
aa79f38580
cleanup logging setup.
...
- should not be on init, because need debug flag
2014-10-01 02:02:48 -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
11a8826d4f
RPCAddress -> ddresses.API
2014-10-01 00:46:39 -07:00
Jeromy
9b0c578fc0
better cleanup of ipfs on program exit
2014-10-01 00:41:30 -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
375a38c5f7
add basic publish command, needs polish
2014-10-01 00:39:57 -07:00
Jeromy
16aa636273
allow ipns to be mounted by mount command
2014-10-01 00:38:32 -07:00
Jeromy
a65e8600a3
catch ipns branch up to master and make all things compile
2014-10-01 00:37:53 -07:00
Jeromy
c41a9717fe
make disconnects and reconnects work a little better
2014-10-01 00:26:59 -07:00
Jeromy
da1890e5ef
add run command
2014-10-01 00:26:59 -07:00
Jeromy
235a767492
implement namesys resolvers (thanks to bren2010 for dns and proquint)
2014-10-01 00:16:05 -07:00
verokarhu
c6c758d93f
fix compile error after rebase
2014-09-30 23:02:22 +03:00
verokarhu
0b0bee6fd5
switch to multiaddr and use /ipfs/ path in http api
2014-09-30 22:59:57 +03:00
verokarhu
7b22bdc68b
fix compile error after sync
2014-09-30 22:59:56 +03:00
verokarhu
600829b4e7
fix localNode call
2014-09-30 22:59:55 +03:00
verokarhu
d894d6382f
daemon listener to http serve code
2014-09-30 22:59:53 +03:00
verokarhu
8eb95faf50
moved http to server/http and implemented serve http subcommand
2014-09-30 22:59:53 +03:00
verokarhu
0a25b64f0a
implemented suggestions by whyrusleeping
2014-09-30 22:59:52 +03:00
verokarhu
e4941069ef
hostname flag to serve command
2014-09-30 22:59:51 +03:00
verokarhu
8831427c82
rudimentary HTTP POST support
2014-09-30 22:59:50 +03:00
verokarhu
bb924cab5b
add port flag to serve
2014-09-30 22:59:50 +03:00
verokarhu
0427d1efa1
beginnings of an http gateway/api
2014-09-30 22:59:50 +03:00
Jeromy
e311ccbf43
respect the lock file, also cpu profile
2014-09-30 03:22:29 -07:00
Jeromy
9c221719f9
switch over to using a lock file for daemon connections
2014-09-30 03:20:15 -07:00
Juan Batiz-Benet
ac1430456c
changed gitignore to accomodate atom
...
See https://github.com/atom/atom/issues/3660
2014-09-30 03:19:13 -07:00
Shanti Bouchez-Mongardé
832d84ef3c
When initializing datastore, create directory with correct permissions.
2014-09-29 21:54:35 +02:00
Shanti Bouchez-Mongardé
2a3ab23f1d
Check the datastore is writeable when initializing
2014-09-29 21:54:35 +02:00
Shanti Bouchez-Mongardé
e200c089fa
Correct style.
2014-09-29 21:54:35 +02:00
Shanti Bouchez-Mongardé
7705dfb939
Refactor config file location, add IPFS_CONFIG_DIR
...
Removed config.Filename and replace it with config.GetConfigFilePath that
takes a configuration directory as argument instead. Makes code simpler.
ipfs.getConfigDir now also return the default configuration dir instead of
an empty string in some cases.
2014-09-29 21:54:35 +02:00
Shanti Bouchez-Mongardé
73077d1f72
Implement ipfs init -d (change datastore location)
2014-09-29 21:54:08 +02:00
Jeromy
68f1a1a260
update readme and a couple comments
2014-09-27 18:50:38 -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
303ebd894d
config: changed language from Peers to Bootstrap
2014-09-24 05:31:25 -07:00
Juan Batiz-Benet
193aebc4c0
config: rename addresses
...
WARNING: change breaks old configs.
@whyrusleeping @perfmode
This commit changes the way addresses are stored in config files.
It lumps Identity.Address and RPCAddress into Addresses. This
commit also fixes several golint issues.
2014-09-24 05:28:35 -07:00
Jeromy
7bc4fbfa5d
turn logging on by default, also make Provide not fail when no peers connected
2014-09-22 19:22:04 -07:00
Juan Batiz-Benet
81b4b38140
RPC Address init + checks
2014-09-22 04:06:17 -07:00
Juan Batiz-Benet
1653304129
adjusted what Address means in config
...
There are (so far) two sorts of addresses that peers care about:
- peer network addresses, local to listen, saved to bootstrap.
`config.Identity.Address`
- peer RPC network address, local RPC tcp endpoint
`config.RPCAddress`
@whyrusleeping @perfmode
2014-09-22 04:06:17 -07:00
Juan Batiz-Benet
6807b6e98e
added mars.i.ipfs.io as a bootstrap node
...
In the future, let's have a (signed) list of bootstrap
nodes. Ideally just a list of ipfs multiaddrs (with node.ID)
2014-09-22 04:06:17 -07:00
Juan Batiz-Benet
b053896e5f
uncommenting global debug
...
let's keep this a turn-on for testing sort of thing.
(want the outputs of commands like `ipfs add` to be
usable as inputs to other programs/scripts).
maybe we should consider adding a --debug (not -d),
once we figure out adding flags that apply globally :)
@whyrusleeping
2014-09-22 04:06:17 -07:00
Juan Batiz-Benet
74a0aa54ad
fixed [%s] bug
2014-09-22 04:06:17 -07:00
Juan Batiz-Benet
d1c4ffba7c
init -f fix and output
2014-09-22 04:06:16 -07:00
Juan Batiz-Benet
d17fcc1780
fix security comment #92
2014-09-22 04:06:16 -07:00
Brian Tiger Chow
556da76b2c
fix(cmd:ipfs) import err identify -> spipe
2014-09-22 04:05:15 -07:00
Jeromy
2607bee4d6
Change config flag to accept config dir instead of file path
2014-09-17 06:03:58 +00:00
Jeromy
9e4b8586a9
Add config flag to cmd line interface
2014-09-17 02:49:36 +00:00
Jeromy
0ec9dce19c
Merge branch 'master' of github.com:jbenet/go-ipfs into daemon
...
Conflicts:
core/core.go
2014-09-14 04:22:05 +00:00
Jeromy
35a87e9d07
expand path names for add command, and pass errors up even more
2014-09-13 04:42:48 +00:00
Jeromy
b55a5078a8
refactor daemon code, moved commands to core/commands
2014-09-12 21:29:54 +00:00
Jeromy
ec40a29b3d
change ExecuteCommand to return an error
2014-09-12 19:11:54 +00:00
Juan Batiz-Benet
5a41a2ac07
Merge pull request #54 from jbenet/fix/config-test
...
fix(config) failing test
2014-09-12 10:59:43 -07:00
Siraj Ravel
256db0b52b
Merge pull request #1 from jbenet/master
...
give
2014-09-12 10:32:00 -07:00
Brian Tiger Chow
a5c0f67c8c
fix(config) failing test
...
also replace *Datastore with Datastore
2014-09-12 04:20:46 -07:00
Matt Bell
fbec97982f
cmd/init: Fixed init checking if config exists
2014-09-11 13:07:38 -07:00
Siraj Ravel
b88ee2870a
golint cleanup
2014-09-11 12:25:52 -07:00
Jeromy
8dfb119fa6
Merge branch 'master' of github.com:jbenet/go-ipfs
...
Conflicts:
cmd/ipfs/add.go
cmd/ipfs/cat.go
cmd/ipfs/ls.go
cmd/ipfs/mount_unix.go
2014-09-10 06:28:15 +00:00
Brian Tiger Chow
7968b45e58
vendor dependencies with godep
...
dependencies are vendored into Godeps/_workspace and commit versions are
recorded in Godeps.json
update datastore to e89f0511
update go.crypto
2014-09-09 22:39:42 -07: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
Jeromy
275b03f814
rework dagreader to have a dagservice for node resolution
2014-09-06 22:11:44 +00:00
Jeromy
dad9751754
implement a basic data format for data inside dag nodes
2014-09-05 20:47:55 +00:00
Jeromy
eeab5f9bd9
fix issue with blocks not actually being stored via dagservice
2014-09-04 03:37:29 +00:00
Jeromy
4b97f1f270
create new crypto package and make rest of repo use it
2014-09-03 20:15:10 +00:00
Jeromy
aa5a34a6d1
add init command to generate crypto keys
2014-09-02 12:58:35 -07:00
Jeromy
c2cc4b1d70
a little cleanup, ipfs 'works' for basic file adds and cats
2014-08-29 17:22:40 -07:00
Jeromy
691d1b36bb
integrate bitswap and blockservice into the core package
2014-08-29 11:34:50 -07:00
Juan Batiz-Benet
668a90f6b6
use Printf in cat
2014-08-20 18:27:42 -07:00
verokarhu
fef46e44f8
mount command on windows returns an error instead of nil and adjusted unix-only code
2014-08-01 00:51:43 +03:00
verokarhu
dcd0bac8e5
disable mount command on windows for now
2014-07-31 20:04:05 +03:00
Juan Batiz-Benet
639d196a45
linted config
2014-07-31 02:35:17 -07:00
Juan Batiz-Benet
80323ebae8
config: redo to use other serialization functions
2014-07-31 02:32:03 -07:00
Juan Batiz-Benet
bf7cb198ea
config: cleaned up ipfs config cmd
2014-07-31 01:08:37 -07:00
Peter Borzov
20bce47491
ipfs config cmd with git-style get/set
...
Adds "ipfs config" command designed in git style.
See specific config's values with:
$ipfs config datastore.path
~/.go-ipfs/datastore
Assign a new value with:
$ipfs config datastore.path ~/.go-ipfs/datastore
Open the config file in your default $EDITOR:
ipfs config edit
2014-07-31 00:24:41 -07:00
Juan Batiz-Benet
4fcdb23bd1
cli readme
2014-07-22 02:34:29 -07:00
Juan Batiz-Benet
140317007e
use go install
2014-07-22 02:31:10 -07:00
Juan Batiz-Benet
6626e6791b
cli -> cmd/ipfs
2014-07-22 02:30:32 -07:00