Hector Sanjuan
8e63ddf7c8
fix json
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-04-19 12:13:33 +02:00
Hector Sanjuan
df59b29fdc
Extract exchange/offline to go-ipfs-exchange offline
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-04-19 12:07:36 +02:00
Hector Sanjuan
9955208f8b
Extract: exchange/interface.go to go-ipfs-exchange-interface
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-04-19 12:07:30 +02:00
Whyrusleeping
8c00a74190
Merge pull request #4846 from ipfs/feat/profile-help
...
Fix missing profile docs
2018-04-08 09:42:08 +09:00
Łukasz Magiera
b290286dd7
misc: Fix a few typos
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-30 09:47:22 +02:00
Łukasz Magiera
2ee5cfb90f
fix error style
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-30 09:43:27 +02:00
Whyrusleeping
fa9489ef72
Merge pull request #4631 from ipfs/refactor/extract-fs-lock
...
refactor: extract fs lock into go-fs-lock
2018-03-29 17:59:04 -07:00
Whyrusleeping
9ed9ab5772
Merge pull request #4807 from ipfs/feat/coreapi/refactor-opts
...
coreapi: Refactor options
2018-03-29 16:53:42 -07:00
dignifiedquire
816787448f
refactor: extract fs lock into go-fs-lock
...
License: MIT
Signed-off-by: dignifiedquire <dignifiedquire@gmail.com>
2018-03-29 12:22:33 -07:00
Steven Allen
3b0e16e38b
infer type from CID when possible in ls command
...
We don't need to fetch the linked node when it's a raw node, we already know
it's a file.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-28 19:53:55 -07:00
Hector Sanjuan
954ad6e679
Re-order imports in core/mock/mock.go
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-03-26 22:12:14 +02:00
Hector Sanjuan
69a6bd2770
Revert go-libp2p-kad-dht and related changes to a working version
...
This uses a working libp2p-kad-dht and libp2p-record libraries,
reverts the changes that were introduced to support the newer versions
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-03-26 22:12:14 +02:00
Hector Sanjuan
30cf14ef9e
Replace the rest of thirdparty/datastore2 with go-datastore
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-03-26 22:12:14 +02:00
Hector Sanjuan
3ee1d76d88
Update to latest go-datastore
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-03-26 22:12:14 +02:00
Łukasz Magiera
57d6a7c2db
Fix missing profile docs
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-26 19:16:57 +02:00
Whyrusleeping
a98a4f40d3
Merge pull request #4873 from ipfs/fix/4871
...
make the tar writer handle sharded ipfs directories
2018-03-25 12:47:40 -07:00
Łukasz Magiera
12c3179614
coreapi: don't use underscores in opt reciever funcs
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-25 14:09:59 +02:00
Łukasz Magiera
c354e19628
coreapi: use defined functions for pin type option
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-25 13:58:29 +02:00
Whyrusleeping
b1b96fc9db
Merge pull request #4856 from ipfs/fix/stats-bs-header
...
cmds/stat: remove useless header if not polling
2018-03-24 19:50:22 -07:00
Łukasz Magiera
79f56c1831
coreapi: remove options from interfaces
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-24 23:25:11 +01:00
Steven Allen
6895fc653f
return a nice error when listing sharded directories
...
Unfortunately, fixing this would require breaking the API.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-23 16:03:02 -07:00
Steven Allen
70bf571742
bump tar dep to make it resolvable
...
It wasn't pinned and `gx publish -f` gave a different hash.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-23 10:53:55 -07:00
Whyrusleeping
41d82eeeb5
Merge pull request #4733 from dirkmc/feat/namesys-value-count
...
Add options for record count and timeout for resolving DHT paths
2018-03-23 09:59:26 -07:00
Whyrusleeping
1fb90ad62c
Merge pull request #4857 from ipfs/extract/thirdparty-tar
...
Extract: thirdparty/tar
2018-03-23 09:41:31 -07:00
Whyrusleeping
4f601a0ec0
Merge pull request #4859 from ipfs/fix/govet
...
Fix go vet warnings
2018-03-23 09:10:43 -07:00
Whyrusleeping
6b180b2f7c
Merge pull request #4832 from ipfs/fix/bootstrap-cmd-prefix
...
Use prefix in bootstrapWritePeers
2018-03-22 23:32:47 -07:00
Whyrusleeping
aaf6ee78cc
Merge pull request #4809 from djdv/fix/get/outpath
...
Fix get output path
2018-03-22 23:29:17 -07:00
Whyrusleeping
e99b91a644
Merge pull request #4802 from ipfs/feat/coreapi/split-iface
...
coreapi: Split the interface into multiple files
2018-03-22 23:27:22 -07:00
Whyrusleeping
59ad0f8c4b
Merge pull request #4755 from schomatis/fix/add/hash-only
...
add: hash-only: set the prefix for MFS root
2018-03-22 23:18:23 -07:00
Whyrusleeping
a9dfe410d2
Merge pull request #4563 from ipfs/fix/block-mhtype
...
commands/block: use CIDv1 with custom mhtype
2018-03-22 23:03:56 -07:00
Dirk McCormick
494f242b76
Parse string time (eg 30s) instead of assuming seconds for —-dht-timeout
...
License: MIT
Signed-off-by: Dirk McCormick <dirkmdev@gmail.com>
2018-03-22 12:52:09 -04:00
Łukasz Magiera
221652fcfb
fix govet warnings
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-22 17:31:22 +01:00
Hector Sanjuan
9a2f2976f2
Use latests tar-utils
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-03-22 00:28:44 +01:00
Hector Sanjuan
5bbaa75bea
Extract: thirdparty/tar
...
This module was sort of extracted to whyrusleeping/tar-utils long ago.
I gxed that, imported commits from go-ipfs to the current state, and
extracted it.
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-03-21 18:02:25 +01:00
Jakub Sztandera
21fae5bfad
cmds/stat: remove useless header if not polling
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-21 15:36:58 +01:00
Łukasz Magiera
bfdfb8d9cd
pin cmd: fix pinLsAll context use
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-21 01:34:04 +01:00
Łukasz Magiera
ae528640d9
misc: Remove some dead code
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-21 01:34:04 +01:00
Steven Allen
7824c2cf4e
check arguments after handling help
...
otherwise, we block on required arguments from stdin before processing the help
flag.
fixes #4837
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-19 15:58:34 -07:00
Łukasz Magiera
ed54f58df7
use prefix in bootstrapWritePeers
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-19 01:36:51 +01:00
Steven Allen
45fd7d213f
pre-populate required arguments from request body
...
This way, we can always assume that indexing a required argument works.
Also:
* test that the command tree doesn't have any obvious bugs (duplicate options,
arguments in the wrong order, etc).
* simplify the usage ParseBodyArgs.
* remove unnecessary check in the get command.
fixes #4823
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-03-18 13:04:25 -07:00
Whyrusleeping
958483f6bc
Merge pull request #4822 from ipfs/fix/emit-once
...
fix: use EmitOnce where only single response is to be sent
2018-03-17 11:35:17 -07:00
Jeromy
116269a12b
upgrade commands that used StringArguments
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-03-16 20:06:54 -07:00
Jakub Sztandera
ead64854e6
cmd/pubsub: fix pubsub peers format brakage
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-17 02:48:27 +01:00
Jakub Sztandera
42d1aa5bf7
cmd/pubsub: fix pubsub ls emiting plain strings instead of JSON
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-16 14:01:37 +01:00
Jakub Sztandera
59178057a2
fix: use EmitOnce where only single response is to be sent
...
Part of #4818
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-16 10:17:34 +01:00
Dominic Della Valle
dcd7e6c187
Fix get output path
...
Minor but important change for platform native output paths
License: MIT
Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>
2018-03-12 10:44:31 -04:00
Łukasz Magiera
efb74199bf
commands/block: don't use default for -f
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-10 23:44:34 +01:00
Łukasz Magiera
e54a4f8dd5
coreapi: var block for errors
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-10 22:17:27 +01:00
Łukasz Magiera
fa0fef336d
coreapi: minor doc fixes
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-10 18:52:10 +01:00
Łukasz Magiera
f218b69e47
coreapi: split the interface into multiple files
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-10 18:46:45 +01:00
Łukasz Magiera
eff69bbf37
coreapi: don't alias ipld types
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-10 18:31:28 +01:00
Łukasz Magiera
20b59ec1ec
coreapi: move unixfs errors to the top
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-03-10 18:27:21 +01:00
Whyrusleeping
13887ff2c7
Merge pull request #4751 from ipfs/feat/safe-cid
...
Disallow usage of unsafe hashes for reading and adding content
2018-03-05 12:25:26 -08:00
Jeromy
dd40a5a2d5
fix pubsub pub reading stdin args
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-03-05 11:45:11 -08:00
Whyrusleeping
bea666f3cd
Merge pull request #4725 from MichaelMure/filesstatlocal
...
make files stat --with-local return immediately when no data is present
2018-03-05 09:39:34 -08:00
Jakub Sztandera
51bf1b6cd4
Significanly improve GC UX with verifcid
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-04 01:43:42 +01:00
Jakub Sztandera
a9417a144c
fix ipfs pin verify --verbose not working
...
Resolves https://github.com/ipfs/go-ipfs/issues/4761
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-04 01:38:17 +01:00
Jakub Sztandera
bcedd38c9a
//hash -> // hash
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-04 01:38:17 +01:00
Jakub Sztandera
578cb240d4
Move the temporary packages to thirdparty
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-04 01:38:17 +01:00
Jakub Sztandera
c30422d790
Enforce Cid security rules for getting and adding blocks
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-03-04 01:38:17 +01:00
Lucas Molas
5d7e8a893d
add: hash-only: set the prefix for MFS root
...
Fixes #4652 .
License: MIT
Signed-off-by: Lucas Molas <schomatis@gmail.com>
2018-03-02 15:46:02 -03:00
RideWindX
fbc495db4c
Fix "PNetFingerpint" field typo of core.IpfsNode
...
License: MIT
Signed-off-by: Jason Chang <ridewindx@163.com>
2018-03-01 22:17:10 +01:00
Dirk McCormick
5202f76d1f
Syntactic changes
...
License: MIT
Signed-off-by: Dirk McCormick <dirkmdev@gmail.com>
2018-03-01 15:09:25 -05:00
Dirk McCormick
e8f79c8803
Use variadic options
...
License: MIT
Signed-off-by: Dirk McCormick <dirkmdev@gmail.com>
2018-02-28 16:57:58 -05:00
Dirk McCormick
5096025df2
Fix gateway test
...
License: MIT
Signed-off-by: Dirk McCormick <dirkmdev@gmail.com>
2018-02-25 20:46:55 -05:00
Dirk McCormick
1abf8366ee
Add options for record count and timeout for resolving DHT paths
...
License: MIT
Signed-off-by: Dirk McCormick <dirkmdev@gmail.com>
2018-02-23 11:47:30 -05:00
Michael Muré
e2bad6ec5e
make files stat --with-local return immediately when no data is present
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-21 18:41:40 +01:00
Steven Allen
45756b6d64
fix a bunch of go vet errors
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-02-20 17:37:35 -08:00
Steven Allen
2c68c15407
update go-ipfs-cmds
...
* May fix #4670
* Fixes #4683
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-02-20 16:43:00 -08:00
Whyrusleeping
2ee4543c3e
Merge pull request #4713 from ipfs/feat/split-path-resolver
...
Feat: Separate "path" from "path/resolver"
2018-02-20 09:55:36 -08:00
Jeromy
d01bb650b3
dont use bitswap session for cat just yet
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-02-15 16:44:18 -08:00
Hector Sanjuan
93d1a695d4
Feat: Separate "path" from "path/resolver"
...
Currently the "path" module does two very different things:
* Defines how ipfs paths look like and provides tools to parse/split etc.
* Provides a resolver to resolve paths.
This moves the resolver stuff to `path/resolver` and leaves the
path utilities in `path`.
The result is that now the IPFS `path` package just defines what a path
looks like and becomes a module that can be exported/re-used without problems.
Currently there are circular dependency cycles (resolve_test -> merkledag/utils,
merkledag->path), which the prevent the export of merkledag itself.
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-16 00:20:30 +01:00
Hector Sanjuan
758e00bc4c
Extract blocks/blockstore package to go-ipfs-blockstore
...
This extracts the blocks/blockstore package and renames the
blocks/blockstore/util package to /blocks/blockstoreutil
(because util depends on Pin and I don't plan to extract
Pin and its depedencies).
The history of blocks/blockstore has been preserved. It has
been gx'ed and imported. Imports have been rewritten accordingly
and re-ordered.
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-15 18:03:41 +01:00
Whyrusleeping
28acec2adb
Merge pull request #4703 from ipfs/extract/routing
...
Extract: routing package to github.com/ipfs/go-ipfs-routing
2018-02-14 12:33:22 -08:00
Whyrusleeping
10b96a39de
Merge pull request #4557 from elopio/patch-1
...
update link to filestore experimental status
2018-02-14 12:31:53 -08:00
Hector Sanjuan
54d87b4ce0
Extract: routing package to github.com/ipfs/go-ipfs-routing
...
This extracts the routing package to its own repository
(https://github.com/ipfs/go-ipfs-routing ). History has
been preserved. The new module has been gx'ed and published.
Imports have been rewritten and re-ordered accordingly.
An internal dependency to go-ipfs/repo has been removed
by substituting it with the go-datastore.Batching interface.
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-14 18:33:52 +01:00
Hector Sanjuan
d7cd059165
Doc: golint: remove stuttering in pin package
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-13 13:00:48 +01:00
Whyrusleeping
25eeb1e250
Merge pull request #4638 from MichaelMure/statlocal
...
add a --with-local option to ipfs files stat
2018-02-08 14:21:16 -08:00
Hector Sanjuan
381977476f
Extract: chunker: rename "chunk" to "chunker" as it is more consistent
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-08 12:49:39 +01:00
Hector Sanjuan
76d228cf75
Extract chunker: Use last gx'ed go-ipfs-chunker
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-08 12:43:29 +01:00
Hector Sanjuan
1811425aab
go-ipfs-chunker: Use the stable gx'ed release
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-08 12:34:51 +01:00
Hector Sanjuan
c613fbec38
WIP: Extract: importers/chunk module as go-ipfs-chunker
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-08 12:34:15 +01:00
Dirk McCormick
5e8c9481ee
namesys: verify signature in ipns validator
...
License: MIT
Signed-off-by: Dirk McCormick <dirkmdev@gmail.com>
2018-02-07 16:18:12 -05:00
Hector Sanjuan
bb061d615c
Extract posinfo package to github.com/ipfs/go-ipfs-posinfo
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-07 13:39:53 +01:00
Łukasz Magiera
242c98f44f
coreapi: update after rebase
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-02-04 15:29:50 +01:00
Łukasz Magiera
5ea9a3cde2
coreapi: pin tests
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-02-04 15:29:50 +01:00
Łukasz Magiera
c8cfed5c84
coreapi: implement pin api
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-02-04 15:29:50 +01:00
Łukasz Magiera
064c194b4f
coreapi: pin draft
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-02-04 15:29:50 +01:00
Michael Muré
30d4eaa067
address code review
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-04 01:58:09 +01:00
Michael Muré
189c905f40
fix linting
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-04 01:52:49 +01:00
Kevin Atkinson
eeb15db140
Move files.go out of its own directory.
...
It is a single file so putting it in its own package is a bit of an
overkill.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-02-04 01:52:49 +01:00
Michael Muré
cac995e704
cleaning
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-04 01:52:49 +01:00
Michael Muré
69b8383e1c
add a --with-local option to ipfs files stat
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-04 01:51:37 +01:00
Michael Muré
d716a93fae
ipfs files stat: use go-ipfs-cmds
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-04 01:51:37 +01:00
Michael Muré
53c42fc4d3
ipfs files: use go-ipfs-cmds
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2018-02-04 01:51:37 +01:00
Łukasz Magiera
04e43b855b
make repo gc call CollectGarbage on datastore
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-02-04 01:16:06 +01:00
Whyrusleeping
d58da74746
Merge pull request #4548 from ipfs/feat/coreapi/block
...
coreapi: Block API
2018-02-03 15:38:11 -08:00
Whyrusleeping
d1a3fccd34
Merge pull request #4637 from ipfs/gx/update-go-log
...
gx: update go-log
2018-02-03 15:30:42 -08:00
Whyrusleeping
8e6519bd5a
Merge pull request #4640 from ipfs/doc/godoc-importer
...
Docs: golint-ify "importers" module
2018-02-03 15:30:27 -08:00
Łukasz Magiera
e77b938161
coreapi: update block after update
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-02-02 22:57:54 +01:00
Jeromy
1de040d0b7
Use a bitswap session for 'Cat'
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-02-02 12:25:20 -08:00
Łukasz Magiera
8c176d26eb
commands/block: use CIDv1 with custom mhtype
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-02-02 01:56:41 +01:00
Hector Sanjuan
5d90aa2a8f
Docs: golint-ify "importers" module
...
This fixes all golint warnings in the importers module, adding
documentation and module descriptions.
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-02-01 23:47:38 +01:00
Steven Allen
b2cbfd299c
gx: update go-log
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-31 21:54:22 -08:00
Whyrusleeping
92226a1ea2
Merge pull request #4626 from soenkehahn/patch-1
...
fix typo
2018-01-30 23:24:07 -08:00
Steven Allen
41d9daf653
minor drive-by code cleanup
...
We'll dedup the code later, for now:
1. Don't drop errors on the floor.
2. Don't modify anything returned by `Links()` directly...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-30 20:51:05 -08:00
Sönke Hahn
c03c41994d
fix typo
...
License: MIT
Signed-off-by: Sönke Hahn <SoenkeHahn@gmail.com>
2018-01-30 21:15:23 -05:00
Łukasz Magiera
bb6bf4ce53
coreapi: block tests
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-01-31 00:31:08 +01:00
Łukasz Magiera
b125c89ac7
corapi: block docs
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-01-31 00:31:08 +01:00
Łukasz Magiera
bdc9f6a96a
coreapi: implement block API
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-01-31 00:31:08 +01:00
Łukasz Magiera
219eae7614
coreapi: draft block API
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-01-31 00:31:08 +01:00
Steven Allen
9c67eb4cf0
fix the coreapi/object import grouping
...
(while we're at it)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-30 14:22:39 -08:00
Steven Allen
fbf8f5ddbd
rename go-ipld-format package name from node to ipld
...
...to match the recent mass rename in #4610 .
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-30 14:21:24 -08:00
Steven Allen
b1dbc1c487
fix hidden merge conflicts
...
Oh for a CI that runs on merge...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-30 14:16:14 -08:00
Whyrusleeping
4d8b3c9bce
Merge pull request #4492 from ipfs/feat/coreapi/object
...
coreapi: Basic object API implementation
2018-01-30 13:14:06 -08:00
Steven Allen
f9d935b984
rename import of go-ipld-format from node/format to ipld
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-29 11:55:34 -08:00
Steven Allen
f1aba9764f
fix error in test case
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-29 11:32:34 -08:00
Steven Allen
faae63fcf1
handle error from changed NewFloodSub method
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-28 14:11:05 -08:00
Steven Allen
5acbecc26b
update go-lib2p-loggables
...
fixes a UUID bug I introduced (UUIDs were always an error value)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-27 18:05:30 -08:00
Steven Allen
1159abd83e
cmds: can't call SetError after SetOutput
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-25 18:02:59 -08:00
Steven Allen
d154b4a990
merkledag: switch to new dag interface
...
Also:
* Update the blockstore/blockservice methods to match.
* Construct a new temporary offline dag instead of having a
GetOfflineLinkService method.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-25 15:13:19 -08:00
Steven Allen
8899e98670
fix tests that use invalid peer IDs
...
Our code now better validates peer IDs.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-25 14:32:40 -08:00
Łukasz Magiera
0377e49590
coreapi: object API tests
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-01-25 18:26:57 +01:00
Łukasz Magiera
f6663bd05d
coreapi: implement object.Put
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-01-25 18:25:05 +01:00
Łukasz Magiera
64e2327e22
coreapi: object docs
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-01-25 18:25:05 +01:00
Łukasz Magiera
ae949e3a93
coreapi: Object api review
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-01-25 18:25:05 +01:00
Łukasz Magiera
529f84726e
coreapi: Basic object API implementation
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-01-25 18:25:05 +01:00
Steven Allen
d82b5272b9
switch to fast base58 library
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-24 19:10:31 -08:00
Steven Allen
fe8846fcd7
gx: mass update
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-24 15:58:44 -08:00
Whyrusleeping
cfdcd9802f
Merge pull request #4599 from ipfs/feat/doc-interfaces
...
Feat/doc interfaces
2018-01-24 14:02:39 -08:00
Jeromy
a10d1f46dd
fix stats bw --poll output
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-01-24 12:37:26 -08:00
Steven Allen
a784589d2a
don't set origins twice
...
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-23 23:36:51 -08:00
Steven Allen
20a044e383
fix a race and a potential race in http options
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-23 23:36:47 -08:00
Steven Allen
5127ef4970
remove rawblocks -> cidv1 constraint on add command
...
We probably should have this but it's a breaking change.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-23 21:42:58 -08:00
Steven Allen
418bb65d9d
fix doc comment on CommandsROOption
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-23 20:27:15 -08:00
Steven Allen
31bb782e77
fix code-climate issues
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-23 20:04:45 -08:00
Steven Allen
4909c5a56d
correctly handle add flag constraints
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-23 12:30:55 -08:00
Steven Allen
fcef972cda
restore call to getOutPath function
...
It strips the last `/` which was part of a partial fix for #3729 . Unfortunately,
it's not a *real* fix but we might as well leave this as it is until we
completely fix it.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-23 12:13:37 -08:00
Steven Allen
2f964d40e8
forbid bad compression levels
...
(instead of allowing -1 and treating it as "use default")
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-23 11:55:04 -08:00
Steven Allen
888c5fc437
remove useless cast
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-23 11:54:56 -08:00
Steven Allen
9cc6285be1
remove debugging print statement
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-23 11:54:50 -08:00
ForrestWeston
1c1149675e
docs for coreunix add method impls
...
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
2018-01-22 16:25:00 -08:00
ForrestWeston
8637bbce9e
docs for coreapi unixfs method impls
...
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
2018-01-22 16:25:00 -08:00
ForrestWeston
600bd08a72
docs for coreapi name method impls
...
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
2018-01-22 16:25:00 -08:00
ForrestWeston
252ddc8295
docs for coreapi key method impls
...
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
2018-01-22 16:25:00 -08:00
ForrestWeston
132c939d24
interface docs for coreapi interface
...
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
2018-01-22 16:25:00 -08:00
ForrestWeston
704534e51c
docs for coreapi dag method impls
...
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
2018-01-22 16:24:59 -08:00
ForrestWeston
1eee9e207d
docs for coreapi method impls
...
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
2018-01-22 16:24:59 -08:00
ForrestWeston
738f1824f2
docs for core/core method impls
...
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
2018-01-22 16:24:52 -08:00
ForrestWeston
e5f2f56b6c
docs for core builder NewNode method
...
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
2018-01-22 14:53:17 -08:00
Jeromy
a17f8c0e17
fix changes from recent commands
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-01-21 11:14:26 -08:00
Jeromy
176d15656d
update go-ipfs-cmds, fix context closing issue
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-01-21 11:11:47 -08:00
Steven Allen
0bdc2574ce
update go-ipfs-cmds
...
Fix a nil pointer exception when no timeout is set and an HTTP request fails.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-21 11:11:47 -08:00
Steven Allen
652ac620b1
golint: documentation fixes
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-21 11:11:47 -08:00
Steven Allen
9080a588d8
golint: fix variable name
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-21 11:11:47 -08:00
Steven Allen
6bf29205bc
remove progress bar size hack
...
Compute the size in the PostCmd instead of the PreCmd.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-21 11:11:47 -08:00
Steven Allen
5583c442bf
fix commands list test
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-21 11:11:47 -08:00
Steven Allen
d256c5ba38
avoid using the TODO context in tests
...
Instead, properly create and cancel the context.
(also, use subtests)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-21 11:11:47 -08:00
Steven Allen
cddef3ec5e
use PostRunMap when constructing PostRun in commands
...
Writing out the full type explicitly is ugly and verbose.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-21 11:11:47 -08:00
Jeromy
bf804cca66
update to final cmds1.0
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-01-21 11:11:47 -08:00
Jeromy
267c19ab9d
some fixes for latest from go-ipfs-cmds
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2018-01-21 11:11:47 -08:00
keks
d93c0b6a4b
Revert "use *oldcmds.Context consistently instead of non-ptr"
...
This reverts commit 852adb1c4a42a254286ac26b3bae7ea3a7bb69df.
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
8061117e0c
core/commands: add TestROCommands
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
aec44bc430
use *oldcmds.Context consistently instead of non-ptr
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
091eeee243
update go-ipfs-cmds
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
1cc7e2a28e
update go-ipfs-cmds
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
8f24d8e211
cleanup
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
7b1963906b
update go-ipfs-cmds yet again
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
b23c3295e6
update go-ipfs-cmds
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
94266bf2e4
update go-ipfs-cmds
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
27b43612b6
fix refs handling on gateway
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
52bc298230
fix ServerNameOption
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
8294f0a345
remove test for deleted fuction
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
fbc36b8962
update dependencies and update TODO
...
broken sharness test t0110 has been fixed in master
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
7d57def06e
remove dead code, update TODO
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
e8ad094448
add TODO
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
feef5c3415
cmds: use Executors
...
- some fixes for cmds1.0
- reinsert plugin loading code, pretty print wrapper
TODO:
if plugin loading fails it only calls log.Warning.
returning an error would be better but that would have
to happen after PreRun, which is not possible atm.
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
84101c8a2a
go test passes, sharness fails
...
pass API path to cmds, fix options in add.
License: MIT
Signed-off-by: keks <keks@cryptoscope.com>
2018-01-21 11:11:47 -08:00
keks
9965861b86
fmt
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
c1d6230bc0
check api version in corehttp
...
- add comments, trim api path prefix
- corehttp: add option to set HTTP header "Server"
- daemon: use new corehttp options
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
keks
bd9576fa57
start adopting cmds3.0 - lots of errors!
...
- move go-ipfs-cmds/legacy to go-ipfs/commands/legacy
- update cmds,cmdkit; go test ./... ok
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2018-01-21 11:11:47 -08:00
Iaroslav Gridin
7b34b7f533
Set filename in Content-Disposition if filename=x is passed in URI query
...
License: MIT
Signed-off-by: Iaroslav Gridin <voker57@gmail.com>
2018-01-19 21:57:26 +02:00
Lucas Garron
dd4e25c11b
Fix typo in an error.go comment: "is adds" -> "adds".
...
License: MIT
Signed-off-by: Lucas Garron <code@garron.net>
2018-01-17 15:25:54 -08:00
Whyrusleeping
b768fb118b
Merge pull request #4553 from ipfs/fix/4085
...
implement an ipfs cat --length flag
2018-01-12 09:52:59 -08:00
Steven Allen
8a9a76f193
fix outdated warning about private key in 'config show'
...
We now omit it.
fixes #4572
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-09 19:24:27 -08:00
Steven Allen
bf5fd74a8e
fix defered unlock of pin lock in AddR
...
This wasn't causing any problems because this function is actually dead
code (but possibly useful?).
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-07 22:33:51 -08:00
Leo Arias
2ac86ef739
update link to filestore experimental status
...
According to https://github.com/ipfs/go-ipfs/issues/3397#issuecomment-317256365 , the status of experimental features is now tracked in a file in the repo, not in an issue.
License: MIT
Signed-off-by: Leo Arias <leo.arias@canonical.com>
2018-01-07 23:10:58 +00:00
Steven Allen
153bb68130
implement an ipfs cat --length flag
...
fixes #4085
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-05 18:30:05 -08:00
Eoghan Ó Carragáin
c144a71052
fix misleading LongDescription in NameCmd and PublishCmd
...
License: MIT
Signed-off-by: Eoghan Ó Carragáin <eoghan.ocarragain@gmail.com>
2018-01-06 00:53:35 +00:00
Eoghan Ó Carragáin
0201a67529
fix typos in FilesMkdirCmd ShortDescription
...
License: MIT
Signed-off-by: Eoghan Ó Carragáin <eoghan.ocarragain@gmail.com>
2018-01-06 00:49:50 +00:00
Whyrusleeping
2ab6d3d67d
Merge pull request #4546 from ipfs/fix/4542
...
various ping fixes
2018-01-05 10:24:35 -08:00
Whyrusleeping
3af720696c
Merge pull request #4477 from ipfs/feat/coreapi/name
...
RFC: coreapi.Name,Key
2018-01-04 15:08:55 -08:00
Steven Allen
fd736680b5
ping: better peer addr parsing error
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-04 10:45:36 -08:00
Steven Allen
28a610a13a
ping: return an error when ping count <= 0
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-04 10:42:42 -08:00
Steven Allen
aa95dcbdf2
ping: add a useful error message when pinging self
...
We don't allow dialing self for many (very good) reasons.
fixes #4542
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-01-04 10:42:38 -08:00
Whyrusleeping
f4fd369d86
Merge pull request #4195 from ipfs/feat/config-patch
...
config: command to apply profile after init
2018-01-02 14:02:31 -08:00
Whyrusleeping
f013a768ec
Merge pull request #4538 from ipfs/feat/command/cat-offset
...
Add offset option to cat command
2018-01-02 12:11:48 -08:00
Łukasz Magiera
2109cbc172
coreapi: Name tests
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-01-02 21:01:03 +01:00
Whyrusleeping
1a0d6ec2ba
Merge pull request #4509 from ipfs/fix/mfs-flush-free-mem
...
Ensure that flush on the mfs root flushes its directory
2018-01-02 11:41:29 -08:00
ForrestWeston
f0c772a4f3
Add offset option to cat command
...
Allow an offset option to be passed to cat command
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
2018-01-02 11:12:08 -08:00
Łukasz Magiera
396c34b4e1
coreapi: key tests
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-01-01 19:00:56 +01:00
Łukasz Magiera
8df2d1a92e
coreapi: name/key review suggestions
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-01-01 17:38:12 +01:00
Łukasz Magiera
587dc187c6
coreapi: Documentation for Name/Key
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-01-01 17:38:12 +01:00
Łukasz Magiera
1c73d48e5b
coreapi: name/key functional options
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-01-01 17:35:37 +01:00
Łukasz Magiera
1b5fbb09b5
coreapi: Keystore API proposal
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-01-01 17:35:37 +01:00
Łukasz Magiera
027f498bc9
coreapi: Name API proposal
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-01-01 17:35:37 +01:00
Whyrusleeping
8f17968cd8
Merge pull request #4508 from ipfs/fix/add-small-files
...
Don't lock up 256KiB buffers when adding small files
2017-12-31 14:29:23 -08:00
Jeromy
3e6eabba54
Fix memory clearing in adder
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-12-31 13:43:10 -08:00
Whyrusleeping
64ae9344fc
Merge pull request #4526 from karalabe/fix-permament
...
cmd, core: fix Permament -> Permanent typo
2017-12-31 12:59:36 -08:00
Péter Szilágyi
cb866bc450
cmd, core: fix Permament -> Permanent typo
...
License: MIT
Signed-off-by: Péter Szilágyi <peterke@gmail.com>
2017-12-28 10:37:26 +02:00
Łukasz Magiera
db318333ab
coreapi: dag review
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-23 04:49:00 +01:00
Łukasz Magiera
f153c01dfa
coreapi: functional options for DagAPI
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-20 15:03:13 +01:00
Łukasz Magiera
b40a6f88eb
coreapi: add tests for dag
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-20 13:47:32 +01:00
Łukasz Magiera
82924fbedf
coreapi: DAG API proposal
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-20 13:44:06 +01:00
Steven Allen
101e1c3cb1
take adder by pointer, not by value...
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-19 19:08:55 -08:00
Łukasz Magiera
ac26cf19cd
config-patch: Inverse profiles
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-17 15:29:18 +01:00
Łukasz Magiera
acb4edcce4
config-patch: docs typo, fix server profile
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-16 18:16:43 +01:00
Łukasz Magiera
0ff9b24a32
config-patch: backup config
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-16 00:58:58 +01:00
Łukasz Magiera
2514c74750
config-patch: apply review suggestions
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-15 15:37:37 +01:00
Łukasz Magiera
c573d3d051
config-patch: update to new commands lib
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-15 15:37:37 +01:00
Łukasz Magiera
9312fa5f0f
config: rename profile.Unapply to Revert
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-15 15:37:37 +01:00
Łukasz Magiera
ed8817961e
conifg-patch: apply review
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-15 15:37:37 +01:00
Łukasz Magiera
b59354bf6a
config: revert profile subcommand
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-15 15:37:37 +01:00
Łukasz Magiera
20d6803dc8
config: option to apply profile after init
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-15 15:37:37 +01:00
Steven Allen
958add6d9f
patch should not have been allowed
...
This was discussed [here][1] but ignored.
[1]: bfff3fa390 (r15654625)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-14 18:48:48 -08:00
Whyrusleeping
9db5471e72
Merge pull request #4453 from ipfs/gx/update-5osgb9
...
gx: update go-multihash
2017-12-14 17:59:26 -08:00
Łukasz Magiera
eb537a7c8b
docs/coreapi: Add some documentation to CoreAPI
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-15 01:34:49 +01:00
Steven Allen
dfe7ef4fcf
gx: update go-multihash
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-14 13:09:51 -08:00
Whyrusleeping
a4f9333463
Merge pull request #4460 from ipfs/fix/object-patch-nonpb
...
object-patch: Support linking to non-dagpb objects
2017-12-08 00:10:54 +01:00
Lars Gierth
55692ac9b6
gateway: degrade most logging to debug level
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-12-07 00:21:57 +01:00
Łukasz Magiera
9aab19ea35
object-patch: Support linking to non-dagpb objects
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-06 20:59:34 +01:00
Whyrusleeping
a234c56bec
Merge pull request #3983 from ivan386/patch-3
...
check strong and weak ETag validator
2017-12-04 20:36:43 +01:00
Whyrusleeping
6104cfdf7d
Merge pull request #4449 from hacdias/patch-1
...
Update WebUI version
2017-12-04 20:03:59 +01:00
Whyrusleeping
c7eddabd43
Merge pull request #4451 from ipfs/fix/better-pinning
...
Pinning fixes
2017-12-04 18:51:07 +01:00
keks
6f82f08611
fix error handling in core/commands/{add,get}.go
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-12-04 14:27:34 +01:00
Steven Allen
9a335cee13
fewer allocations on unpin
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-03 19:05:05 -08:00
Steven Allen
498ee0dc0b
resolve and pin in one step
...
instead of resolving all the pins first and then pinning, pin after resolving
each pin.
This:
1. Avoids storing all the nodes in memory.
2. Avoids not showing pin progress.
fixes #4122
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-03 19:03:04 -08:00
Steven Allen
8e780d2304
don't create a new context per pin
...
This came from an old commit that used a TODO context. Now that we have a real
context, use that.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-03 19:02:08 -08:00
Łukasz Magiera
6401a9191e
gx: Update go-datastore to 1.4.0
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-02 14:55:26 -08:00
Henrique Dias
4df6385f55
Add trailing comma
...
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2017-12-02 12:05:55 +00:00
Henrique Dias
351185382d
Update WebUI version
...
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2017-12-02 12:03:57 +00:00
Whyrusleeping
abe8ced8c7
Merge pull request #4433 from ipfs/fix/coreunix-add/ctx
...
AddWithContext wraps custom context
2017-12-01 17:26:21 +01:00
Whyrusleeping
66bde41384
Merge pull request #4047 from vyzo/ipns-pubsub
...
namesys/pubsub: pubsub Publisher and Resolver
2017-11-30 13:41:38 +01:00
ForrestWeston
96e1315cff
AddWithContext wraps custom context
...
AddWithContext should use the custom context when calling
NewAdder
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
2017-11-28 10:00:47 -08:00
Jeromy
971bb01e1b
fix builds on windows
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-11-24 10:37:02 -08:00
keks
8e5fbe9aa1
update go-ipfs-cmds to 0.4.11
...
to include @frist's uuid logging
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-11-22 19:06:00 +01:00
Whyrusleeping
e1f433e3a8
Merge pull request #4402 from keks/fix/pubsub-flush
...
core/commands/pubsub.go: flush output before iterating over received messages
2017-11-21 21:30:15 -08:00
Whyrusleeping
1f2247c6bd
Merge pull request #4413 from ipfs/fix/cmd-goroutine-leaks
...
Fix some goroutine leaks in commands
2017-11-21 21:26:44 -08:00
Steven Allen
2997f48a67
fix goroutine leaks in repo commands
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-21 16:17:27 -08:00
Steven Allen
016b005333
fix goroutine leaks in DHT commands
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-21 15:39:37 -08:00
Whyrusleeping
e0f38fa33b
Merge pull request #4406 from ipfs/fix/4405
...
Fix two race conditions (and possibly go routine leaks) in commands
2017-11-21 15:23:39 -08:00
vyzo
e45df729be
namesys/pubsub: publisher and resolver
...
Commits:
namesys: pubsub Publisher and Resolver
namesys/pubsub: pacify code climate.
namesys/pubsub: timeout for rendezvous
namesys/pubsub: filter self in bootstrap connections
namesys/pubsub: Publish to the correct topic
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
namesys/pubsub: unit test
Commits:
namesys/pubsub: test
namesys/pubsub_test: pacify code climate
namesys/pubsub: update test to use extant mock routing
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
namesys/pubsub: integrate namesys pubsub
namesys: integrate pubsub resolvers
namesys/pubsub_test: tweak delays
- trying to make travis happy.
namesys/pubsub: fix duplicate bootstraps
- subscription key is topic, not ipnskey.
namesys/pubsub: no warning needed on cancellation
namesys/pubsub: warning for receive errors
- and more informative error messages at that.
namesys/pubsub_test: smaller test
- make it work with seemingly low fdlimits in travis/macosx.
also, more informative test failures.
namesys/pubsub: add delay to let pubsub perform handshake
namesys/pubsub: update gx imports
namesys/pubsub_test: preconnect publisher, reduce delays
- preconnects the publisher to the receivers in order to avoid bootstrap
flakiness with connectivity problems in travis.
reduces sleeps to 1s for flood propagation (3s seems excessive with 5 hosts).
namesys/pubsub: drop named return values in resolveOnce
- per review comment.
namesys/pubsub: check errors
namesys/pubsub: store bytes in resolver datastore
namesys/pubsub: resolver Cancel
- for canceling subscriptions, pre whyrusleeping's request.
namesys/pubsub: fix resolution without /ipns prefix
- also improve the logging a bit.
namesys/pubsub: don't resolve own keys through pubsub
namesys/pubsub: signal ErrResolveFailed on resolution failure
namesys/pubsub: use sync datastore, resolver lock only for subs
namesys/pubsub_test: coverage for Cancel
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
namesys/pubsub: parallelize dht and pubsub publishing
Commits:
namesys/pubsub: code cosmetics
namesys: parallelize publishing with dht and pubsub
namesys/pubsub: periodically reprovide topic rendezvous
namesys/pubsub: cancelation for rendezvous goroutine
namesys/pubsub: log ipns record seqno on publish
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
namesys/pubsub: error checking
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
namesys/pubsub: --enable-namesys-pubsub option and management
Commits:
package.json: update go-libp2p-blankhost
namesys: fix stale package imports
update go-testutil
namesys/pubsub: reduce bootstrap provide period to 8hr
namesys/pubsub: try to extract the key from id first
option to enable ipns pubsub: --enable-namesys-pubsub
ipfs name pubsub management subcommands
corehttp/gateway_test: mockNamesys needs to implement GetResolver
pacify code climate
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
namesys/pubsub: pubsub sharness test
test/sharness: test for ipns pubsub
namesys/pubsub: return boolean indicator on Cancel
package.json: remove duplicate entry for go-testutil
update gx deps, testutil to 1.1.12
fix jenkins failure: use tabs in t0183-namesys-pubsub
t0183: use 4 spaces for tabification
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
namesys/pubsub: update for new command interface
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
namesys/pubsub: fix sharness test for broken MacOS echo
echo -n "" should print -n, but hey it's a mac.
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-11-21 14:55:54 -08:00
Łukasz Magiera
697afddbcc
object: --quiet flag to put
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-11-21 19:41:00 +01:00
keks
f3a92617f8
core/commands/pubsub.go: flush output before iterating over received messages
...
License: MIT
Signed-off-by: keks <keks@cryposcope.co>
2017-11-21 10:00:58 -08:00
Steven Allen
bcd25416d9
cmds: rename DefaultVal -> Default, Default -> WithDefault
...
Propagate change from cmdkit.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-20 22:20:49 -08:00
Steven Allen
76e1da02a8
gx: massive update
...
Note: This commit is technically broken. However, I need to make a bunch of
cmds changes to make this work and I'd rather not bundle both changes into a
single commit.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-20 22:20:27 -08:00
Whyrusleeping
218b29959e
Merge pull request #4042 from asymmetric/fix/default-false
...
remove all instances of `Default(false)`
2017-11-20 21:32:07 -08:00
Steven Allen
d89a4b6960
fix concurrent SetError in add command
...
I believe this also fixes a potential go routine leak (on race).
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-20 20:35:04 -08:00
Steven Allen
65489c1744
fix concurrent SetError in pin command
...
(segfault)
Also, buffer the response channel. I believe we had a go routine leak here
before.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-20 20:34:58 -08:00
Lorenzo Manacorda
57f544a79c
remove all instances of Default(false)
...
Boolean options always default to false.
License: MIT
Signed-off-by: Lorenzo Manacorda <lorenzo@mailbox.org>
2017-11-20 16:10:15 +01:00
Dominic Della Valle
d15fa176cd
Fix orphaned gx dependency
...
License: MIT
Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>
2017-11-20 00:13:35 -05:00
adamliesko
a09d974652
core: get cmd outPath removes trailing slash - fixes #3729
...
When using path with trailing slashes, ipfs get command had issues
with trying to store content into '.' folder (as the file part of the path
was empty). Now, it correctly stores the file into desired folder,
thanks to the removal of trailing slash by introducing a
getOutPath function in get command, which does proper parsing
Of the output path.
BEFORE:
$ .pfs get /ipns/multiformats.io/
Saving file(s) to .
NOW:
$ ./ipfs get /ipns/multiformats.io/
Saving file(s) to multiformats.io
License: MIT
Signed-off-by: adamliesko <adamliesko@gmail.com>
2017-11-18 20:04:18 +01:00
Whyrusleeping
b01e48a758
Merge pull request #4392 from ipfs/feat/log/uuid
...
Feat/log/uuid
2017-11-18 10:25:23 -08:00
keks
d95a87cf57
update to go-ipfs-cmds 0.4.9
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-11-17 15:22:42 +01:00
keks
0d9d21875c
compatible to js-ipfs-api
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-11-17 15:22:42 +01:00
Jan Winkelmann
f287524949
cmd: use go-ipfs-cmds
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-11-17 15:22:41 +01:00
Forrest Weston
f44cf00342
Add error message to event logs in path resolution
...
If an error occurs during an event add it to the events metadata
License: MIT
Signed-off-by: Forrest Weston <forrest@protocol.ai>
2017-11-15 12:27:22 -08:00
Forrest Weston
1c3e590c88
Add event logging around path resolution
...
License: MIT
Signed-off-by: Forrest Weston <forrest@protocol.ai>
2017-11-14 18:02:26 -08:00
Whyrusleeping
d6534291ce
Merge pull request #4121 from devedge/doc/help/wrap-desc
...
wrap-desc: Wrap help descriptions under 80 chars
2017-10-31 15:35:37 -05:00
Whyrusleeping
eaccac3db0
Merge pull request #4347 from thisconnect/doc/cmd/add-chunker-options
...
chunker long description first shot
2017-10-31 12:08:29 -05:00
Jeromy
5522e4d54d
update dht to remove error log
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-10-28 14:00:06 -07:00
Enrique Erne
6a9682bb00
shorter chunker stragety and fixed size example with fewer nodes
...
License: MIT
Signed-off-by: Enrique Erne <enrique.erne@gmail.com>
2017-10-28 21:06:39 +02:00
Jeromy
2544a7335b
update connmgr to remove error log
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-10-28 06:11:44 -07:00
Enrique Erne
31840fa035
improves description about the rabin chunker
...
License: MIT
Signed-off-by: Enrique Erne <enrique.erne@gmail.com>
2017-10-28 09:34:30 +02:00
tcme
5e49a1d47d
first version of chunker long description
...
License: MIT
Signed-off-by: Enrique Erne <enrique.erne@gmail.com>
2017-10-27 12:26:25 +02:00
Whyrusleeping
8923fdd91c
Merge pull request #4340 from ipfs/feat/extract-ipfsaddr
...
extract go-ipfs-addr
2017-10-25 10:31:38 +01:00
Jeromy
cf6b52e4b0
extract go-ipfs-addr
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-10-24 07:31:31 -07:00
Jeromy Johnson
c0d6224f0e
Merge pull request #4324 from ipfs/feat/default-connmgr
...
default settings for the connection manager
2017-10-24 15:10:04 +01:00
Jeromy
e49d9d9169
default settings for the connection manager
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-10-23 10:48:19 -07:00
Jeromy Johnson
fda7dd188d
Merge pull request #4306 from thisconnect/doc/cmd/add-chunker-options
...
adds more info about chunker option
2017-10-23 13:27:57 +01:00
Jeromy Johnson
005d243cd3
Merge pull request #4320 from ipfs/fix/gateway-seeker
...
gateway: fix seeker can't seek on specific files
2017-10-20 13:15:32 +01:00
Jeromy Johnson
3119f63bb2
Merge pull request #4326 from ipfs/fix/sane-accept-buffer-size
...
lower yamux accept buffer size
2017-10-20 12:46:40 +01:00
Łukasz Magiera
cbccd847ab
gateway: apply review to serveFile
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-20 13:36:44 +02:00
Łukasz Magiera
913f9641e4
merkledag: keep key order in dedupeKeys
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-20 01:26:27 +02:00
Jeromy Johnson
e1f158b731
Merge pull request #4026 from ipfs/kevina/files-raw-leaves
...
Add full support for CidV1 in Files API and Dag Modifier
2017-10-19 23:55:58 +01:00
Kevin Atkinson
3003f93854
Fix "files stat" to work on raw nodes.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 16:08:10 -04:00
Steven Allen
8b6c6645e2
lower yamux accept buffer size
...
Should *massively* reduce the amount of memory used by each peer (by 60KiB).
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-19 12:11:09 -07:00
Kevin Atkinson
798afedf8d
Make --hash and related option local to sub-commands that use them.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
b5b61f7527
Rename "files update" to "files chcid".
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
d29930c031
Eliminate Prefix field from MFS root, use MkdirOpts.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
fd7b72fa16
Fix help text for "update" command.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
63ddffdb5d
Add "files update" command.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
18a6344bdd
Add --cid-version and --hash-fun option to files API
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
f2fbfdf291
mfs: inherit CID prefix from from parent directory
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 14:14:49 -04:00
Kevin Atkinson
a3bd2c23b3
Add "--raw-leaves" option to "ipfs files"
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-10-19 13:00:24 -04:00
Steven Allen
2f9e9ec571
gx update go-peerstream, go-libp2p-floodsub
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-19 08:20:35 -07:00
Łukasz Magiera
3fbb77153b
gateway: custom seeker for files
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-18 22:25:36 +02:00
Łukasz Magiera
e71dce5dfb
gateway: fix seeker can't seek on specific files
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-18 20:10:22 +02:00
Koushik Roy
d840f67e0a
Check for Peers before dht provide ( #4290 )
...
* Check for Peers before `dht provide`
Check if there are any peers before running logic for `dht provide`
License: MIT
Signed-off-by: Koushik Roy <meff@meff.me>
2017-10-17 13:29:35 +01:00
Jeromy
62d521783f
Integrate connection manager
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-10-16 09:46:46 -07:00
Enrique Erne
2eea7ba4b8
shorter description for chunker option
...
License: MIT
Signed-off-by: Enrique Erne <enrique.erne@gmail.com>
2017-10-15 10:29:47 +02:00
Enrique Erne
92f96ee689
adds more info about chunker option
...
see https://github.com/ipfs/go-ipfs/issues/4276
License: MIT
Signed-off-by: Enrique Erne <enrique.erne@gmail.com>
2017-10-14 19:32:35 +02:00
Jeromy
94ec788555
update deps for new connmgr code
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-10-14 05:38:52 -07:00
Steven Allen
93f3117d7d
remove supernode routing
...
It was never fully implemented and isn't used.
fixes #3950
(not removing routing/mock because that *is* in use).
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-12 19:39:29 -07:00
Steven Allen
613508a0d3
add raw support to the dag put command.
...
`dag get` still doesn't properly support raw output but that's a bigger issue.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-10-10 19:58:23 -07:00
Jeromy Johnson
959ee92edd
Merge pull request #4281 from ipfs/gx/update-go-testutil
...
update go-testutil to 1.1.12
2017-10-06 11:16:16 +03:00
vyzo
4f1edf2570
update go-testutil to 1.1.12
...
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-10-05 17:11:39 +03:00
Jeromy Johnson
de01927be1
Merge pull request #4278 from ipfs/gx/update-oix7qs
...
gx: update cbor to 0.2.3
2017-10-05 17:03:12 +03:00
Łukasz Magiera
d679d3fcf5
gx: update cbor to 0.2.3
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-10-05 13:54:07 +02:00
Jeromy Johnson
4c392928b4
Merge pull request #4246 from ipfs/kevina/stat-no-max-storage
...
"repo stat": Don't crash when Datastore.StorageMax is not defined
2017-10-03 17:42:53 +03:00
Łukasz Magiera
f5cbc4c896
dag: batch multiple files
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-09-21 23:24:02 +02:00
Łukasz Magiera
03cf65bfb9
dag: fix pin lock usage
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-09-20 20:46:49 +02:00
Łukasz Magiera
eb7da51203
dag: Support multiple files in put
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-09-20 14:30:06 +02:00
Steven Allen
a7a74cbde4
fix dht memory leak
...
update go-libp2p-kad-dht to fix a nasty memory leak
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-09-19 16:00:44 -07:00
Kevin Atkinson
37f6a1bb86
"repo stat": Make special value to represent NoLimit a constant.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-09-18 19:26:16 -04:00
Kevin Atkinson
f156f63eed
"repo stat": Don't crash when Datastore.StorageMax is not defined
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-09-18 15:44:07 -04:00
Steven Allen
3f6df3a5f4
update yamux
...
We need to cancel out all readers/writers on stream reset.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-09-15 18:56:44 -07:00
Steven Allen
9be2f617cd
reset when appropriate in floodsub
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-09-15 16:58:14 -07:00
Steven Allen
02ddb36fb8
update multiplex stream muxer
...
fixes double close of channel.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-09-15 16:18:16 -07:00
Steven Allen
8deaaa8d8c
gx: update go-stream-muxer
...
Introduces a new Reset method on streams that kills both sides of the
connection. Close now officially just closes the write side (what it did all
along...)
* Also pull through shiny new go-multiplexer fixes.
* Also pull in go-reuseport update.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-09-14 12:06:44 -07:00
devedge
07d2b645d8
wrap-desc: Wrap help descriptions under 80 chars
...
Wraps the description sections under 80 characters.
Updated commit to adhere to requested changes.
License: MIT
Signed-off-by: Richard Pajerski II <devedge@outlook.com>
2017-09-13 01:37:21 -04:00
Jeromy Johnson
038430d9b0
Merge pull request #4194 from ipfs/feat/fuse-fixes
...
various fixes for /ipfs fuse code
2017-09-06 14:52:13 -07:00
Jeromy
0eba4f3138
gx: update go-ws-transport
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-09-05 16:18:19 -07:00
Steven Allen
70d6629940
gx: update go-cid, go-multibase, base32
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-09-01 17:46:49 -07:00
Jeromy
c8c2921ed2
various fixes for /ipfs fuse code
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-08-31 16:35:17 -07:00
Kevin Atkinson
2fbb4515d9
Fix "ipfs ls" to once again work on arbitrary dag objects.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-08-30 00:27:54 -04:00
Jeromy Johnson
9c0f936210
Merge pull request #4155 from ipfs/fix/reprovider-trigger
...
reprovide: fix ipfs bitswap reprovide when interval set to 0
2017-08-25 11:32:39 -07:00
Łukasz Magiera
e34a5e9c0d
gx: update go-reuseport
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-23 16:32:32 +02:00
Łukasz Magiera
ffc9abb8b8
reprovide: fix ipfs bitswap reprovide when interval set to 0
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-20 18:23:09 +02:00
Steven Allen
19c3bd82a3
extract update go-testutil
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-08-16 17:23:01 -07:00
Jeromy Johnson
94b832df86
Merge pull request #4133 from ipfs/feat/improve-dag-api
...
Improve dag API
2017-08-16 15:22:23 -07:00
Łukasz Magiera
30f482ede6
dag: fix codeclimate
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-16 22:29:27 +02:00
vyzo
b6150b2f06
make filterRelayAddrs a named function, not a closure
...
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:43:11 +03:00
vyzo
322bb9802f
don't leak host in case of error adding relay
...
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:28:05 +03:00
vyzo
31e3b8f805
simplify code for ipfs protocol scheme in multiaddr display
...
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:28:05 +03:00
vyzo
a130659800
don't hardcode ipfs protocol name in multiaddr display
...
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:28:05 +03:00
vyzo
1141705e9a
gx: update go-libp2p-circuit
...
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:28:05 +03:00
vyzo
d7922e7f64
more descriptive help message for ipfs swarm addrs local
...
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:28:05 +03:00
vyzo
6f54181f66
ipfs swarm addrs listen command, fix t0060-daemon
...
Necessary for meaningful semantics in the presence of address filtering.
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:28:05 +03:00
vyzo
4f39962643
fix competing address factories in host options
...
integrate #3948
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:28:05 +03:00
vyzo
9d15e63e00
core: address factory composition for constructPeerHost
...
- Adds AddrsFactory to ConstructPeerHostOpts
- Composes the AddrsFactory option with the relay filter
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:26:49 +03:00
vyzo
6c63cec719
swarm: more robust logic in remote address printing
...
Handles p2p-circuit addresses and any other address that uses a similar
routing scheme.
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:26:49 +03:00
vyzo
4900935bd8
account for p2p-circuit address intricacies
...
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:26:49 +03:00
vyzo
ba5940e617
integrate circuit-relay transport
...
- enabled by default, so that we can dial/receive dials
- /p2p-circuit/QmId address is not announced; filtered at host with AddrsFactory
- use case is manual swarm connect with relay address
License: MIT
Signed-off-by: vyzo <vyzo@hackzen.org>
2017-08-16 09:26:49 +03:00
Jeromy Johnson
dea24aedc3
Merge pull request #4113 from ipfs/feat/reprovider-starts
...
Reprovider strategies
2017-08-15 17:13:23 -07:00
Jeromy Johnson
9ea02e9fdd
Merge pull request #4123 from sherodtaylor/feature/tour/remove-tour
...
remove tour command from ipfs
2017-08-15 17:06:36 -07:00
Łukasz Magiera
4a5b93a1df
reprovider: apply review suggestions
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-16 00:39:12 +02:00
Łukasz Magiera
5da8368a42
dag: dag resolve subcommand
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-13 20:58:29 +02:00
Steven Allen
e7eca98c4a
update go-multiplex
...
Fixes a panic when creating new streams after closing a connection.
Depends on: https://github.com/whyrusleeping/go-smux-multiplex/pull/3
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-08-12 16:33:48 -07:00
Łukasz Magiera
17ae331be2
reprovider: Implement 'bitswap reprovide' command
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-13 00:02:23 +02:00
Łukasz Magiera
f20683eb53
Reprovider strategies
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-13 00:02:23 +02:00
Jeromy Johnson
50bb128bce
Merge pull request #4095 from ipfs/feat/object-pin
...
object put --pin option
2017-08-12 14:32:18 -07:00
Łukasz Magiera
0953295ce4
dag: add dag-pb support to put
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-12 21:49:07 +02:00
Łukasz Magiera
6bf019aeed
dag: cbor input-enc
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-12 21:49:07 +02:00
Łukasz Magiera
0f234d76ae
dag: add option to specify hash
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-08-12 21:49:07 +02:00
Sherod Taylor
bc75d3b88a
Removed tour command and fix test
...
License: MIT
Signed-off-by: Sherod Taylor <sherodtaylor@gmail.com>
2017-08-09 10:14:57 -04:00
Jeromy Johnson
3b60666d25
Merge pull request #4073 from icidasset/master
...
Expose Content-Range header
2017-08-05 12:24:55 -07:00
Steven Allen
38a9be5a0a
gx: update go-libp2p-swarm
...
fixes #4102 (fixed in go-libp2p-swarm)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-31 14:04:40 -07:00
Łukasz Magiera
778d6c635d
object put: wrap CID in Object
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-31 22:06:00 +02:00
Łukasz Magiera
c9446a7720
object: make objectPut return CID
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-31 19:38:05 +02:00
Łukasz Magiera
e1bc025e38
object put --pin option
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-31 19:38:05 +02:00
Lars Gierth
952f658ada
core: make announced swarm addresses configurable
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-07-31 13:03:09 +02:00
Steven Allen
5f3c01a7c1
gx: update deps
...
This should hopefully fix a lot of our CI problems.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-29 22:14:05 -07:00
Jeromy Johnson
02dc2604b3
Merge pull request #4082 from te0d/feat/commands/add-size
...
ipfs add: added size to response of `ipfs add` command
2017-07-29 14:49:20 -07:00
Steven Allen
28be1d4c58
gx: update deps
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-27 18:48:16 -07:00
Jeromy Johnson
181dd0061c
Merge pull request #4053 from Quantomicus/bugfix
...
Fixes #4003
2017-07-23 12:22:58 -07:00
Tom O'Donnell (te0d)
0a01ffb87f
ipfs add: added size to response of ipfs add command
...
The `ipfs add` command was modified to include the added
node's size as a string. The size is included in the
dagnode info sent over the output channel.
License: MIT
Signed-off-by: Tom O'Donnell <todonnel91@gmail.com>
2017-07-20 13:19:31 -04:00
Steven Vandevelde
20ad44af1c
core/http/gateway: Expose Content-Range header
...
The `Content-Range` header is necessary for extracting (only)
the metadata of audio files.
License: MIT
Signed-off-by: Steven Vandevelde <icid.asset@gmail.com>
2017-07-19 13:28:33 +02:00
Steven Allen
e8f6486a9c
gx: update ipldcbor
...
I previously optimized the IPLD cbor decoder to *not* encode and then re-decode
objects when constructing them with `WrapObject`. Unfortunately, we rely on this
to canonicalize the object before computing the tree/links.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-07-17 13:09:08 -07:00
Jeromy Johnson
4c3487017c
Merge pull request #4072 from ipfs/fix/dag-put-order
...
fix determination of 'root' node in dag put
2017-07-16 13:40:38 -07:00
Jeromy
7f89e09d1e
fix determination of 'root' node in dag put
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-16 03:14:33 -07:00
Jeromy
fe3a4c1772
remove some dead code
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-16 02:27:46 -07:00
Quantomic
049bca6d09
bandaid it instead
...
License: MIT
Signed-off-by: Mateja Milosevic <minima38123@gmail.com>
2017-07-14 20:09:55 +02:00
Jakub Sztandera
b0679728f0
make codeclimate more happy
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-13 08:49:11 +02:00
Jakub Sztandera
d6657edf59
make codeclimate a bit more happy
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-07-12 23:08:41 +02:00
Jeromy
7203c43b60
plugin: create plugin API and loader, add ipld-git plugin
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-12 21:53:59 +02:00
Jeromy
cccc6a94a3
update go-multihash and bubble up changes
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-11 19:27:43 -07:00
ivan386
0eafa5e25f
Merge branch 'master' of https://github.com/ipfs/go-ipfs into patch-3
2017-07-06 19:16:41 +03:00
Jeromy
579fd46488
track broadcasted wantlist entries
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-05 10:51:51 -07:00
Jeromy
e43d1317bb
rework how refcounted wantlists work
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-05 10:47:23 -07:00
Jeromy
bda8c3a687
implement bitswap sessions
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-07-05 10:47:22 -07:00
Herman Junge
f512a33998
ipfs block put: Add CID Codecs to "ipfs block put"
...
Adding codecs found in
Use the codec map implemented in https://github.com/ipfs/go-cid/pull/26
License: MIT
Signed-off-by: Herman Junge <chpdg42@gmail.com>
2017-07-05 00:34:07 -04:00
Łukasz Magiera
8ab93aaeb2
Update go-datastore to 1.2.2, go-cid to 0.7.16
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-04 20:18:57 +02:00
Łukasz Magiera
4b8a9a3f9f
Update go-datastore to 1.2.1
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-03 20:17:03 +02:00
Jeromy Johnson
7ad494887c
Merge pull request #4004 from ipfs/feat/dagpin
...
Add pin option for ipfs dag put
2017-07-03 10:54:39 -07:00
Łukasz Magiera
0419e3d14a
blocks: update go-ipld-cbor
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-07-01 02:56:22 +02:00
Steven Allen
520938a9ec
gx import/update libp2p/go-libp2p-routing
...
For some reason, this was referenced but wasn't listed in packages.json.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-06-29 22:12:14 +02:00
Steven Allen
13636bef50
blocks: gx import go-block-format
...
And updated related dependencies.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-06-29 22:12:14 +02:00
Steven Allen
bccd4d4e8f
blocks: move block format to it's own repo
...
We need to reference it from outside of this repo.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-06-29 22:12:14 +02:00
Łukasz Magiera
79e21bd96b
Add pin option for ipfs dag put
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-28 12:05:23 +02:00
Jeromy Johnson
628245fffb
Merge pull request #4005 from ipfs/fix/404msg
...
Show escaped url in gateway 404 message
2017-06-27 19:44:48 -07:00
Łukasz Magiera
5ebf897f6f
Show escaped url in gateway 404 message
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-26 19:04:18 +02:00
Ivan
8b88b7ffd2
check strong and weak ETag validator
...
CDN may change strong ETag validator to weak ETag validator.
License: MIT
Signed-off-by: Ivan <ivan386@users.noreply.github.com>
2017-06-22 19:06:48 +03:00
Łukasz Magiera
bb172789f7
Fix typo: ppp -> p2p
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-21 16:32:15 +02:00
Łukasz Magiera
bec54c2540
Rename PTP to P2P
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-19 21:30:58 +02:00
Steven Allen
e2cd36e88f
pinning + pathresolver: fix pinning/unpinning of sharded directories
...
* Change ResolveToCid to take a Resolver and a NameSystem instead of an ipfs
Node.
* Make the pin/unpin methods use a Unixfs path resolver.
Closes : #3974
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-06-12 18:12:29 -07:00
Jeromy Johnson
77c5f56178
Merge pull request #3966 from torresashjian/fix/cmds/dht-findprovs-num
...
Add 'ipfs dht findprovs --num-providers' to allow choosing number of providers to find
2017-06-10 10:24:24 -07:00
Jeromy Johnson
10f9e771f7
Merge pull request #3951 from ipfs/kevina/repub
...
Make sure non-self keys also get republished
2017-06-10 10:17:10 -07:00
Miguel Torres
bfc9eecb17
Use long name for option lookup
...
License: MIT
Signed-off-by: Miguel Torres <migueltorreslopez@gmail.com>
2017-06-09 21:56:25 -07:00
Jeromy Johnson
18d2a2d8f4
Merge pull request #3943 from magik6k/feat/corenet2
...
Implemented experimental ptp(corenet) interface
2017-06-09 19:56:02 -07:00
Miguel Torres
9e11a41758
Add option to choose a specific number of providers to search for
...
License: MIT
Signed-off-by: Miguel Torres <migueltorreslopez@gmail.com>
Apply fmt
License: MIT
Signed-off-by: Miguel Torres <migueltorreslopez@gmail.com>
Add format
License: MIT
Signed-off-by: Miguel Torres <migueltorreslopez@gmail.com>
2017-06-09 17:54:53 -07:00
Jeromy Johnson
67828a4b4f
Merge pull request #3963 from ipfs/feat/gateway-go-get
...
gateway: don't redirect to trailing slash if it's go get
2017-06-08 21:00:22 -07:00
Lars Gierth
4fe5b3eab7
gateway: don't redirect to trailing slash if it's go get
...
This enables `go get` to parse go-import meta tags from index.html
files stored in IPFS. One tiny step toward whyrusleeping/gx-go#2 .
For an import like `ipfs.io/ipfs/QmFoo/mypkg`, the gateway would
previously redirect to `/ipfs/QmFoo/mypkg/` (note the trailing slash),
which the `go get` tool can't deal with.
Thankfully, `go get` sets a URL query parameter (`?go-get=1`) which
we can use to switch off the redirect in this case.
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-06-08 03:23:48 +02:00
Kevin Atkinson
d674dd7e1f
repub: iterate through all keys in keystore
...
Iterate through all keys in the keystore so keys added with
"ipfs key gen" behave the same as the <self> key. Don't maintain a
separate repub list as it does not really serve a purpose at this
point in time. See #3808 .
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-06-07 14:35:44 -04:00
Łukasz Magiera
043aa5f308
PTP API: Address review comments
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-07 19:51:44 +02:00
Łukasz Magiera
104268f1b6
PTP API: Make code more object oriented, use less node
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-04 03:08:39 +02:00
Łukasz Magiera
ad9ae350bf
PTP API: Rename Corenet to PTP
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-03 21:46:16 +02:00
zramsay
6c064d1fc3
bugfix: copy the correct variable
...
License: MIT
Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>
2017-06-02 23:59:54 -04:00
Łukasz Magiera
eac71847bd
Corenet API: Move more logic away from commands
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-02 21:44:38 +02:00
Łukasz Magiera
e66e8bbe96
Corenet API: Review fixes
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-06-01 20:11:46 +02:00
zramsay
096b3232d5
address PR comments; remove commented/dead code
...
License: MIT
Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>
2017-06-01 12:13:04 -04:00
zramsay
c5df8f0796
apply the megacheck tool to improve code quality
...
License: MIT
Signed-off-by: Zach Ramsay <zach.ramsay@gmail.com>
2017-05-31 16:56:11 -04:00
Łukasz Magiera
e0bd4a1188
Corenet API: Fix codeclimate issues
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 15:18:39 +02:00
Łukasz Magiera
a3889a7164
Corenet API: Update deps
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 12:35:31 +02:00
Łukasz Magiera
71bda3d988
Corenet API: Drop 'exp' namespace
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 11:33:17 +02:00
Łukasz Magiera
8948519590
Corenet API: Store state in node
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 11:33:17 +02:00
Łukasz Magiera
fc08d5331b
Corenet API: Apply suggestions, cleanups
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 11:33:17 +02:00
Łukasz Magiera
9414e73c34
Corenet API: Split list subcmd into ls/streams
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 11:33:17 +02:00
Łukasz Magiera
a55255fbca
Corenet API: Fixed tests
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-05-31 11:33:17 +02:00
Tom Swindell
2f17a67c5a
Experimental corenet application support.
...
License: MIT
Signed-off-by: Tom Swindell <t.swindell@rubyx.co.uk>
2017-05-31 11:33:17 +02:00
Lars Gierth
64ced367ac
gx: update go-libp2p-peerstore, go-libp2p, go-libp2p-kbucket
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-05-30 02:26:05 +02:00
Kevin Atkinson
b4a008720d
"pin verify": fix API
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-05-25 13:52:04 -04:00
Kevin Atkinson
7a4031ddb7
"pin verify": add --verbose and --quiet options
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-05-25 13:40:06 -04:00
Kevin Atkinson
6e898ea678
"pin verify": don't use a pointer to a slice.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-05-25 13:40:06 -04:00
Kevin Atkinson
325e1c0839
"pin verify": basic implementation
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-05-25 13:40:06 -04:00
Jeromy Johnson
4cf046c4fb
Merge pull request #3928 from ipfs/feat/provide-ann-opt
...
update to dht code with provide announce option
2017-05-25 10:11:09 -07:00
Jeromy Johnson
1c9a419e22
Merge pull request #3882 from keremgocen/fix-cmd-key-peerid
...
WIP: add PeerID lookup
2017-05-25 10:10:47 -07:00
Jeromy Johnson
9a9df1f176
Merge pull request #3941 from jdanford/typo-neccessary
...
Change 'neccessary' to 'necessary'
2017-05-24 17:48:43 -07:00
Jeromy Johnson
a6bb83b8ad
Merge pull request #3940 from ipfs/fix/http-proc-panic
...
make odds of 'process added after close' panic less likely
2017-05-24 17:45:41 -07:00
Jordan Danford
c9e20dd907
Change 'neccessary' to 'necessary'
...
License: MIT
Signed-off-by: Jordan Danford <jordandanford@gmail.com>
2017-05-24 09:40:53 -07:00
Jeromy
53f1a9a50a
make odds of 'process added after close' panic less likely
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-05-24 09:12:27 -07:00
Kevin Atkinson
332a7967f9
filestore: add "--file-order" option to "filestore ls" and "verify"
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-05-23 17:40:20 -04:00
Jeromy
0418930ca8
update to dht code with provide announce option
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-05-23 13:59:36 -07:00
Jeromy Johnson
8e2aed3023
Merge pull request #3846 from ipfs/feat/pin-update
...
implement ipfs pin update
2017-05-17 22:44:31 -07:00
Jeromy Johnson
630f9ae29e
Merge pull request #3884 from ipfs/feat/shutdown-cmd
...
Implement ipfs shutdown command
2017-05-17 22:44:06 -07:00
Jeromy
315849639d
implement ipfs pin update
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-05-17 21:31:47 -07:00
Jeromy Johnson
0780a4fdb4
Merge pull request #3892 from MichaelMure/keystore_key_rm
...
Implement ipfs key {rm, rename}
2017-05-17 21:28:36 -07:00
Jeromy
adb555c3eb
Implement ipfs shutdown command
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-05-17 21:27:47 -07:00
Jeromy Johnson
5ef2f42d44
Merge pull request #3914 from jes/master
...
Add Suborigin header to gateway responses
2017-05-17 21:21:26 -07:00
Jeromy Johnson
d6983801de
Merge pull request #3909 from TUSF/doc/pubsub-end
...
Adding documentation that PubSub Sub can be encoded.
2017-05-15 13:07:21 -07:00
Jeromy Johnson
219b41bff8
Merge pull request #3915 from ipfs/kevina/repo-stat-storagemax
...
Add MaxStorage field to output of "repo stat".
2017-05-15 12:27:42 -07:00
Jeromy Johnson
a4ffefd2ad
Merge pull request #3919 from ipfs/kevina/add-hash-fun
...
adder: add support for specifying the hash function
2017-05-14 15:27:42 -07:00
Kevin Atkinson
4bbd00185c
adder: add support for specifying the hash function
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-05-14 17:38:32 -04:00
Michael Muré
2593495311
Document exported symbols
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-14 21:02:01 +09:00
James Stanley
cb2a38d89b
Add Suborigin header to gateway responses ( #3209 )
...
This existed before but was disabled in 912a972 because the Suborigin spec
changed and it became incompatible.
This commit updates the generated Suborigin header to be conformant with the
latest spec.
License: MIT
Signed-off-by: James Stanley <james@incoherency.co.uk>
2017-05-13 10:47:36 +01:00
Jeromy Johnson
864bf47a5a
Merge pull request #3895 from torresashjian/fix/cmds/add-msg-typo
...
Fix typo in message when file is not determined
2017-05-12 17:57:49 -07:00
Kevin Atkinson
cd8c4ee8e0
Use tabwritter for better formatted output.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-05-11 22:05:52 -04:00
Jeromy
1cddf67a35
remove 'ipfs diag net' from codebase
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-05-11 09:15:37 -07:00
Kevin Atkinson
0f46a34f59
Add MaxStorage field to output of "repo stat".
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-05-10 23:41:35 -04:00
TUSF
43b0b17d9a
Turns out, the Message will Marshal properly.
...
License: MIT
Signed-off-by: Jeremia Dominguez <ragef33@gmail.com>
2017-05-09 17:55:58 -05:00
Michael Muré
7e91da2067
Future-proof keystore.Has by returning an error as well
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-08 17:00:00 +09:00
Jeromy
5bb480b4da
improved gateway directory listing for sharded nodes
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-05-05 13:31:34 -07:00
Michael Muré
3aa6d78ee1
Implement ipfs key rename
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-04 17:30:10 +09:00
Miguel Torres
6a25b67e4d
Fix typo in message when file is not determined
...
License: MIT
Signed-off-by: Miguel Torres <migueltorreslopez@gmail.com>
2017-05-01 20:59:08 -07:00
Michael Muré
a813830657
Enable stdin for ipfs key rm's name argument
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-02 12:27:15 +09:00
Michael Muré
bd96f71d2c
Make ipfs key rm variadic
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-02 01:47:13 +09:00
Michael Muré
730ab6115c
fix fmt and exported var that shouldn't be
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-02 01:46:56 +09:00
Michael Muré
4d4d7b8e08
Implement ipfs key rm
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2017-05-01 15:23:17 +09:00
Jeromy Johnson
76cd541040
Merge pull request #3888 from ipfs/fix/add-mem-growth-hack
...
Flush cached directories every so often during an add
2017-04-30 21:56:49 -07:00
Jeromy
a22cae1bce
fix coreapi unixfs resolving
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-04-30 21:20:48 -07:00
Jeromy
0597a04924
Fix sharding memory growth, and fix resolver for unixfs paths
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-04-30 13:48:28 -07:00
Jeromy
e2b2d0996f
Flush cached directories every so often during an add
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-04-29 12:27:09 -07:00
Kerem
76e227d499
code review improvements
...
change core.IpfsNode as first arg
check keylookup err to propagate validation errors from lower levels
License: MIT
Signed-off-by: Kerem Gocen <keremgocen@gmail.com>
2017-04-27 21:00:48 +03:00
Kerem
39ece86484
add PeerID lookup
...
enhance key lookup logic and enable PeerID lookup in addition to the
key name
License: MIT
Signed-off-by: Kerem Gocen <keremgocen@gmail.com>
2017-04-27 19:45:18 +03:00
Jeromy Johnson
e5529cd57b
Merge pull request #3743 from ipfs/kevina/cidv1-add
...
Add support for using CidV1 in 'ipfs add'
2017-04-26 18:54:45 -07:00
Kevin Atkinson
076d0bd9b1
merkeldag: change SetPrefix param to a pointer and reset the prefix on nil
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:36:39 -04:00
Kevin Atkinson
518adec022
adder: add support for using CidV1
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:36:39 -04:00
Lars Gierth
126d249de5
deps: bubble up cbor update
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-04-26 05:21:01 +02:00
Kevin Atkinson
cf562403d2
adder: make chan size a constant
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:01:05 -04:00
Kevin Atkinson
b7eae36f90
adder: fix bug where errors from calls to NewAdder caused daemon to hang
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-04-25 23:01:05 -04:00
Jakub Sztandera
fe969d18be
mics: cleanup imports in touched files
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-04-24 15:01:55 +02:00
Jakub Sztandera
d1e3fc5c87
deps: Update go-is-domain to contain new gTLD
...
It should resolve issues with newer gTLDs being not selected
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-04-24 15:01:55 +02:00
Jeromy
b15470d548
bubble up updates from go-multihash changes
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-04-20 20:28:04 +02:00
Jakub Sztandera
584ab144f9
Merge branch 'master' into fix/gateway/3868-etag
2017-04-20 19:59:59 +02:00
Remco Bloemen
a90f4967e3
gateway: re-use resolved path
...
Instead of resolving a node, we resolve a path. This resolved path
is then re-used for Cat and Ls. This way, a resolve operation is
only done once.
The error messages for a failed resolve is changed from `ipfs cat …`
to `ipfs resolve …` to better reflect the API calls. The test is
updated accordingly.
License: MIT
Signed-off-by: Remco Bloemen <remco@2π.com>
2017-04-20 08:17:45 +01:00
Lars Gierth
2c4e6434ad
gateway: fix erroneous Cache-Control: immutable on dir listings
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-04-19 05:10:41 +02:00
Remco Bloemen
8db6f86de6
gateway: use CID as an ETag strong validator
...
* Always use the fully resolved CID from api.ResolveNode
as the ETag (also for IPNS).
* Format the result as a valid "Strong Validator"
(double quotes around the encoded CID).
Fixes #3868
License: MIT
Signed-off-by: Remco Bloemen <remco@2π.com>
2017-04-18 16:24:37 +01:00
Jakub Sztandera
43949eff29
test: skip the require all helptext test
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-24 18:21:40 +01:00
Jakub Sztandera
a11b806d93
Add ProcessHelp call to Helptext test.
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-24 18:18:28 +01:00
Jeromy
e7e22597ce
add test to enforce helptext on commands
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-03-24 18:18:28 +01:00
Hector Sanjuan
3b6216b239
Make Golint happy in the blocks submodule.
...
This has required changing the order of some parameters and
adding HashOnRead to the Blockstore interface (which I have in turn
added to all the wrapper implementations).
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2017-03-24 16:46:42 +01:00
Jeromy Johnson
ff997c1f7a
Merge pull request #3824 from ipfs/fix/govet/some-error
...
fix: multiple govet warnings
2017-03-23 20:56:10 -07:00
Jeromy Johnson
ac69697bd9
Merge pull request #3042 from ipfs/feat/hamt-sharding
...
Implement unixfs sharding
2017-03-23 20:51:52 -07:00
Jeromy
65b9716989
fix go vet issues in hamt sharding PR
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-23 18:01:57 -07:00
Jakub Sztandera
6546aeade7
fix: multiple govet warnings
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-24 01:02:50 +01:00
Jeromy
c4c665395a
add global config switch for sharding
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-23 16:42:31 -07:00
Kevin Atkinson
ffe9f3e566
filestore util: Use a Marshaler instead of PostRun...
...
and just output directly to Stderr and Stdout instead of returning
a reader.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-23 13:24:04 -04:00
Jeromy Johnson
2cc5ce45b8
Merge pull request #3777 from ipfs/fix/gateway-status-codes
...
Return 404 Not Found for failed path resolutions
2017-03-22 22:31:54 -07:00
Jeromy Johnson
2de21bc018
Merge pull request #3653 from ipfs/kevina/filestore-util
...
Basic Filestore Utilties
2017-03-22 21:41:48 -07:00
Kevin Atkinson
1eddb60f73
filestore util: doc improvement
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 20:56:35 -04:00
Jeromy Johnson
1cd1efd014
Merge pull request #3798 from ipfs/kevina/nat-discovery-config-v2
...
Add DisableNatPortMap option.
2017-03-22 13:48:02 -07:00
Kevin Atkinson
f7efb34e68
filestore util: Add 'filestore dups' command. Enhance tests.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 16:24:56 -04:00
Kevin Atkinson
064bb53884
filestore util: add documentation for 'filestore ls' and 'verify' commands.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 16:24:56 -04:00
Kevin Atkinson
13f617d139
filestore util: allow listing/verifying of individual blocks.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 16:24:56 -04:00
Kevin Atkinson
4bf43047d8
filestore util: basic filestore commands.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-22 16:24:56 -04:00
Jeromy
e8764345d6
fix handling of filestore nodes in mfs during add
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-21 20:19:22 -07:00
Jeromy
bb09ffd756
implement an HAMT for unixfs directory sharding
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-03-21 20:19:22 -07:00
Jeromy Johnson
7dee31b736
Merge pull request #3493 from ipfs/feat/coreapi-refinements
...
Core API refinements and efficiency improvements
2017-03-21 18:57:47 -07:00
Jeromy Johnson
21072a5f81
Merge pull request #3712 from ipfs/kevina/more-robust-gc
...
More Robust GC
2017-03-21 17:16:37 -07:00
Lars Gierth
0e68ffaaf0
commands: improve name and key helptexts
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-03-21 03:42:53 +01:00
Kevin Atkinson
d39d9ed60b
gc: address CR comments
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-20 14:46:02 -04:00
Kevin Atkinson
f66ca2ff24
gc: continue to use cmds.ChannelMarshaler
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-18 21:30:32 -04:00
Kevin Atkinson
da95e9f929
Add DisableNatPortMap option.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-18 18:50:10 -04:00
Lars Gierth
807ffb9141
commands/dns: return NotFound error for failed resolutions
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-03-17 04:16:36 +01:00
Lars Gierth
9e4800d40a
gateway: simplify error responses, switch to 404
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-03-17 04:10:28 +01:00
Lars Gierth
ee45b8d32f
coreapi: make the interfaces path centric
...
The new coreiface.Path maps a path to the cid.Cid
resulting from a full path resolution.
The path is internally represented as a go-ipfs/path.Path,
but that doesn't matter to the outside.
Apart from the path-to-CID mapping, it also aims to hold all
resolved segment CIDs of the path. Right now it only exposes
Root(), and only for flat paths a la /ipfs/Qmfoo. In other cases,
the root is nil.
In the future, resolution will internally use
go-ipfs/path.Resolver.ResolvePathComponents and thus always return
the proper resolved segments, via Root(), or a future Segments() func.
- Add coreiface.Path with Cid() and Root().
- Add CoreAPI.ResolvePath() for getting a coreiface.Path.
- All functions now expect and return coreiface.Path.
- Add ParsePath() and ParseCid() for constructing a coreiface.Path.
- Add coreiface.Node and Link which are simply go-ipld-node.Node and Link.
- Add CoreAPI.ResolveNode() for getting a Node from a Path.
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-03-17 03:47:59 +01:00
Lars Gierth
e260d2fd06
coreapi: smarter way of dealing with the different APIs
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-03-17 02:35:17 +01:00
Jakub Sztandera
38fc8131bf
feat: add quieter option to add
...
It disables all outputs apart from the last hash.
Useful for adding directories as you won't have to do `| tail -1`
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
DRY up
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-10 14:21:50 +01:00
Jakub Sztandera
66cc2f2e88
fix: ipfs get panic with empty API call
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-09 15:42:15 +01:00
Jeromy Johnson
74afd87986
Merge pull request #3760 from ipfs/fix/pin-add-api
...
fix pin add api break
2017-03-07 16:27:23 -08:00
Jeromy Johnson
eca0d1c734
Merge pull request #3757 from ipfs/fix/get-raw-leaves
...
make raw leaves work with 'ipfs get'
2017-03-07 15:40:18 -08:00
Jeromy
6a7750d5c2
fix pin add api break
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-07 01:10:46 -08:00
Kevin Atkinson
c83bbafbbc
gc: stream all errors including the last
...
and report "encountered errors during gc run" as the response error
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-07 03:02:28 -05:00
Jeromy
169f7899ba
fix progress bar on ipfs get
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-06 22:59:10 -08:00
Jeromy
b1588c7162
make raw leaves work with 'ipfs get'
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-06 20:12:05 -08:00
Kevin Atkinson
f338520aa8
gc: add option to stream errors
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-06 14:26:14 -05:00
Kevin Atkinson
401d156596
gc: refactor: CollectResult
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-06 14:26:14 -05:00
Kevin Atkinson
96f8c17b0f
gc: return Result instead of two channels
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-06 14:26:14 -05:00
Kevin Atkinson
d7fa05a707
gc: join multiple errors with "; " instead of a newline
...
otherwise the daemon will only display the first error
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-06 14:26:09 -05:00
Kevin Atkinson
f1938f3cbd
gc: output all errors to a channel
...
Errors from ColoredSet are now reported as encountered and errors
encountered when deleting blocks are no longer ignored.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
gc: report errors from ColoredSet as encountered
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-06 14:26:09 -05:00
Jeromy Johnson
cbf8a0cdb4
Merge pull request #3748 from ipfs/deps/update-dht
...
update go-libp2p-kad-dht with getclosestpeers fix
2017-03-06 11:21:38 -08:00
Jakub Sztandera
ffeef8c9cb
fix: filestore silently being skipped on add if it wasn't enabled
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-03-06 19:16:01 +01:00
Jeromy Johnson
7c707b062a
Merge pull request #3635 from ipfs/feat/bitswap-tx-stats
...
Add more info to bitswap stat
2017-03-06 00:54:03 -08:00
Jeromy
332d760f12
Add more info to bitswap stat
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-06 09:47:53 +01:00
Jeromy
9ec4c25e31
Address CR feedback
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-06 00:37:24 -08:00
Jeromy
2884c84343
Implement basic filestore 'no-copy' functionality
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-03-06 00:37:24 -08:00
Jeromy
4e168dc323
update go-libp2p-kad-dht with getclosestpeers fix
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-03-05 23:06:04 -08:00
Jeromy Johnson
5ff552cd12
Merge pull request #3700 from ipfs/kevina/enumerate-children-refactor
...
Refactor EnumerateChildren to avoid need for bestEffort paramater.
2017-03-02 09:22:59 -08:00
Jeromy Johnson
d2f41e22fe
Merge pull request #3725 from ipfs/feat/better-muxer
...
feat: remove broken spdy multiplexer and enable multiplex by default as second option
2017-03-02 09:15:16 -08:00
Kevin Atkinson
c3346ad9d5
Refactor EnumerateChildrenAsync to take in a function to get the links.
...
For now it is always called with the helper function GetLinksDirect to
avoid any change in behaviour.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-02 05:21:47 -05:00
Kevin Atkinson
6e4fd937fd
Refactor EnumerateChildren to avoid need for bestEffort parameter.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-03-02 05:19:41 -05:00
Friedel Ziegelmayer
8b2aa5617d
feat: remove broken spdy multiplexer and enable mplex by default
...
License: MIT
Signed-off-by: Friedel <dignifiedquire@gmail.com>
2017-03-01 23:28:05 -08:00
Jeromy Johnson
57e4e2103e
Merge pull request #3734 from ipfs/feat/keystore/list-self
...
keystore: add self key to the listing
2017-03-01 23:26:09 -08:00
Jeromy Johnson
dd9584ba28
Merge pull request #3697 from ipfs/feat/pnet2
...
PNet take 2
2017-03-01 16:43:48 -08:00
Jeromy Johnson
34a94c2812
Merge pull request #3671 from ipfs/kevina/pin-add-progress
...
Report progress during `pin add`
2017-03-01 16:39:10 -08:00
Jakub Sztandera
25c3e126b8
keystore: add self key to the listing
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-28 16:16:16 +01:00
Jakub Sztandera
4ce6358bd7
pnet: add warning when we are in PNet and have no peers
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-22 20:04:56 +01:00
Jakub Sztandera
faca4518b3
pnet: integrate PNet
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-22 20:04:56 +01:00
Jakub Sztandera
4eed546e06
deps: update dependencies for PNet
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2017-02-22 20:04:43 +01:00
Jeromy
dd0df71f26
update go multiplex dep with half closed streams support
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-20 13:25:25 -08:00
Kevin Atkinson
4115e2315d
block rm: use Marshalers instead of PostRun to process output
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-02-19 21:02:39 -05:00
Kevin Atkinson
cdd29c24a2
Report progress during 'pin add'.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-02-17 16:19:42 -05:00
Jeromy
cb611c8873
allow for sub-object resolution in dag get
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-13 19:15:17 -08:00
Jeromy
9d8a4afd75
add partial resolving to resolver code
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-02-13 16:25:59 -08:00
Jeromy
b4eeff2d84
update go-multihash and bubble up deps
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-12 12:25:41 -08:00
Jeromy Johnson
f330d5d417
Merge pull request #3669 from ipfs/feat/unbreak-webui
...
feat(webui): update to new version
2017-02-09 12:21:49 -08:00
Jeromy Johnson
dc689785a3
Merge pull request #3668 from ipfs/feat/yamux-debugging
...
Add in env var to enable yamux debug logging
2017-02-09 09:03:06 -08:00
Friedel Ziegelmayer
49c30f6efe
feat(webui): update to new version
...
Closes #3664
License: MIT
Signed-off-by: Friedel <dignifiedquire@gmail.com>
2017-02-09 12:44:30 +01:00
Jeromy
66e1826116
Add in env var to enable yamux debug logging
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-08 22:36:40 -08:00
Jeromy
85a06abacc
Fix marshaling of null cbor arrays
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
Fix non-canonical imports via dag put
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-08 16:24:31 -08:00
Jeromy
c00c142bf9
dag/get: fix link formatting in json output
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-02-06 10:36:57 -08:00
Jeromy Johnson
65e0704e1b
Merge pull request #3620 from mateon1/fix/stats-bw-link
...
Fix link in `ipfs stats bw` help message
2017-01-26 17:00:47 -08:00
mateon1
f846879910
Fix link in ipfs stats bw help message
...
License: MIT
Signed-off-by: Mateusz Naściszewski <matin1111@wp.pl>
2017-01-22 02:18:25 +01:00
Jeromy
29c530ac0e
update to the correct ipld cbor code
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-21 10:47:19 -08:00
Jeromy
28b086895b
update dht code to drop error log to warning
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-18 19:39:57 -08:00
Kevin Atkinson
6657b83da7
"ipfs name publish": use path.ParsePath instead of casting input
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-01-11 20:47:26 -05:00
Jeromy Johnson
3faf8974ec
Merge pull request #3581 from ipfs/kevina/keystore
...
"ipfs key list": include the hash of the key id in addition to the name
2017-01-11 08:44:53 -08:00
Jeromy
a3b38e8be8
Add a test for the keystore
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-11 04:23:58 -08:00
Jeromy Johnson
8f165f305d
Merge pull request #3582 from ipfs/deps/negotiate-lazy-fix
...
update go-libp2p with negotiate lazy fixes
2017-01-11 03:32:20 -08:00
Kevin Atkinson
4dbb084e8c
"ipfs key list": add option to also list the hash of the key
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-01-10 19:13:38 -05:00
Jeromy
30aacd1b0a
update go-libp2p with negotiate lazy fixes
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-10 14:52:00 -08:00
Kevin Atkinson
c6ce6d3b1d
"ipfs key gen": include newline when printing generated key
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-01-09 21:15:54 -05:00
Jeromy
a068220fc6
add a note about ipfs key in the main helptext
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-09 09:28:39 -08:00
Jeromy
7c0149d048
set the agent version based on version string
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2017-01-06 06:37:47 -08:00
Jeromy Johnson
87f8bfd31b
Merge pull request #3539 from ipfs/feat/update-identify
...
update libp2p for identify configuration updates
2017-01-05 08:19:59 -08:00
Kevin Atkinson
6cc0903d25
Fix "ipfs ls" so it works correctly with raw leaves.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-01-03 21:20:04 -05:00
mateon1
e1e57c8480
Fix inconsistent ipfs stat bw formatting
...
License: MIT
Signed-off-by: Mateusz Naściszewski <matin1111@wp.pl>
2017-01-01 18:56:34 +00:00
Jeromy
d8f257c264
update libp2p for identify configuration updates
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-27 02:13:59 -08:00
Jeromy Johnson
17699b2e5f
Merge pull request #3519 from ipfs/fix/gateways/suborigins-off
...
gateway: disable Suborigins as it conflicts the spec
2016-12-21 11:20:20 -08:00
Jeromy Johnson
8b6646310f
Merge pull request #3513 from ipfs/fix/coreunix-add-docs
...
coreunix: fix Add() docs regarding pinning
2016-12-20 14:09:56 -08:00
Jakub Sztandera
912a9720bd
gateway: remove Suborigins as it conflicts the spec
...
The Suborigins spec was changed and we have to adjust, the spec is still
unstable and it might change in future. Currently the only browser
supporting it (Chrome) errors out on it as it doesn't confront spec it
uses.
See https://github.com/ipfs/specs/issues/131
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-12-19 14:41:58 +01:00
Lars Gierth
71a03fe35d
coreunix: fix Add() docs regarding pinning
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-12-18 01:09:23 +01:00
Jeromy
839adbf48d
dag/get: accept paths and not just cids
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-17 12:38:51 -08:00
Jeromy Johnson
e2ba43c12d
Merge pull request #3494 from ipfs/fix/gc-timeout
...
Remove GC timeout, fix GC tests
2016-12-15 20:15:49 -08:00
jbenet
bb85dd9815
dag get should be a read only command
...
added CmdDagGet to the read only command set.
tried to add a test, but dag get needs tests in general
License: MIT
Signed-off-by: Juan Batiz-Benet
2016-12-14 10:45:54 -08:00
Lars Gierth
2836c64642
gc: remove unneccessary full repo scan
...
GetStorageUsage() is super expensive as it involves a full repo scan,
and it's already bad enough that we have do it once.
The call that's being removed here is purely for cosmetical purposes:
printing the number of bytes freed by the GC run. Let's drop it.
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-12-13 14:50:01 +01:00
Lars Gierth
a6ae8e72bf
gc: remove wonky timeout
...
This timeout was:
- unneccessary
- based on a metric that doesn't make sense
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-12-13 14:50:01 +01:00
Jeromy Johnson
e893fb90b7
Merge pull request #3484 from ipfs/fix/pubsub-peers-cmd
...
cmd/pubsub: fix peers command topic filtering
2016-12-09 12:08:45 -08:00
Jeromy Johnson
477787c7e3
Merge pull request #3491 from ipfs/fix/swarm-peers-0-lat
...
swarm/peers: print 'n/a' instead of zero latency
2016-12-09 12:06:32 -08:00
Jeromy
4f78f40537
swarm/peers: print 'n/a' instead of zero latency
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-08 21:56:47 -08:00
Jeromy
f104b8ae57
cmd/pubsub: fix peers command topic filtering
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-08 21:26:09 -08:00
Jeromy Johnson
2aded6785d
Merge pull request #3483 from ipfs/feat/block-put-hash
...
cmd/block: add selection of multihash parameters to block put command
2016-12-08 13:33:33 -08:00
Jeromy
cf6e3219b6
cmd/block: add selection of multihash parameters to block put command
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-07 16:36:00 -08:00
Jeromy
2e1467cfe0
update experimental go-multiplex to 0.2.6
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-06 15:39:22 -08:00
Jeromy
c307b5494a
add convenience method for getting keys including self
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-06 13:25:12 -08:00
Jeromy
805b504043
basic keystore implementation
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-05 23:18:48 -08:00
Jeromy Johnson
0c413de87f
Merge pull request #3432 from keks/feat/pubsub-sharness
...
add sharness test for pubsub
2016-12-04 21:29:45 -08:00
Jeromy Johnson
a1d2d47a9d
Merge pull request #3447 from ipfs/feat/multiplex-experiment
...
add option to enable go-multiplex experiment
2016-12-04 17:02:49 -08:00
Jeromy
10ddd40f7b
add option to enable go-multiplex experiment
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-12-04 16:29:03 -08:00
Kevin Atkinson
e92c4445f1
add cmd: clean up default logic of --progress option
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-12-04 00:11:32 -05:00
Kevin Atkinson
0b8e032785
add cmd: use .Default(true) for pin option.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-12-04 00:11:25 -05:00
Kevin Atkinson
aa97a09ba1
Revert "Merge pull request #2657 from ipfs/feature/add-defaults-to-add"
...
In addition to removing the .Default option in the "add" options this
also fixes the --progress option so --progress=false work again.
This reverts commit da4a4ac0bc , reversing
changes made to 518f7e06a1 .
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-12-04 00:10:50 -05:00
Jan Winkelmann
1b3158f860
add sharness test for pubsub
...
License: MIT
Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de>
2016-12-04 03:22:49 +01:00
Jeromy Johnson
e855047ec8
Merge pull request #3418 from ipfs/kevina/rmblock-noblock
...
"block rm": make channel large enough to avoid blocking
2016-11-30 10:52:32 -08:00
Jeromy
53d47669da
bubble up go-datastore deps
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-28 22:29:38 -08:00
Jeromy
f0f88adea0
completely remove go-key dep
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-28 21:42:32 -08:00
Jeromy Johnson
0980bf6d8b
Merge pull request #3416 from keks/feat/instaflush
...
Send empty struct to pubsub cmd output to flush
2016-11-24 22:53:46 -08:00
Jeromy Johnson
af518f83a8
Merge pull request #3422 from slothbag/cmd_help
...
Add dag and stat to command help info
2016-11-24 22:50:36 -08:00
slothbag
decad63123
Add dag and stat
...
License: MIT
Signed-off-by: slothbag <slothbag>
2016-11-25 13:33:51 +11:00
Hector Sanjuan
5d20ddc957
Lowercase error messages
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2016-11-24 19:36:26 +01:00
Hector Sanjuan
ac054f3d8f
Issue #3419 : Do not recursively resolve DAG just to obtain a CID
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2016-11-24 17:10:52 +01:00
Kevin Atkinson
ba383eda00
"block rm": make channel large enough to avoid blocking
...
Make the channel for the output of RmBlocks large enough to hold any
result to avoid blocking while holding the GCLock.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-11-23 18:04:12 -05:00
Jan Winkelmann
7ad2f527a5
Send empty struct to pubsub cmd output to flush
...
So the HTTP headers get sent
License: MIT
Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de>
2016-11-23 19:32:23 +01:00
Jan Winkelmann
05265f176b
use floodsub version 0.8.1
...
License: MIT
Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de>
2016-11-23 12:43:59 +01:00
Jeromy Johnson
0fcb92f3a1
Merge pull request #3403 from ipfs/feat/dg-reader-cleanup
...
Fix panic in dagreader with raw nodes
2016-11-22 11:30:08 -08:00
Jakub Sztandera
1e170e8d6d
Update go-libp2p across codebase
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-11-22 01:22:50 +01:00
Jeromy Johnson
116aab77b6
Merge pull request #3393 from ipfs/feat/fix-typo
...
Fix typo
2016-11-21 10:08:28 -08:00
Jakub Sztandera
724515104e
Make unixio.DagReader an interface
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-11-21 18:10:21 +01:00
Jakub Sztandera
801b572960
Resport imports in core/core.go
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-11-18 00:12:21 +01:00
Richard Littauer
c28c2224c4
Fix typo
...
Brought up bt tmg on irc
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-11-17 04:55:47 -05:00
Jeromy Johnson
4cfd841859
Merge pull request #2971 from ipfs/feature/gateway-resolve-error
...
gateway: degrade error in gateway to log to reduce noise
2016-11-16 01:00:55 -08:00
Jeromy Johnson
afa1f1542f
Merge pull request #3381 from ipfs/feat/disable-bw-stats
...
add config option to disable bandwidth metrics
2016-11-16 00:58:48 -08:00
Jakub Sztandera
ce96b915e7
gateway: change status code of failed namesys resution to 500
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-11-16 05:37:38 +01:00
Jakub Sztandera
43320e1b7f
gateway: use switch for error handling
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-11-16 05:29:39 +01:00
Jakub Sztandera
82d46a5b5b
gateway: degrade error in gateway to log to reduce noise
...
It logs all errors including expired IPNS keys and other non important
errors.
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-11-16 05:25:18 +01:00
Jeromy
396c629301
update to newer ipld node interface with Copy and better Tree
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-15 18:00:49 -08:00
Jeromy Johnson
aae9eb7891
Merge pull request #3244 from ipfs/feat/gateway-post-coreapi
...
gateway: use core api for serving GET/HEAD/POST
2016-11-14 14:15:54 -08:00
Jeromy
43d668331c
add config option to disable bandwidth metrics
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-11 10:31:24 -08:00
Jeromy
7fbaae49be
update to go-libp2p 4.1.0
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-10 17:38:10 -08:00
Lars Gierth
f610e19d3e
coreapi: reuse go-ipld-node.Link
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-11-07 18:25:49 +01:00
Lars Gierth
0097b422de
gateway: use core api for serving POST requests
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-11-07 18:25:49 +01:00
Lars Gierth
c31e4f7226
gateway: move context/close-notify wiring
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-11-07 18:25:49 +01:00
Lars Gierth
036ca3a764
coreapi: add Add()
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-11-07 18:25:49 +01:00
Lars Gierth
029f971d9c
gateway: use core api for serving GET/HEAD requests
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-11-07 18:25:49 +01:00
Lars Gierth
46239e8215
coreapi: get going, add Cat() and Ls()
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-11-07 18:25:49 +01:00
David Brennan
8efdb4f1df
Put config keys in proper case
...
License: MIT
Signed-off-by: David Brennan <david.n.brennan@gmail.com>
2016-11-07 08:13:56 +01:00
Jeromy
25d9f8afd1
update to libp2p 4.0.4
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-05 21:44:36 -07:00
Jeromy
795b3cc4c7
add muxer type to json output
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-04 11:43:17 -07:00
Jeromy
4a029c7374
add stream listings as swarm peers flag
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-04 10:52:11 -07:00
Jeromy
ec21220907
update go-libp2p
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-03 20:06:32 -07:00
Kevin Atkinson
ffe9d7dae4
Separate out the G.C. Locking from the Blockstore interface.
...
Factored out of #3257 (Add support for multiple blockstores).
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-11-02 21:56:34 -04:00
Lars Gierth
02aa6b4714
gateway: bring back dir-index-html assets
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-11-03 00:38:32 +01:00
Jeromy Johnson
4b793f9194
Merge pull request #3259 from ipfs/kevina/local-mode
...
Distinguish between Offline and Local Mode.
2016-11-02 14:04:36 -07:00
Jeromy Johnson
437cc7fa78
Merge pull request #2911 from ipfs/feature/ifps-capitalize
...
docs: decapitalize IPFS where possible
2016-11-02 13:20:51 -07:00
Jeromy Johnson
c408878454
Merge pull request #2915 from ipfs/feature/2293-error-codes
...
Added note about error codes
2016-11-02 13:20:20 -07:00
Jeromy
d2f57c4cdf
dht: update to dht code with fixed GetClosestPeers
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-11-01 15:37:51 -07:00
Jeromy
afce683eae
update go-libp2p-swarm with deadlock fixes
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-30 19:16:28 -07:00
Jeromy Johnson
634005a1ab
Merge pull request #3324 from ipfs/feat/block-cid-codec
...
allow cid format selection in block put command
2016-10-29 21:59:19 -07:00
Jeromy Johnson
8d4fd80fc1
Merge pull request #3325 from ipfs/feat/cbor-ipld
...
Implement cbor ipld nodes and a first pass at the 'dag' command
2016-10-29 21:59:06 -07:00
Jeromy
c6a273fd05
add more helptext to dag commands
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-29 18:03:25 -07:00
Jeromy
f68e1843f4
allow cid format selection in block put command
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-28 19:03:14 -07:00
Jeromy
4c5a5c8a8f
more cleanup, update cboripld package
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-28 12:56:47 -07:00
Richard Littauer
9843e86258
Changed so only explicit ipfs cli commands are lowercased
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-10-27 22:55:13 -07:00
Richard Littauer
9aaa743a51
docs: decapitalize IPFS where possible
...
Tried to check all instances of IPFS and make sure they werent referring to the CLI tool. See #2910 .
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-10-27 22:54:36 -07:00
Jeromy
f7d3f61673
clean up some code, update cbor package, and add tests
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-27 15:49:41 -07:00
Jeromy
67c2a4ec14
make path resolver no longer require whole node for construction
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-25 15:04:44 -07:00
Jeromy
6b797f10a4
Implement cbor ipld nodes and a first pass at the 'dag' command
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-25 12:07:28 -07:00
Jeromy
eac13abaec
update to new cid and ipld node packages
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-25 09:54:04 -07:00
Kevin Atkinson
65ffff2418
Add tests that PosInfo() is getting set.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-24 16:37:57 -04:00
Kevin Atkinson
73f9a90cbf
Create a FilestoreNode object to carry PosInfo
...
When doing a filestore add, we wrap whatever nodes we create in a
FilestoreNode object and add the PosInfo to it so that the filestore
will be able to extract information as needed.
Edited by whyrusleeping
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-24 16:30:45 -04:00
Jeromy
8ce9963289
fix add/cat of small files
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-18 15:26:44 -07:00
Jeromy
ded60a7356
unixfs: allow use of raw merkledag nodes for unixfs files
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-17 16:51:39 -07:00
Jeromy
48f7e14277
extract node interface
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-14 07:53:48 -07:00
Jeromy
01aee44679
merkledag: change 'Node' to be an interface
...
Also change existing 'Node' type to 'ProtoNode' and use that most
everywhere for now. As we move forward with the integration we will try
and use the Node interface in more places that we're currently using
ProtoNode.
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-12 08:16:03 -07:00
Jeromy Johnson
015d476c4f
Merge pull request #3297 from ipfs/feat/bitswap-cid
...
bitswap: protocol extension to handle cids
2016-10-12 10:13:30 -04:00
Jeromy
affb06d558
run gofmt
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-12 07:00:38 -07:00
Kevin Atkinson
dfd5e9aa1e
Make BlockService an interface.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-11 14:50:06 -04:00
Jeromy
f4d7369c4a
bitswap: protocol extension to handle cids
...
This change adds the /ipfs/bitswap/1.1.0 protocol. The new protocol
adds a 'payload' field to the protobuf message and deprecates the
existing 'blocks' field. The 'payload' field is an array of pairs of cid
prefixes and block data. The cid prefixes are used to ensure the correct
codecs and hash functions are used to handle the block on the receiving
end.
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-10 08:19:31 -07:00
Jeromy
282bdc4816
cid: integrate cid into bitswap and blockstores
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-08 12:14:58 -07:00
Kevin Atkinson
772164cc7a
Fix EnumerateChildren & hasChild to take a *cid.Cid instead of []*mdag.Link
...
Author: Kevin Atkinson <k@kevina.org>
Fix EnumerateChildren & hasChild to take a *cid.Cid instead of []*mdag.Link
Author: Jeromy Johnson <why@ipfs.io>
make FetchGraph use a cid
pin: fix TestPinRecursiveFail
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-06 11:55:31 -04:00
Kevin Atkinson
721df367a2
Don't use a separate LinkService for DAGService.GetLinks()
...
Instead make LinkService a part of DAGService. The LinkService is now
simply an interface that DAGService implements. Also provide a
GetOfflineLinkService() method that the GC uses to get an offline
instance.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-06 11:52:39 -04:00
Kevin Atkinson
3899194cb0
Add DAGService.GetLinks() method and use it in the GC and elsewhere.
...
This method will use the (also new) LinkService if it is available to
retrieving just the links for a MerkleDAG without necessary having to
retrieve the underlying block.
For now the main benefit is that the pinner will not break when a block
becomes invalid due to a change in the backing file. This is possible
because the metadata for a block (that includes the Links) is stored
separately and thus always available even if the backing file changes.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-10-06 11:38:41 -04:00
Jeromy
1f9ec4e3ed
update to libp2p 4.0.1 and propogate other changes
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-10-05 22:12:43 -07:00
Jeromy Johnson
429decc906
Merge pull request #3269 from ipfs/feat/dht-client-mode
...
add experimental dht client mode flag
2016-10-01 11:38:08 -07:00
Jeromy
91db6f31c2
update floodsub version 0.6.2
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:33:00 -07:00
Jeromy
49ca3af3ff
update to floodsub 0.6.1
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:26:20 -07:00
Jeromy
360f29fade
send discovery off into its own goroutine
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:25:59 -07:00
Jeromy
44c9bb803f
add 'pubsub peers' to list topics
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:25:59 -07:00
Jeromy
c40b3540c4
add 'pubsub ls' to list topics
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:25:31 -07:00
Jeromy
009301bf7f
hide pubsub behind feature flag
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:25:10 -07:00
Jeromy
ff770fadc8
add discovery option, and update to floodsub 0.4.2
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:24:24 -07:00
Jeromy
7ccf96a72f
remove debug log
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:24:24 -07:00
Jeromy
e567b785a0
update floodsub dep
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:24:24 -07:00
Jeromy
4b096c4bba
floodsub: add api for pub/sub
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:23:45 -07:00
Jeromy
56a8c43aaf
add experimental dht client mode flag
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-30 16:10:20 -07:00
Jeromy
e43c770530
update libp2p and dht packages
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-25 23:42:14 -07:00
Kevin Atkinson
bf8021302c
Distinguish between Offline and Local Mode.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-09-24 22:03:45 -04:00
Jeromy
5457a85cef
Merge branch 'version/0.4.3-rc4'
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-20 19:10:10 -07:00
Jeromy Johnson
e10453b67b
Merge pull request #3220 from ipfs/deps/extract-dht
...
routing: use extracted dht and routing code
2016-09-19 19:38:37 -07:00
Jeromy Johnson
87ecb92fce
Merge pull request #3225 from ipfs/kevina/rm-block-refactor
...
"block rm": move core functionally into blockstore_util package
2016-09-19 19:30:46 -07:00
George Antoniadis
4e8485648f
Use routing/notifications
...
License: MIT
Signed-off-by: George Antoniadis <george@noodles.gr>
2016-09-19 18:28:00 -07:00
Jeromy
2e6e0f18e3
routing: use extracted dht and routing code
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-19 18:28:00 -07:00
Jeromy Johnson
f23cd5c84c
Merge pull request #3189 from ipfs/feat/metrics/interface
...
metrics: introduce go-metrics-interface
2016-09-19 18:02:14 -07:00
Kevin Atkinson
5901e57dfc
"block rm": move core functionally into blockstore_util package
...
Note: this code can not go in the "blockstore" package due to a
circular dependency with the "pin" package.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-09-15 04:15:44 -04:00
Kevin Atkinson
0a459f65ac
Pinner: Provide Pinned.String() method and use it in "block rm"
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-09-15 04:15:36 -04:00
Kevin Atkinson
7bf30c3111
Adder: Don't hold the PinLock when not pinning.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-09-14 16:55:39 -04:00
Jeromy Johnson
0aa136a98e
Merge pull request #3206 from ipfs/feat/writable-flag
...
gateway: fix --writable flag :|
2016-09-14 13:50:32 -04:00
Jakub Sztandera
a5899a4fb9
deps: update go-metrics-interface and -prometheus to 0.1.2
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-09-13 14:00:10 +02:00
Jakub Sztandera
7faa32459a
metrics: fix peer number metric in offline mode
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-09-13 14:00:10 +02:00
Jakub Sztandera
a2bb6e8edf
metrics: update prometheus
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-09-13 14:00:09 +02:00
Jeromy
1de17e2233
Update libp2p to 3.5.2
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-12 14:26:55 -07:00
Jeromy
1bb6a842c5
Update libp2p to have fixed spdystream dep
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-12 07:47:04 -07:00
Lars Gierth
fc8e6de6a9
gateway: fix --writable flag :|
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-09-11 21:09:09 +02:00
George Antoniadis
89d8ca5798
Extract peerset, update peer, peerset, secio, libp2p
...
License: MIT
Signed-off-by: George Antoniadis <george@noodles.gr>
2016-09-10 23:22:17 +01:00
George Antoniadis
5e72b94a5a
Extract thirdparty/loggables
...
License: MIT
Signed-off-by: George Antoniadis <george@noodles.gr>
2016-09-10 23:15:31 +01:00
George Antoniadis
6859b8ccd8
Extract key and datastore
...
License: MIT
Signed-off-by: George Antoniadis <george@noodles.gr>
2016-09-09 15:52:25 +01:00
Jeromy Johnson
3babf40e74
Merge pull request #3187 from ipfs/feat/cidv0
...
Rework go-ipfs to use content IDs version 0
2016-09-09 10:14:39 -04:00
Jeromy Johnson
531b89abc9
Merge pull request #3143 from ipfs/feat/bs/rename-hashonread
...
blockstore: rename RuntimeHashing to HashOnRead
2016-09-08 09:30:03 -04:00
Jeromy
c8fe495934
integrate CIDv0
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-07 13:32:32 -07:00
Jeromy Johnson
73f4b15ced
Merge pull request #3160 from JesseWeinstein/doc/cmds/log_notice_unused
...
Doc/cmds/log notice unused
2016-09-07 14:53:37 -04:00
Jeromy
91dd044d55
config: guard against privkey being overwritten in fsrepo setConfig
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-09-04 06:50:10 -07:00
Jakub Sztandera
671425ea33
cmd: harden config show with key
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-09-04 06:50:10 -07:00
Richard Littauer
1a6784e070
Add default True to files flush
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-09-01 11:47:15 -04:00
Richard Littauer
67a822c3b2
Added note about exit status codes
...
How does this look? See #2293
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-09-01 11:21:51 -04:00
Jesse Weinstein
fab7ad8dd9
Reduce vehemence of help text, per PR comments
...
License: MIT
Signed-off-by: Jesse Weinstein <jesse@wefu.org>
2016-08-31 21:59:43 -07:00
Jesse Weinstein
9304cf13db
Clarify distinction between event and other logging
...
License: MIT
Signed-off-by: Jesse Weinstein <jesse@wefu.org>
2016-08-30 18:39:04 -07:00
Jesse Weinstein
8663b4d48b
Remove notice from list of log levels.
...
This is because go-log does not support that level, although the underlying library, go-logging, does.
License: MIT
Signed-off-by: Jesse Weinstein <jesse@wefu.org>
2016-08-30 18:31:53 -07:00
Jakub Sztandera
dfc58c791d
blockstore: rename RuntimeHashing to HashOnRead
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-08-29 21:53:40 +02:00
Jeromy Johnson
594ae64f15
Merge pull request #3129 from ipfs/feat/default-rename
...
commands: replace <default> keyword with <<default>>
2016-08-26 09:41:14 -07:00
Jakub Sztandera
7e5393c4db
commands: replace <default> keyword with <<default>>
...
This way if we use <default> in description (we use thigns like <hash>
already), it won't conflict and modify the description in unwanted way.
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-08-26 18:20:17 +02:00
Jeromy
05b197df2d
update deps for libp2p 3.4.0
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-25 19:02:55 -07:00
Jeromy Johnson
a2bba212d0
Merge pull request #3106 from ipfs/feat/cmds/dht-provide
...
cmds: implement ipfs dht provide command
2016-08-24 10:59:23 -07:00
Jeromy
0a6ab30212
address CR feedback
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-24 10:32:40 -07:00
Jeromy
798569bb68
don't provide same block twice during call to dht provide
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-24 10:17:50 -07:00
Jeromy
8aac844641
add -r flag for dht provide
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-23 12:44:53 -07:00
Jeromy Johnson
8830aae9bc
Merge pull request #3091 from ipfs/feat/temp-err-retries
...
datastore: blockstore should retry when it encounters temp errors
2016-08-22 09:35:19 -07:00
Jeromy Johnson
8ffab98d55
Merge pull request #3102 from ipfs/feat/local-add
...
ipfs/add: make --local flag not write out providers
2016-08-20 18:46:58 -07:00
Jeromy Johnson
19779b3707
Merge pull request #3103 from ipfs/feat/pin/no-prov-internal
...
pin: use separate dagservice for storing pinsets
2016-08-20 18:46:40 -07:00
Jeromy
eaa433f27b
cmds: implement ipfs dht provide command
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-19 19:52:49 -07:00
Jeromy
db228e1054
pin: use separate dagservice for storing pinsets
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-19 17:45:49 -07:00
Jeromy
4b278856d2
ipfs/add: make --local flag not write out providers
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-19 17:01:15 -07:00
Jeromy
ad488c6525
reprovider: add config option to set reprovide interval
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-19 16:52:03 -07:00
Jeromy
115bee5d93
ipfs/cat: disable auto-gc check
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-19 13:36:04 -07:00
Jeromy Johnson
10048ceca9
Merge pull request #2962 from ipfs/kevina/block-rm
...
Add "ipfs block rm" command.
2016-08-18 13:27:26 -07:00
Kevin Atkinson
8679af7a02
"block rm": add "--force" and "--quiet" option
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-08-17 01:29:40 -04:00
Jeromy
8813008046
datastore: blockstore should retry when it encounters temp errors
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-16 11:51:06 -07:00
Jeromy Johnson
1891fd13bf
Merge pull request #3083 from dokterbob/lshelpdoc
...
Document listing commands better
2016-08-16 09:37:57 -07:00
Jeromy Johnson
2414c06221
Merge pull request #2852 from thomas-gardner/bitswap/ledger
...
bitswap: add `ledger` subcommand
2016-08-16 09:29:40 -07:00
Jeromy Johnson
dcfd842d83
Merge pull request #3041 from JesseWeinstein/docs/cli-use-imperative
...
Make all Taglines use imperative mood
2016-08-16 09:25:09 -07:00
Jeromy Johnson
3e8fcc5b28
Merge pull request #3077 from ipfs/feat/is-domain-to-gxx
...
deps: move go-is-domain to gx
2016-08-16 09:24:53 -07:00
Jeromy Johnson
f2127af019
Merge pull request #3088 from ipfs/feature/add-period
...
Add period to `ipfs pin rm`
2016-08-16 09:22:30 -07:00
Kevin Atkinson
c88b4b0941
"block rm": remove the option to ignore pins
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-08-15 13:17:43 -04:00
Kevin Atkinson
efeb789878
Check for multiple pinned blocks in a single pass.
...
Provide a new method, Pinner.CheckIfPinned(), which will check if
any of the arguments are pinned. Previously IsPinned would need to be
called once for each block. The new method will speed up the checking
of multiple pinned blocks from O(p*n) to O(p) (where p is the number
of pinned blocks and n is the number of blocks to be check)
Use the new method in "block rm".
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-08-15 13:17:43 -04:00
Kevin Atkinson
6ad497bcf0
"block rm": use channel instead of pipe / don't abort on non-fatal error
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-08-15 13:17:43 -04:00
Kevin Atkinson
453be22dfb
Add "ipfs block rm" command.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-08-15 13:17:43 -04:00
Richard Littauer
b76dcb8dd7
Add period to ipfs pin rm
...
Small doc fix.
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-08-15 10:46:15 -04:00
Kevin Simper
e3a42d983e
Update dns help with a correct domain name
...
Closes https://github.com/ipfs/faq/issues/161
License: MIT
Signed-off-by: Kevin Simper <kevin.simper@gmail.com>
2016-08-15 13:24:41 +02:00
Mathijs de Bruin
0aad342306
Improve command documentation for listing commands ( Fixes #3057 ).
...
* Document deprecation of 'ipfs file' in command help.
* Be explicit about 'ipfs ls' listing unixfs and suplying type in JSON.
* Amend description for 'ipfs files ls'.
License: MIT
Signed-off-by: Mathijs de Bruin <mathijs@mathijsfietst.nl>
2016-08-13 11:17:50 +02:00
Jakub Sztandera
cf23ab9ff4
deps: move go-is-domain to gx
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-08-12 16:41:18 +02:00
Thomas Gardner
1079acf695
bitswap: add ledger subcommand
...
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-08-05 19:35:34 +10:00
Jesse Weinstein
1d6a47bf93
Make all Taglines use imperative mood
...
License: MIT
Signed-off-by: Jesse Weinstein <jesse@wefu.org>
2016-08-04 16:45:59 -07:00
Jeromy Johnson
241bfceeb3
Merge pull request #3017 from JesseWeinstein/fix_doc
...
-enc is spelled with two dashes, not one
2016-08-03 11:21:35 -07:00
Jeromy
ac3f9aceb4
don't cache entire mfs tree on add finalize
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-01 16:53:45 -07:00
Jeromy
1b50fcefed
default add progress to false, unless using CLI
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-08-01 10:03:43 -07:00
Jesse Weinstein
9f4a842162
-enc is spelled with two dashes, not one
...
License: MIT
Signed-off-by: Jesse Weinstein <jesse@wefu.org>
2016-07-29 23:04:54 -07:00
Jakub Sztandera
66686e66be
commands: fix refs 'edges' option work
...
also change it to use format instead of separate variable
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-28 20:25:32 +01:00
Jeromy
e8addf5ee3
use batching datastore for providers storage
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-26 10:48:25 -07:00
Jeromy Johnson
83d9c1c106
Merge pull request #2939 from ipfs/feat/auto-migrate
...
Automatically download and run migrations if needed
2016-07-22 05:47:21 -07:00
kpcyrd
f84855d9ca
Use bitshifting for inputLimit
...
License: MIT
Signed-off-by: kpcyrd <git@rxv.cc>
2016-07-20 03:29:17 +02:00
kpcyrd
871a500294
Increase 512kbytes object put limit to 2mbytes
...
License: MIT
Signed-off-by: kpcyrd <git@rxv.cc>
2016-07-19 18:58:41 +02:00
Jeromy
660a4a9d98
mfs: fix copying into directory with no given filename
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-19 07:41:00 -07:00
Jeromy
a3bd3bc364
Automatically download and run migrations if needed
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-19 06:50:00 -07:00
Jeromy Johnson
8fbbd7f711
Merge pull request #2973 from ipfs/feature/blockstore-bloom-config
...
config: add config option for bloom filter
2016-07-16 06:17:17 -07:00
Jakub Sztandera
af06bd4198
config: add config option for bloom filter
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-16 12:24:01 +01:00
Jeromy Johnson
676b5ee7c8
Merge pull request #2952 from ipfs/fix/stdin-handling
...
rework stdin handling
2016-07-16 04:17:38 -07:00
Jeromy Johnson
0dd04fe149
Merge pull request #2957 from ipfs/patch-1
...
core/commands/config: do not show private key on local network
2016-07-16 04:15:09 -07:00
Jeromy
72705564e7
another type check fix and add back a missing test
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-15 10:49:57 -07:00
Jeromy
c5318e892e
type check to avoid panic
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-15 10:42:19 -07:00
Jakub Sztandera
921ae0e964
style: decapitalize error names
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-14 13:57:38 +01:00
Jeromy Johnson
6912f47a44
Merge pull request #2960 from ipfs/feat/mdag-caching
...
cache encoded data when reading dag nodes from disk
2016-07-14 05:23:13 -07:00
Jakub Sztandera
6b97588266
cmd: include case where PrivKey is stored in lower case
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-13 18:46:33 +01:00
Jakub Sztandera
2fded41ff5
core/commands: do not show PrivKey in config if it is null
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-13 18:45:51 +01:00
Jakub Sztandera
2b682f95d0
core/commands/config: error out if config replace contains privkey
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-13 18:45:51 +01:00
Jakub Sztandera
011a546b9c
core/cmds/config: do not show privkey on the network
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-13 18:45:51 +01:00
Vasily Kolobkov
9f14624026
Build on OpenBSD
...
License: MIT
Signed-off-by: Vasily Kolobkov <polezaivsani@openmailbox.org>
2016-07-12 13:11:57 +02:00
Jeromy
bf23516dc0
cache encoded data when reading dag nodes from disk
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-10 13:13:35 -07:00
Jeromy
1f6dd26cae
add bootstrap add-default and rm-all subcommands to deprecate flags
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-09 12:32:58 -07:00
Jeromy
b034a0d8e8
and special case that one thing because why not
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-09 11:33:02 -07:00
Jeromy
5d301cb8ec
re-enable the stdin
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-08 16:39:15 -07:00
Jeromy
1aeda7eb6e
ignore those last bits, this time its for real
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-08 14:35:18 -07:00
Jakub Sztandera
e85a39c610
core: do not run bloom filter if in a temoporary node mode
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-08 21:17:32 +02:00
Jakub Sztandera
016d3d97ef
blocks/blockstore: introduce context passing to blockstore
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-08 21:17:32 +02:00
Jeromy
a6af6c504b
clean up previous work a bit
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-08 11:09:12 -07:00
Jeromy
96433cc6e1
starting to rework stdin handling
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-07 16:58:43 -07:00
Jeromy
a98dff6275
make repo verify work with running daemon
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-06 22:12:31 -07:00
Jeromy Johnson
5d1b28e233
Merge pull request #2948 from ipfs/feat/get-progress
...
fix progress bar in ipfs get
2016-07-06 16:47:56 -07:00
Jeromy
43cd49dcb4
fix progress bar in ipfs get
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-06 15:42:08 -07:00
Jeromy Johnson
2df8dc5a88
Merge pull request #2924 from ipfs/feat/repo-verify
...
add repo verify command
2016-07-06 11:39:13 -07:00
Jeromy
d13befe9ef
add a test for repo verify, and make it return non-zero code on failure
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-05 14:58:48 -07:00
Jeromy
c53154cd2b
add repo verify command
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-05 14:58:48 -07:00
Jeromy
7968399712
clear dial backoff on explicit dial
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-04 12:27:41 -07:00
Jeromy
979edf3a96
update go-libp2p
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-04 12:27:26 -07:00
Jakub Sztandera
5d83d89f36
blocks/blockstore: Add bloom filter
...
Replace write_cache with bloom_cache
Improve ARC caching
Fix small issue in case of AllKeysChan fails
deps: Update go-datastore
blocks/blockstore: Invalidate ARC cache before deletin block
deps: Update go-datastore
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-07-03 22:16:28 +02:00
Jeromy
0aafa6db8c
update go-datastore changes 0.1.2
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-01 22:40:57 -07:00
Jeromy
0782c4dc03
encode keys to datastore with base32 standard encoding
...
Fixes #2601
Also bump version to 0.4.3-dev
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-01 14:15:06 -07:00
Jakub Sztandera
d72c9fcd3e
Add flag to ls to not resolve type of subnodes ( #2824 )
...
* Disable resolving of the typ by default in ls
Add option to resolve type using ls but
set it to false by default.
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Make ipfs ls show type if it is avaliable locally
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Make resolve-type default to true
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-28 12:06:01 -07:00
Jakub Sztandera
b17506a181
Make primary option the longer one
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-28 19:51:56 +02:00
Jakub Sztandera
adf405210d
Remove existing synopsis
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-28 19:51:56 +02:00
Jeromy Johnson
3b2993dd9a
Merge pull request #2902 from thomas-gardner/commands
...
commands: remove EnableStdin support for StringArg [v2]
2016-06-27 23:00:16 -07:00
Jeromy Johnson
68c87ed1b1
Merge pull request #2904 from ipfs/feature/repo-runtime-check
...
Add option for datastore read rehashing
2016-06-27 16:09:24 -07:00
Thomas Gardner
ddc8d0c60c
commands: remove EnableStdin support for StringArg
...
With verbose flag:
* remove EnableStdin() flags on all StringArg,
* remove all unneeded parsing code for StringArg, and print an
* informative message if `ipfs` begins reading from a CharDevice,
* remove broken go tests for EnableStdin cli parsing, and add some
* trivial test cases for reading FileArg from stdin,
* add a panic to prevent EnableStdin from being set on
* StringArg in the future.
Resolves : #2877 , #2870
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-06-26 12:28:55 +10:00
Yuval Langer
5089dafc9c
Fix typo
...
License: MIT
Signed-off-by: Yuval Langer <yuval.langer@gmail.com>
2016-06-25 19:12:17 +03:00
Jakub Sztandera
0f3dc1e84a
core: Add config option for datastore read rehashing
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-24 22:38:01 +02:00
Jakub Sztandera
ce8c8a7a71
Update go-log in whole dependency tree ( #2898 )
...
* Update golog in go-ipfs
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update go-libp2p for go-log
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update go-libp2p-secio for go-log
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update go-libp2p-crypto for go-log
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update go-libp2p-peer for go-log
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Import peersore, it wasn't imported
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update peerstore
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update peer
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update secio
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
* Update go-libp2p
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-24 09:38:07 -07:00
Jeromy
f26d8c7b46
respect context cancellation in add
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-22 17:16:34 -07:00
Jeromy
8e505f291f
fix progress bar in add
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-22 17:09:35 -07:00
Jeromy Johnson
472deb0e96
Merge pull request #2872 from ipfs-filestore/best-effort-pins
...
Add Files API root as best-effort pin
2016-06-21 20:42:19 -07:00
Jeromy Johnson
7d18f74879
Merge pull request #2880 from yuvallanger/swarm-filters-save-config
...
Swarm filters save config (fix #2878 )
2016-06-21 10:42:19 -07:00
Yuval Langer
20b6499102
Move no arguments check to before opening fsrepo.
...
License: MIT
Signed-off-by: Yuval Langer <yuval.langer@gmail.com>
2016-06-21 00:41:08 +03:00
Yuval Langer
42468d0ebe
Add filtersRemove() and the swarmFiltersRmCmd.Run() parts that call it.
...
Also added types and marshalers to the swarmFiltersAddCmd and
swarmFiltersRmCmd structs.
License: MIT
Signed-off-by: Yuval Langer <yuval.langer@gmail.com>
2016-06-21 00:26:17 +03:00
Yuval Langer
bd9b312039
Add filtersAdd() and the code that uses it to swarmFiltersAddCmd.Run()
...
License: MIT
Signed-off-by: Yuval Langer <yuval.langer@gmail.com>
2016-06-21 00:26:14 +03:00
Kevin Atkinson
714f2debea
Add Files API root as best-effort pin.
...
Closes #2697 . Closes #2698 .
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-06-20 17:09:56 -04:00
Jeromy Johnson
c6443fd933
Merge pull request #2874 from ipfs/extract-gateway
...
gateway: clean up its surface, and remove BlockList
2016-06-20 12:34:29 -07:00
Lars Gierth
1afebc21f3
gateway: clean up its surface, and remove BlockList
...
This patch is in preparation for the gateway's extraction.
It's interesting to trace technical debt back to its
origin, understanding the circumstances in which it
was introduced and built up, and then cutting it back
at exactly the right places.
- Clean up the gateway's surface
The option builder GatewayOption() now takes only
arguments which are relevant for HTTP handler muxing,
i.e. the paths where the gateway should be mounted.
All other configuration happens through the
GatewayConfig object.
- Remove BlockList
I know why this was introduced in the first place,
but it never ended up fulfilling that purpose.
Somehow it was only ever used by the API server,
not the gateway, which really doesn't make sense.
It was also never wired up with CLI nor fs-repo.
Eventually @krl started punching holes into it
to make the Web UI accessible.
- Remove --unrestricted-api
This was holes being punched into BlockList too,
for accessing /ipfs and /ipn on the API server.
With BlockList removed and /ipfs and /ipns freely
accessible, putting this option out of action
is safe. With the next major release,
the option can be removed for good.
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-06-19 00:52:35 +02:00
Jakub Sztandera
e67a21ed6a
Add net.online to diag sys command
...
Currently there was no sure way to check if node is in online
or offline mode.
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-18 12:39:13 +02:00
Jeromy Johnson
0f3ae0736a
Merge pull request #2853 from ipfs/feature/decapitalize-Debug
...
Decapitalized log.Debug messages
2016-06-17 10:26:20 -07:00
Jeromy
de56a47bc0
update go-libp2p to 3.3.4
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-15 13:04:49 -07:00
Richard Littauer
b6a3435bb5
Decapitalized log.Debug messages
...
According to golang standards, these should not be capitalized nor having a trailing period, AFAIK.
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-06-15 08:56:34 +01:00
Jakub Sztandera
cafd81c8c6
Import go-datastore to gx
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-12 08:47:15 +02:00
Jakub Sztandera
6217e1f141
Remove go-datastore from Godeps
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-12 08:23:43 +02:00
Jeromy Johnson
ecbca7e0f4
Merge pull request #2813 from ipfs/feature/ping-api
...
Improve ping API a bit by returning failure in case of only failure
2016-06-11 18:40:22 -07:00
Jeromy
4c1201badb
update iptb and multinode tests
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-11 15:54:28 -07:00
Jeromy
7c8e641436
pull in libp2p updates with utp fixes
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-11 10:33:44 -07:00
Jeromy Johnson
444a8dc2f6
Merge pull request #2812 from ipfs/feature/refs-local-api
...
Fix refs local marshalling
2016-06-10 11:35:06 -07:00
Jakub Sztandera
eaccd07505
Update go-log
...
https://github.com/ipfs/go-log/pull/3
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-09 23:37:09 +02:00
Jakub Sztandera
c7d04e96b3
Move go-sysinfo to gx
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-09 11:32:02 +02:00
Jakub Sztandera
6d4975d82c
Move go-humanize to gx
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-09 11:32:02 +02:00
Jakub Sztandera
1c9b6078e3
Improve ping API a bit by returning failure in case of only failure
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-08 19:58:44 +02:00
Jakub Sztandera
8be37ea51b
Rremove unneeded print
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-07 10:22:27 +02:00
Jeromy Johnson
7a7a267e36
Merge pull request #2818 from ipfs/deps/libp2p/id-fix
...
update libp2p to version 3.2.2
2016-06-07 01:08:55 -07:00
Jeromy
afbc6be0a6
update libp2p to version 3.2.2
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-07 00:20:06 -07:00
Jeromy Johnson
e2c7a04400
Merge pull request #2795 from ipfs/fix/mfs-caching
...
rework add-mfs to not use caching
2016-06-07 00:01:44 -07:00
Jakub Sztandera
953448af82
Fix refs local marshalling
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-06 12:31:05 +02:00
Michael Pfister
eb156e05e3
removes files and object alias
...
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
2016-06-05 19:43:13 -07:00
Michael Pfister
9fa5e3824a
Adds aliases to stats command
...
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
2016-06-05 18:09:59 -07:00
Michael Pfister
7517bb393b
fixing bad rebase
...
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
2016-06-03 13:20:32 -07:00
Michael Pfister
74e701d852
Add period to helptext
...
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
2016-06-03 13:05:45 -07:00
Michael Pfister
cd0a33c7c2
Adds repo version subcommand
...
Fixes #2571
License: MIT
Signed-off-by: Mike Pfister <pfista@gmail.com>
2016-06-03 13:05:45 -07:00
Michael Pfister
234afc8888
Adds repo version info to repo stat command
...
addresses #2571
License: MIT
Signed-off-by: Mike Pfister <pfista@gmail.com>
2016-06-03 13:03:40 -07:00
Jeromy
22a5b79508
rework add-mfs to not use caching
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-02 12:54:53 -07:00
Jeromy Johnson
994109c731
Merge pull request #2790 from ipfs/feature/version-all
...
Add version --all option
2016-06-02 12:23:45 -07:00
Jeromy Johnson
082393dba4
Merge pull request #2792 from ipfs-filestore/kevina/filestore-bits
...
Stable bits from Pull Request #2634
2016-06-01 20:47:33 -07:00
Kevin Atkinson
9360f5ca6f
Store needed parts of IpfsNode in Adder.
...
This will make it easier to set up a specialized data pipeline.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-06-01 22:17:02 -04:00
Jeromy
7274c6be35
update libp2p to v3.3.1
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-01 16:45:46 -07:00
Jakub Sztandera
0bcfc493c6
Add version --all option
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-01 22:43:49 +02:00
Jeromy Johnson
393ae7b732
Merge pull request #2781 from ipfs/feature/fix-files-apostrophe
...
Fixed apostrope in files stat options
2016-06-01 12:31:49 -07:00
Jeromy Johnson
fd1eae87f7
Merge pull request #2782 from ipfs/feature/78-ruler
...
All commands: Align to under 78-ruler width
2016-06-01 09:45:55 -07:00
Jeromy Johnson
cd4bc54d90
Merge pull request #2780 from ipfs/feature/files-ruler
...
files: Adjust to fit ruler 78
2016-06-01 09:18:59 -07:00
Jeromy Johnson
711ed38d3f
Merge pull request #2779 from ipfs/feature/stats-ruler
...
stats: Aligned text to 78 ruler, fixed grammar error
2016-06-01 09:18:22 -07:00
Jeromy Johnson
5f6961028c
Merge pull request #2757 from ipfs/feature/Godeps-to-gx-2
...
Second wave of gx migrations
2016-06-01 09:17:26 -07:00
Richard Littauer
7f61030eb5
All commands: Align to under 78-ruler width
...
This is just for the description, for now.
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-06-01 16:44:29 +01:00
Richard Littauer
575547042c
Fixed apostrope in files stat options
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-06-01 15:42:23 +01:00
Richard Littauer
f2328af541
files: Adjust to fit ruler 78
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-06-01 15:38:00 +01:00
Richard Littauer
5593d776be
stats: Aligned text to 78 ruler, fixed grammar error
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-06-01 15:32:41 +01:00
Jeromy Johnson
c814478fb9
Merge pull request #2773 from ipfs/feature/commands-flags
...
Fix commands --flags not showing flags via HTTP API
2016-05-31 16:32:20 -07:00
Jakub Sztandera
afb2afc7bc
Move pb to gx
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-31 22:36:22 +02:00
Jeromy Johnson
6a894d6e76
Merge pull request #2696 from ipfs/feature/Offline-2393
...
Offline daemon mode
2016-05-31 09:12:13 -07:00
Jakub Sztandera
a6d0fd287b
Fix commands --flags not showing flags via HTTP API
...
It was caused by the cmds.Option struct being Interface not struct
The solution is to create struct and copy interesting data over.
Also removed the "ShowOptions" field from being sent via the HTTP API.
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-31 16:55:37 +02:00
Jeromy
aae6a2c379
update libp2p to v3.2.3
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-30 22:14:21 -07:00
Jeromy Johnson
6c3350369e
Merge pull request #2516 from Stebalien/protobuf-content-type
...
Correctly set the content type for `object get --encoding=protobuf`
2016-05-28 23:28:45 -07:00
Jakub Sztandera
e76a53717b
Prevent repetative initalisations in offline mode
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-24 15:59:56 +02:00
Jakub Sztandera
a77fa94fdf
Make errors more reasonable in case of node in offline mode
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-24 15:59:56 +02:00
Richard Littauer
03dd669430
Refactor progress and showProgressBar
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-21 14:27:10 +01:00
Richard Littauer
6f796dc272
Add Defaults to ipfs add
...
I didn't bother with Chunker, because I think that is a much wider PR. These should all be solid, though. Redid some of the logic to make it smoother.
Part of #2484 .
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-21 12:37:37 +01:00
Jeromy Johnson
518f7e06a1
Merge pull request #2744 from ipfs/feature/Options-Default-2702
...
Allow to specify where to put default options in option desciption
2016-05-20 20:28:39 -07:00
Jakub Sztandera
679c0ae3ee
Use one verbose flag description
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-19 21:38:50 +02:00
Jakub Sztandera
70342314ae
Allow to specify where to put default options in option desciption
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-19 18:54:37 +02:00
Jeromy Johnson
f01461033d
Merge pull request #2728 from ipfs/peers-total-by-transport
...
metrics: add transport label to p2p_peers_total
2016-05-18 14:57:48 -07:00
Jeromy Johnson
6f716463d2
Merge pull request #2706 from ipfs/feature/MFSStatsHashOnly
...
Add --format option to mfs stat command
2016-05-18 13:47:46 -07:00
Jeromy Johnson
2482dc8f84
Merge pull request #2713 from csasarak/swarm_verbose
...
Added a verbose option for swarm peers.
2016-05-18 13:44:38 -07:00
Lars Gierth
05cb7a1bc2
metrics: add transport label to p2p_peers_total
...
Gives us per-transport peers counts:
ipfs_p2p_peers_total{transport="/ip4/tcp"} 25
ipfs_p2p_peers_total{transport="/ip6/tcp"} 13
ipfs_p2p_peers_total{transport="/ip6/udp/utp"} 17
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-05-18 22:30:52 +02:00
Chris Sasarak
584d49694e
Updated verbose swarm to not ping peers.
...
License: MIT
Signed-off-by: Chris Sasarak <chris.sasarak@gmail.com>
2016-05-17 22:28:57 -04:00
Jeromy Johnson
414c0ccbc4
Merge pull request #2716 from ipfs/patch-add-link-paths
...
Fix #2715 and patch add-link paths
2016-05-17 11:43:11 -07:00
Jeromy
e22345ae65
update go-libp2p 3.2.2, nil maddr fixes
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-17 10:23:10 -07:00
Jakub Sztandera
130c08c3cd
Make format logic look much better
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-17 16:32:46 +02:00
jbenet
9f79dde058
ipfs object patch add-link supports paths
...
previously, paths were not supported as link values.
this would not work, and now can:
ipfs object patch $root add-link foo /ipfs/$hash/foo/bar
License: MIT
Signed-off-by: Juan Benet <juan@benet.ai>
2016-05-16 23:03:31 -07:00
Christopher Sasarak
762aded60e
Added a verbose option for swarm peers.
...
This is used like 'ipfs swarm peers -v'. It prints out the normal peers
information, but also the latency of each peer
License: MIT
Signed-off-by: Chris Sasarak <chris.sasarak@gmail.com>
2016-05-16 20:55:05 -04:00
Jakub Sztandera
94f1922dc2
Incorporate better moreThanOne function
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-16 22:51:08 +02:00
Jakub Sztandera
49936895ff
Add --format option to mfs stats command
...
also add --hash and --size of hash and size only formats
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-16 21:51:38 +02:00
Jeromy
23c8ed93fd
update libp2p to v3.2.1
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-16 11:22:36 -07:00
Jeromy Johnson
b0b1e0f1c1
Merge pull request #2681 from ipfs/feature/spruce-upstat
...
Add helptext, default logic to `ipfs stats`
2016-05-16 09:00:36 -07:00
Richard Littauer
8ee399fbeb
Add helptext, default logic to ipfs stats
...
I've added: Synopsis, shortDescription, and longDescription for stats and stats bw.
I also added default(false) for poll and default("1s") for interval, and modified the logic to make it fit.
Part of #2484 and #2647 .
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-16 10:59:30 -04:00
Jeromy Johnson
f40127d23b
Merge pull request #2669 from ipfs/feature/add-default-to-name
...
Added Default logic to `name` cmd, and local option
2016-05-15 18:37:50 -07:00
Christian Couder
39f23677f5
pin: use new constants instead of literal values
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-05-15 18:18:29 +02:00
Jeromy Johnson
0b701e832a
Merge pull request #2677 from ipfs/feature/add-default-to-publish
...
Added Default logic to publish
2016-05-14 15:29:03 -07:00
Jeromy Johnson
a7c5a6f6a7
Merge pull request #2656 from ipfs/feature/add-default-false-to-verbose-flags
...
Added Default(false) to verbose for `active` and `dht` cmds
2016-05-14 14:56:53 -07:00
Jakub Sztandera
7f61b3170f
Add logic for copying ShortDes to LongDesc if it is not present
...
This is the best place for inserting it that I found.
Test in #2648 should be modified to run `Root.ProcessHelp()`.
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-14 13:23:35 +02:00
Jeromy Johnson
28999f774c
Merge pull request #2661 from ipfs/feature/add-default-to-bootstrap
...
Added Default to `bootstrap` cmd
2016-05-13 18:32:03 -07:00
Richard Littauer
bffd648935
Added Default to bootstrap cmd
...
Part of #2484 .
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-13 20:49:26 -04:00
Richard Littauer
90421f556f
Added Default logic to refs
...
Not sure about the switch statement. There may be a more elegant solution.
Part of #2484
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-13 20:46:28 -04:00
Richard Littauer
fb03cb783b
Added Default logic to name cmd, and local option
...
Added Default logic per #2484 , and also added the local option back in, because it exists in the code and should be shown as helptext, at least.
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-13 20:38:49 -04:00
Richard Littauer
475d73088c
Added Default logic to publish
...
Part of #2484
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-13 20:26:16 -04:00
Jeromy Johnson
7732411475
Merge pull request #2672 from kpcyrd/feature/cache-control-immutable
...
Set Cache-Control immutable
2016-05-13 16:01:43 -07:00
Jeromy Johnson
704dcb8c4a
Merge pull request #2683 from ipfs/feature/update-file-helptext
...
Updated `file` helptext
2016-05-13 15:39:38 -07:00
Jeromy Johnson
b88c2c6cbc
Merge pull request #2664 from ipfs/feature/add-default-to-diag
...
Added Default to `diag` cmd
2016-05-13 15:38:05 -07:00
Jeromy Johnson
d3930e2028
Merge pull request #2665 from ipfs/feature/add-default-to-dns
...
Added Default to `dns` cmd
2016-05-13 15:37:49 -07:00
Jeromy Johnson
fb87d2faf0
Merge pull request #2643 from RichardLitt/docs/lint-diff-text
...
Linted object diff help text
2016-05-13 15:24:52 -07:00
Jeromy Johnson
e67fdd534e
Merge pull request #2674 from ipfs/feature/add-default-to-object-cmd
...
Added Default logic to object object and patch
2016-05-13 15:24:24 -07:00
Jeromy Johnson
df1ac97cfa
Merge pull request #2663 from ipfs/feature/add-default-to-config
...
Added Default to `config` cmd
2016-05-13 15:16:07 -07:00
Jeromy Johnson
dea67d2be6
Merge pull request #2662 from ipfs/feature/add-default-to-commands
...
Added Default to `commands` cmd
2016-05-13 15:08:02 -07:00
Jeromy Johnson
2297759ec4
Merge pull request #2668 from ipfs/feature/add-default-to-get
...
Added Default logic to `get` cmd
2016-05-13 14:58:38 -07:00
Richard Littauer
185619f689
Updated file helptext
...
Part of #2647
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-13 17:54:06 -04:00
Jeromy Johnson
8f24275a87
Merge pull request #2676 from ipfs/feature/add-default-to-ping
...
Added Default to ping, cleaned up logic
2016-05-13 14:53:57 -07:00
Jeromy Johnson
a55bd460e8
Merge pull request #2670 from ipfs/feature/add-default-to-ls-headers
...
Added Default logic to `ls` cmd
2016-05-13 14:50:50 -07:00
Jeromy Johnson
e9bb0b4813
Merge pull request #2671 from ipfs/feature/mount_unix_long_help
...
Added a note about the default values
2016-05-13 14:47:24 -07:00
Jeromy Johnson
7610bf47fd
Merge pull request #2666 from ipfs/feature/external-clean-up
...
Capitalize print statements, add period to `external`
2016-05-13 14:46:38 -07:00
Jeromy Johnson
927083e221
Merge pull request #2675 from ipfs/feature/change-pin-otions
...
pin ls: Remove count option, add Default to quiet
2016-05-13 14:46:12 -07:00
Jeromy Johnson
d4ce5f09e1
Merge pull request #2679 from ipfs/feature/add-default-false
...
Added Default false to all remaining options
2016-05-13 14:45:22 -07:00
Jeromy Johnson
efc6231241
Merge pull request #2682 from ipfs/feature/ping-go-syn
...
Updated synopsis for ping
2016-05-13 14:30:49 -07:00
Jeromy Johnson
d03bcd464a
Merge pull request #2688 from ipfs/feature/2617-update-resolve
...
Updated resolve hash to Mars, added reference
2016-05-13 14:28:21 -07:00
Jeromy
a657ccf6c0
update deps to introduce yamux hang fix
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-13 13:42:46 -07:00
Richard Littauer
b356089daa
Updated resolve hash to Mars, added reference
...
Closes #2617 .
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-13 14:53:12 -04:00
Richard Littauer
efc18a3e65
Updated synopsis for ping
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-12 13:48:19 -04:00
Richard Littauer
b01c3f5039
Also added to Root
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-12 12:08:40 -04:00
Richard Littauer
f52050de80
Added Default false to all remaining options
...
Specifically, to `repo`, `resolve`, `swarm`, and `version`. Part of #2484 .
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-12 12:02:47 -04:00
Richard Littauer
254620d3a2
Added Default to ping, cleaned up logic
...
Part of #2484
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-12 11:46:38 -04:00
Richard Littauer
f6a1be68ab
pin ls: Remove count option, add Default to quiet
...
'count' is never referenced in the code, and adds nothing when run with `ipfs pin ls` currently. I have removed it; add it again when there is actual logic to reflect. Also, added a Default(false) to quiet.
Part of #2484
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-12 11:41:19 -04:00
Richard Littauer
c68aa06c5d
Added Default logic to object object and patch
...
Part of #2484 .
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-12 11:35:18 -04:00
kpcyrd
c2a3e3169d
Set Cache-Control immutable
...
Given that /ipfs/ resources never change, we can easily benefit from this
new cache control extension.
Support for this is about to land in Firefox 49:
https://bugzilla.mozilla.org/show_bug.cgi?id=1267474
For more details, there is a good blogpost about this here:
https://bitsup.blogspot.de/2016/05/cache-control-immutable.html
This header is ignored by clients that don't support it.
License: MIT
Signed-off-by: kpcyrd <git@rxv.cc>
2016-05-12 12:16:42 +02:00
Richard Littauer
fedf553be3
Added a note about the default values
...
The /ipfs and /ipns paths can be overridden by the options; this wasn't
in the help text for the options, but should be somewhere. Long help
seemed appropriate.
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-11 17:21:00 -04:00
Richard Littauer
ba36b860dd
Added Default logic to ls cmd
...
See #2484
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-11 17:13:16 -04:00
Richard Littauer
26375df590
Added Default logic to get cmd
...
Part of #2484
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-11 16:47:55 -04:00
Richard Littauer
158eddcd7f
Capitalize print statements, add period to external
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-11 16:20:15 -04:00
Richard Littauer
1fa63c437b
Added Default to dns cmd
...
Part of #2484
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-11 16:14:16 -04:00
Richard Littauer
8aa3e51e78
Added Default to diag cmd
...
Part of #2484 .
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-11 16:10:53 -04:00
Richard Littauer
e83d0b15a8
Added Default to config cmd
...
Part of #2484
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-11 16:05:44 -04:00
Richard Littauer
7fee408b6b
Added Default to commands cmd
...
Part of #2484
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-11 16:03:35 -04:00
Jeromy
6359dc9d5e
update libp2p with go-multiaddr and go-stream-muxer updates
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-10 16:06:28 -07:00
Richard Littauer
eaae8bf24c
Added Default(false) to verbose for active and dht cmds
...
This required no change of the code. I also changed the message from `debug` to `extra`, which I think is closer to the truth. Part of #2484 .
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-10 16:52:24 -04:00
Richard Littauer
f6e88d7404
Linted object diff help text
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-09 11:06:53 -04:00
Richard Littauer
23108aaa5d
Marshal log ls better
...
This uses a stringList to output each log command as an item in an array in an object called Strings, instead of using the MessageOutput func.
This closes #2636 .
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-06 19:31:57 -04:00
Kevin Atkinson
b84cbec2b6
Make blocks.Block an interface.
...
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-05-05 18:02:11 -04:00
Hector Sanjuan
fba1448556
Add "ipfs log ls" command
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2016-05-04 23:33:43 +02:00
Hector Sanjuan
57b494a70c
Update go-log to 1.1.0 and fix calls to go-log.Uuid
...
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2016-05-04 23:17:21 +02:00
SH
f3b0860c79
Merge remote-tracking branch 'upstream/master'
2016-04-30 21:30:44 +02:00
Jeromy Johnson
de6c65ba07
Merge pull request #2628 from ipfs/feature/note
...
Capitalized `NOTE`, first letter of following word
2016-04-29 15:31:26 -07:00
Richard Littauer
f60ae0a1b9
Capitalized NOTE, first letter of following word
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-29 16:57:19 -04:00
SH
2af48e6804
add NetBSD support
...
License: MIT
Signed-off-by: Stefan Hertenberger <github@hertenberger.bayern>
2016-04-29 22:49:54 +02:00
Richard Littauer
e375c8cbf7
Capitalized a, lowercased not
...
A should be capitalised, as it is a new clause; `not` should not be capitalized, as there is no value judgement (it is a statement), and the emphasis is offputting without adding any technical backing. I just do not think it is necessaary.
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-29 13:34:17 -04:00
Jeromy Johnson
fed6212d51
Merge pull request #2622 from ipfs/feature/add-period
...
Added a period to repo fsck
2016-04-28 14:09:56 -07:00
Stephen Whitmore
0a45ada4ed
CLI: discoverability and consistency ( #2542 )
...
* reduces help indent from 4 to 2 spaces
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* reduces horz/vert space taken by "ipfs" cmd
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* show subcommands on shorthelp
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Drops colons at the end of cmd headings.
This makes command headings consistent with the output of 'ipfs', which
does not include colons.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* more consistent output between short-/long-help
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Puts DESCRIPTION before SUBCOMMANDS.
Users likely want to understand what a command does before worrying
about its subcommands.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Keeps ipfs cmd from outputting its subcmds twice.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes redundant synopsis from "file"
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes extra whitespace from longhelp
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Consistent spacing whether SUBCMDS or not.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes redundant SUBCMD output from ipfs object.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes redundant synopsis from "name"
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Newline after Description only if it exists.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes redundant synopsis from "bootstrap"
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes redundant synopsis from "swarm"
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes trailing newline in ping help.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Prints shorthelp on parse error.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* tiny comment fixes
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* updates README usage
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Don't include extra whitespace if no .MoreHelp
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* description improvements
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Hides the obscure 'file' subcommand.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Splits 'ipfs daemon' into Short and Long help.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes redundant synopsis from "config"
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Wraps lines to keep from going over 80.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* specify repo separately
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* s/structure/hierarchy
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* missing .
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes trailing colon from 'usage' test.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Updates sharness test error messages.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes trailing colon from 'usage' test.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Updates add-symlink to use /bin/sh.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes "hierarchy".
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Updates "ipfs ping" synopsis.
* Updates t0040 with latest wording.
* Removes unnecessary daemon setup.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-28 14:08:32 -07:00
Richard Littauer
ae235caaec
Added a period to repo fsck
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-28 17:07:46 -04:00
Jeromy
cffec77cea
update libp2p with utp dep
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-04-27 14:10:54 -07:00
michael
46bcdce15d
commands: repo fsck ( #2597 )
...
* Adds repo fsck subcommand
Fixes #2457
License: MIT
Signed-off-by: Mike Pfister <pfista@gmail.com>
* Checks for error on file deletion
License: MIT
Signed-off-by: Mike Pfister <pfista@gmail.com>
* Checks if node is online
License: MIT
Signed-off-by: Mike Pfister <pfista@gmail.com>
* Update error checking
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* Prevents command from running while daemon is running
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* Add newline to command output message
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* removing superfluous error
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* Adds sharness test for repo fsck command
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* Ignore warning if file doesn't exist
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* Updating message output
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* adding debug statements
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* update and add fsck sharness tests
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* updating comments
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* Use printf in test
Using printf prevents a newline from being printed to the api test file. When
the newline was present, multiaddr threw errors trying to parse the api address
to an integer since the newline character was present.
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* updating tests
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
* removing commented code
License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
2016-04-27 13:28:53 -07:00
Stephen Whitmore
5d25fc1f16
unix-friendly output for 'ipfs dht' commands ( #2560 )
...
* Cleans up 'ipfs dht findpeer' output
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Adds more docs for 'ipfs dht put'.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Write pretty peer ids for ipfs dht put.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Writes pretty peer ids for ipfs dht query.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Suppresses unrecognized event type for FinalPeer.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Improves helptext on dht commands.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Adds 'ipfs dht findpeer' sharness test.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Adds sharness tests for remaining DHT commands.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Uses bash tests rather than 'test' command.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes commented code.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes unneeded init_ipfs.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Tweaks iptb setup.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Tweaks wording on dht 'put' and 'get'.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes extraneous ).
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Removes apostrophe.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Tests the expected peer addresses.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Gets peer id using iptb.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Checks explicitly for common put/findprovs peers.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Sorts expected/actual findpeer results.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
* Fix disconnect argument description
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
* Fixes sort order in t0170-dht.sh.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-27 09:31:06 -07:00
Jeromy Johnson
8350a94544
Merge pull request #2519 from thomas-gardner/commands
...
commands/cli: fix parsing of incorrect permutations
2016-04-26 17:20:56 -07:00
Jeromy Johnson
7fe81dbef0
Merge pull request #2606 from ipfs/feature/diag-cmds-grammar
...
Fixed up comments for `diag cmds`
2016-04-26 17:20:49 -07:00
Jeromy Johnson
1676d0ca52
Merge pull request #2582 from ipfs/feature/refs-defaults
...
Added default values to refs
2016-04-26 17:11:11 -07:00
Richard Littauer
53c05ffd74
Added default values to refs
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-26 19:34:36 -04:00
Richard Littauer
4b4c81a37d
Fixed up comments for diag cmds
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-26 19:31:42 -04:00
Richard Littauer
f99f2ba583
Fix disconnect argument description
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-20 13:23:17 -04:00
Jeromy Johnson
c87b92c7b7
Merge pull request #2591 from ipfs/fix/null-object-links
...
add omitempty to Object struct tags
2016-04-19 16:39:10 -07:00
Jeromy Johnson
d4622c4404
Merge pull request #2592 from ipfs/fix/object-diff-resolve
...
fix resolve call in object diff
2016-04-19 16:39:03 -07:00
Jeromy Johnson
b3690ead2a
Merge pull request #2585 from ipfs/feature/repo-stat-comments
...
Small syntax changes to repo stat man
2016-04-19 16:14:06 -07:00
Jeromy Johnson
16b63e920a
Merge pull request #2586 from ipfs/feature/interval-note
...
Added note to ipfs stats bw interval option
2016-04-19 16:13:46 -07:00
Jeromy Johnson
3e536fbc23
Merge pull request #2588 from ipfs/feature/swarm-disconnect-note
...
Added a note about swarm disconnect
2016-04-19 16:13:27 -07:00
Jeromy Johnson
42062a721f
Merge pull request #2587 from ipfs/feature/alphabetize-swarm
...
Alphabetized swarm subcmds
2016-04-19 16:12:57 -07:00
Jeromy
6d90fe35ca
fix resolve call in object diff
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-04-19 16:08:06 -07:00
Jeromy
d8f8b0976f
add omitempty to Object struct tags
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-04-19 12:48:05 -07:00
Richard Littauer
3f3665e05d
Added a note about swarm disconnect
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-19 12:27:03 -04:00
Richard Littauer
34971a3e11
Also fixed syntax for comment
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-19 12:19:45 -04:00
Richard Littauer
ab4b280430
Alphabetized swarm subcmds
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-19 12:17:33 -04:00
Richard Littauer
0424d6ab64
Added note to ipfs stats bw interval option
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-19 12:05:07 -04:00
Richard Littauer
cd20618458
Small syntax changes to repo stat man
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-19 11:40:50 -04:00
wzhd
d528b9d58b
Fix a typo
...
License: MIT
Signed-off-by: Zihao Wang <dev@wzhd.org>
2016-04-19 18:14:36 +08:00
Jeromy Johnson
8ab1b8b2cb
Merge pull request #2576 from ipfs/update-libp2p
...
Update go-libp2p
2016-04-18 15:31:10 -07:00
Jeromy Johnson
2509631c29
Merge pull request #2531 from noffle/output-dirs-on-add
...
Outputs added directories as they are traversed.
2016-04-18 13:29:44 -07:00
Jeromy Johnson
a8b7c9adec
Merge pull request #2562 from ipfs/feat/object-diff
...
implement object diff command
2016-04-18 12:53:48 -07:00
Jeromy Johnson
8e368ba71b
Merge pull request #2572 from pfista/2551-log-level
...
commands: update log command help text
2016-04-18 09:43:10 -07:00
Jeromy
fa8de1bfd5
minor correction in help text
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-18 08:41:54 -07:00
Lars Gierth
00ec976e1d
Use extracted go-libp2p-crypto, -secio, -peer packages
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-16 21:48:06 -07:00
Lars Gierth
907f4fadbd
Update go-libp2p
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-16 21:23:47 -07:00
Jeromy
7e7fcb35ea
changes from CR feedback
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-04-16 12:23:34 -07:00
Jeromy
7ac1f5da5c
remove incfusever dead-code
...
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-04-16 00:02:45 -07:00
Michael Pfister
9c2feb2e04
commands: update log command help text
...
Fixes #2551
License: MIT
Signed-off-by: Mike Pfister <pfista@gmail.com>
2016-04-15 16:09:29 -07:00
Jeromy
73a2f80c76
Add some help text
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-14 13:13:54 -07:00
Jeromy
bf7da8522c
basic implementation of object diff
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-14 13:06:51 -07:00
Jeromy Johnson
44f126bf59
Merge pull request #2557 from ipfs/feat/i-am-why-deleter-of-code
...
remove a ton of unused godeps
2016-04-13 13:21:31 -07:00
Jeromy
e79e1d31e9
remove a ton of unused godeps
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-13 11:23:10 -07:00
Jakub Sztandera
e8a49d94a6
Make non recursive resolve print the result
...
Currently it prints out error message but should just print
the intermediate result as it is what we expect.
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@gmail.com>
2016-04-13 19:49:48 +02:00
Jeromy Johnson
c11118fb07
Merge pull request #2481 from ipfs/feature/add-wrap-long-desc
...
Added a long description to add
2016-04-12 18:10:43 -07:00
Jeromy Johnson
e99066a1a2
Merge pull request #2475 from ipfs/feature/object-patch-set-data-docs
...
Edited object patch set-data doc
2016-04-12 18:09:48 -07:00
Richard Littauer
a94f9dab6d
Added a long description to add
...
This explains mostly what the wrap option does, because it was not entirely clear
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-12 17:25:08 -07:00
Richard Littauer
568e5087e1
Edited object patch set-data doc
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-12 16:12:38 -07:00
Stephen Whitmore
e61e685833
redundency-be-gone
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 13:32:16 -07:00
Stephen Whitmore
7e88f83f74
Revert "mfs.Mkdir returns the final Directory it creates"
...
This reverts commit dfd98f27b2 .
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 13:30:09 -07:00
Stephen Whitmore
8fcb585cfb
Removes write flag from Finalize
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 13:03:11 -07:00
Stephen Whitmore
6588bbc988
More thorough error checking.
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 13:03:11 -07:00
Stephen Whitmore
6b0ff2bd78
Output dirs on ipfs add -rn
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 13:03:11 -07:00
Stephen Whitmore
dfd98f27b2
mfs.Mkdir returns the final Directory it creates
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-12 13:03:11 -07:00
Jeromy Johnson
8d7117f55a
Merge pull request #2549 from ipfs/datastore-config
...
repo: properly init Datastore config, and leave it be
2016-04-12 10:41:20 -07:00
Lars Gierth
caec086c28
metrics: add prometheus back
...
With a proper IpfsCollector object and tests, this time.
The collector object makes it easy to add further metrics,
like e.g. bitswap wants/provs.
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-11 19:33:16 -07:00
Lars Gierth
a79907b7c1
repo: properly init Datastore config, and leave it be
...
We didn't previously initialize the Datastore config section.
The respective function exists, but was dead code up until now.
This lead to weird decisions like the GC code deciding on defaults,
and writing these to the config file. Don't want GC to touch the config.
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-11 16:21:14 -07:00
Jeromy
bdc5456d52
update libp2p dep to fix hanging listeners problem
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-11 12:52:54 -07:00
Stephen Whitmore
c89723d316
Adds files api cmd to helptext
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-08 12:33:00 -07:00
Jeromy
00e4472dff
Remove debug log
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-08 11:23:21 -07:00
Jeromy
c5b2e09708
test for the dht key escaping
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-08 11:23:21 -07:00
Jeromy
65c66fd09b
fix dht command key escaping
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-08 11:23:21 -07:00
Jeromy
8f3a51ac42
switch to new libp2p with mss crypto
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-04-07 15:55:41 -07:00
Thomas Gardner
3e824412d9
commands/cli: fix parsing of incorrect permutations
...
parseOpts now does some preliminary path screening to prevent
command sequences like
`ipfs <hash> cat`
from succeeding. The tests affected by this have been slightly altered,
but should be restored once parseOpts is decoupled from path analysis.
Command suggestion printing has also been factored into a single
function.
Fixes : #2501
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-04-05 21:53:21 +10:00
Jeromy Johnson
ae3fed721f
Merge pull request #2520 from slothbag/sloth_b64_fix
...
Add option to decode 'Data' field as base64
2016-04-04 20:00:25 -07:00
Lars Gierth
09937f84b6
gateway: enforce allowlist for path prefixes
...
The gateway accepts an X-Ipfs-Path-Prefix header,
and assumes that it is mounted in a reverse proxy
like nginx, at this path. Links in directory listings,
as well as trailing-slash redirects need to be rewritten
with that prefix in mind.
We don't want a potential attacker to be able to
pass in arbitrary path prefixes, which would end up
in redirects and directory listings, which is why
every prefix has to be explicitly allowed in the config.
Previously, we'd accept *any* X-Ipfs-Path-Prefix header.
Example:
We mount blog.ipfs.io (a dnslink page) at ipfs.io/blog.
nginx_ipfs.conf:
location /blog/ {
rewrite "^/blog(/.*)$" $1 break;
proxy_set_header Host blog.ipfs.io;
proxy_set_header X-Ipfs-Gateway-Prefix /blog;
proxy_pass http://127.0.0.1:8080 ;
}
.ipfs/config:
"Gateway": {
"PathPrefixes": ["/blog"],
// ...
},
dnslink:
> dig TXT _dnslink.blog.ipfs.io
dnslink=/ipfs/QmWcBjXPAEdhXDATV4ghUpkAonNBbiyFx1VmmHcQe9HEGd
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-04-04 16:31:57 -04:00
slothbag
bd5e08ca9b
datafieldenc switch statement
...
License: MIT
Signed-off-by: slothbag <slothbag@gmail.com>
2016-04-04 13:21:39 +10:00
slothbag
edf0bb0544
Tidy up object put cmd defaults
...
License: MIT
Signed-off-by: slothbag <slothbag@gmail.com>
2016-04-04 13:09:22 +10:00
slothbag
903a4851b7
Add option to decode 'Data' field as base64
...
License: MIT
Signed-off-by: slothbag@gmail.com <slothbag@gmail.com>
2016-04-04 12:55:27 +10:00
Steven Allen
a72d26b875
api: correctly set the content type for object get --encoding=protobuf
...
It used to default to `application/json` but is now correctly set to
`application/protobuf`.
fixes #2469
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2016-03-31 17:14:41 -04:00
Steven Allen
f15abc223c
use the builtin option parser to set the default for ipfs pin ls --type
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2016-03-30 20:00:40 -04:00
Steven Allen
ef4e8837c6
change ipfs pin response field name from Pinned to Pins
...
This way, we don't claim to pin when unpinning.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2016-03-30 20:00:40 -04:00
Jeromy
9f75ac4d75
update utp and cleanup more godeps along the way
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-03-29 19:18:14 -07:00
Michael Muré
c88e46cb52
clean deprecated Key.Pretty()
...
License: MIT
Signed-off-by: Michael Muré <batolettre@gmail.com>
2016-03-25 12:05:45 +01:00
Jeromy Johnson
2b6da0c024
Merge pull request #2471 from ipfs/feature/alphabetize-object
...
Alphabetized object subcommands
2016-03-21 19:44:31 -07:00
Richard Littauer
5f0c997504
Edited the grammar for diag
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-03-18 17:12:45 -04:00
Richard Littauer
c692286b41
Alphabetized subcommands
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-03-15 13:23:22 -04:00
dignifiedquire
c0ec80215e
feat: Update the webui to work with the latest changes in 0.4
...
License: MIT
Signed-off-by: dignifiedquire <dignifiedquire@gmail.com>
2016-03-14 20:49:18 +01:00
Jeromy Johnson
286a5968c5
Merge pull request #2430 from diasdavid/feat/repo-stat
...
Feature: `ipfs repo stat`
2016-03-11 12:51:11 -08:00
Jeromy
97d583dd8f
update libp2p dep
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-03-09 09:53:19 -08:00
David Dias
c10e329b78
repo-stat
...
License: MIT
Signed-off-by: David Dias <daviddias.p@gmail.com>
2016-03-04 23:45:03 +00:00
Jeromy Johnson
91c6f0f3db
Merge pull request #2359 from mildred/ipld
...
Simplify merkledag package interface to ease IPLD inclusion
2016-03-04 12:02:37 -08:00
Jeromy
767ee13ea2
add default option value support to commands lib
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-03-04 10:58:27 -08:00
Mildred Ki'Lya
b3c9922c7b
merkledag: Remove unused AddRecursive and RemoveRecursive
...
License: MIT
Signed-off-by: Mildred Ki'Lya <mildred-pub.git@mildred.fr>
2016-03-04 07:48:34 +01:00
Lars Gierth
89b233e360
dns: update dns command docs
...
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-03-03 17:06:10 +01:00
Stephen Whitmore
1ee3645a49
adds tests for gateway url escaping
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-03-02 16:46:49 -08:00
Adrian Ulrich
ec7623bb81
Use net/url to escape paths in web-ui
...
License: MIT
Signed-off-by: Adrian Ulrich <adrian@blinkenlights.ch>
2016-03-02 15:46:58 -08:00
Richard Littauer
96204b5ef5
Fix spelling error
...
My bad. Introduced in #2366
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-03-02 18:03:24 -05:00
Thomas Gardner
288f7bc621
Humanize byte size
...
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-03-02 08:08:22 +00:00
Thomas Gardner
f988a54c1b
repo stat: add Type
...
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-03-02 08:07:56 +00:00
Thomas Gardner
bb9904bde1
repo: add ipfs repo stat command
...
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-03-02 08:07:56 +00:00
Jeromy Johnson
a551991122
Merge pull request #2424 from ipfs/docs/dns-resolve-default
...
Add default to dns resolve
2016-03-01 22:57:01 -08:00
Jeromy Johnson
d2b9ff4964
Merge pull request #2422 from ipfs/docs/config-add-as
...
Added an `as` to ensure good English
2016-03-01 16:35:31 -08:00
Jeromy Johnson
922dc201a3
Merge pull request #2423 from ipfs/docs/files-read-add-byte
...
Change language for files read slightly
2016-03-01 12:52:58 -08:00
Richard Littauer
8cce0aa1f7
Add default to dns resolve
...
See https://github.com/ipfs/http-api-spec/pull/41#discussion_r53164737
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-03-01 15:17:02 -05:00
Richard Littauer
0d89ae29eb
Change language for files read slightly
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-03-01 14:10:58 -05:00
Richard Littauer
512b25c0cd
Added an as to ensure good English
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-03-01 14:06:36 -05:00
Richard Littauer
7227386b8b
Remove period from dns text examples
...
It is not useful. See https://github.com/ipfs/http-api-spec/pull/41#discussion_r53482505
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-03-01 13:59:09 -05:00
Mildred Ki'Lya
67c59d871e
Rename Decoded into DecodeProtobuf
...
This function work only with protocol buffer encoding. To make this clear,
rename the function.
License: MIT
Signed-off-by: Mildred Ki'Lya <mildred-pub.git@mildred.fr>
2016-03-01 09:01:51 +01:00
Mildred Ki'Lya
5808fe2edd
Remove usage of merkledag.Link.Node pointer outside of merkledag
...
This prepares for inclusion of IPLD where the Node pointer won't be there.
License: MIT
Signed-off-by: Mildred Ki'Lya <mildred-pub.git@mildred.fr>
2016-03-01 08:59:44 +01:00
Jeromy Johnson
cdddf0ff51
Merge pull request #2403 from noffle/ipfs-files-truncate
...
makes 'ipfs files write' usage docs clearer
2016-02-29 16:27:55 -08:00
Stephen Whitmore
0afbd1857f
Prevents 'ipfs name publish' when /ipns is mounted.
...
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-02-29 16:05:48 -08:00
Jeromy Johnson
54ae9daf4b
Merge pull request #2412 from ipfs/docs/config-opts-defaults
...
Added defaults to config opts descriptions
2016-02-29 15:10:43 -08:00
Jeromy Johnson
54426adde8
Merge pull request #2410 from ipfs/docs/resolve-recursive-default
...
Added `default false` to `resolve --recursive` help text
2016-02-29 15:09:37 -08:00
Jeromy Johnson
1d6e0d88aa
Merge pull request #2409 from ipfs/docs/bitswap-unwant-arg
...
Noted ability to specify multiple keys in `bitswap unwant`
2016-02-29 15:09:08 -08:00
Jeromy Johnson
dede20eab4
Merge pull request #2384 from ipfs/feat/dag-refactor
...
refactor merkledag fetching methods
2016-02-29 10:04:34 -08:00
Richard Littauer
34e3ad16de
Added defaults to config opts descriptions
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-26 12:46:50 -05:00
Richard Littauer
2a79e0ddd4
Added default false
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-26 12:25:43 -05:00
Richard Littauer
8adf7a3f67
Noted ability to specify multiple keys in bitswap unwant
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-26 12:09:27 -05:00
Stephen Whitmore
4492b8c6ba
Makes 'ipfs files write' usage docs clearer.
...
A couple of notes on --truncate and --offset.
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-02-24 13:32:26 -08:00
Jeromy
cba00b900b
fixes from review
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-24 10:06:07 -08:00
Jeromy Johnson
7471795793
Merge pull request #2391 from ipfs/files-ls-defaults-to-pathroot
...
files: make 'files ls' defaults to /
2016-02-23 10:18:50 -08:00
Christian Couder
73e76dca56
files: make 'files ls' defaults to /
...
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-22 19:15:49 +01:00
Jeromy
479761ec6a
change batch fetching methods of dagserv
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-20 10:27:07 -08:00
Jeromy
e664fc3a2d
add command to change keep time for reqlog objects
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-19 22:05:05 -08:00
Jeromy Johnson
2600a0290a
Merge pull request #2333 from palkeo/master
...
Add option to display headers for « ipfs object links ».
2016-02-19 22:04:05 -08:00
Jeromy Johnson
45fb4de23a
Merge pull request #2377 from ipfs/docs/files-copy-edit
...
Copy edited files command file
2016-02-19 18:59:40 -08:00
Jeromy Johnson
8e4cfed05a
Merge pull request #2372 from ipfs/docs/fix-tagline
...
Updated tagline for queryDhtCmd
2016-02-19 08:42:44 -08:00
Richard Littauer
10b7bfa0c0
Capitalize All
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-19 11:37:33 -05:00
Jeromy Johnson
41a6859262
Merge pull request #2366 from ipfs/docs/edit-ls-desc
...
Edit the ls.go description
2016-02-19 08:34:31 -08:00
Richard Littauer
08a7c45350
Change target to destination to match files cp
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-19 11:19:34 -05:00
Richard Littauer
62cd07813b
Copy edited files command file
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-19 10:09:23 -05:00
Richard Littauer
3da441932e
Updated tagline for queryDhtCmd
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-18 20:59:26 -05:00
Richard Littauer
63fbc7b62b
Added other entries
...
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-02-18 20:41:08 -05:00