Commit Graph

3289 Commits

Author SHA1 Message Date
Marten Seemann
53782d439c update to new private network interfaces 2020-03-09 19:39:06 -07:00
Steven Allen
1ae69862bc
Merge pull request #6602 from ipfs/feat/coreapi-mount
mount: switch over to the CoreAPI
2020-03-06 22:30:12 -08:00
Steven Allen
fef5e8d780 doc(commands): document that dht put takes a file
Turns out that our CLI help text doesn't indicate whether or not a command takes
a file.
2020-03-06 13:49:57 -08:00
Steven Allen
8643d949f3 cmds/tar: use the coreapi 2020-03-02 09:22:58 -08:00
Alan Shaw
0ddc2751a4
docs: fix typo
Co-Authored-By: Johnny <9611008+johnnymatthews@users.noreply.github.com>
2020-03-02 15:57:04 +00:00
Alan Shaw
885e1125b8
docs: fix example for files.write
* Adds the `--parents` optiont to the first command so that it is runnable
* Updates the description to specifies the option to use if you _do_ want nonexistant intermediate directories created
2020-03-02 10:36:13 +00:00
Steven Allen
46d26af0b6 feat(graphsync): mount the graphsync libp2p protocol
This won't fetch files from graphsync but will serve them.

fixes #6830
2020-02-26 09:11:15 -08:00
Steven Allen
bddd8287d4 doc(add): document hash stability
fixes #4318
2020-02-11 09:29:30 -08:00
Steven Allen
effbc0a542
docs(commands): fix mfs wording 2020-02-07 07:27:27 -08:00
Hector Sanjuan
38ca2fbde2 core/commands/files: MFS docs, minor improvements after user feedback 2020-02-07 15:35:33 +01:00
Hector Sanjuan
e05ddfab23
/mfs/path -> /some/path
Co-Authored-By: Moritz <13287984+mohe2015@users.noreply.github.com>
2020-02-07 15:19:37 +01:00
Hector Sanjuan
10194de133 core/commands/files: log.Error -> flog.Error
This seems like a tiny leftover.
2020-02-07 14:55:16 +01:00
Hector Sanjuan
da584b8679 Fix #6878: Improve MFS Cli documentation 2020-02-07 14:55:01 +01:00
Steven Allen
26c5e38571 fix: use the correct protocol name for ipfs swarm addrs local --id 2020-02-05 07:46:37 -08:00
Steven Allen
3b5a6bda59 fix: fix id addr format
Instead of manually creating multiaddr strings, use the multiaddr logic to
format them. We were still using `/ipfs` multiaddrs instead of `/p2p` multiaddrs.
2020-02-05 07:39:08 -08:00
@RubenKelevra
4bdd03d2f3
Help text update for 'ipfs key gen'
Add info about the default key type
2020-02-04 13:58:05 +01:00
Steven Allen
33861b0d40 fix: make rsa the default key type
It's already the default when initializing the node, we might as well make it
the default when creating new keys.

fixes #6861
2020-02-03 18:10:21 -08:00
Steven Allen
906f45edd9 fix(tracing): remove event tracing
We've deprecated this system and have yet to move to a new system. We might as
well remove everything, switch to a new system, then deliberately trace the
entire system.
2020-01-28 21:31:12 -08:00
Steven Allen
a53d48059b fix: migrate from deprecated warning function 2020-01-28 21:20:21 -08:00
Steven Allen
98d2fef6ec fix: use pre-defined relays for autorelay
Unfortunately, we don't currently have any way to pick out good relays from bad.
That means we keep searching, trying bad relays, searching some more, trying
_the same relays_, etc. until we randomly find 3 good stable relays. In
practice, this means we just keep searching forever and keep thrashing the DHT.

see https://github.com/libp2p/go-libp2p/issues/694
2020-01-17 06:28:23 -08:00
Steven Allen
725e6844ee gateway: cleanup logic
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2020-01-10 10:19:13 +01:00
Steven Allen
5eea0a4ba0 http: use Method* constants
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2020-01-10 10:19:08 +01:00
Steven Allen
e58a32ab1e feat(commands/cid): add a flag for setting the codec
This will be useful when testing `refs local, `repo gc`, and `repo verify`
commands once we store blocks by multihash instead of by CID. At that point,
these commands will return raw v1 CIDs as the blockstore won't actually remember
the codec used to store the block.

Flags choice:

* Ideally, we'd use the `-f, --format` flags like every other command but we're
  already using `-f` (format) for the format string.
* Alternatively, I'd like to use `-c`. However, we're using _that_ for a global
  `--config` flag (bit of a waste given that it doesn't work...).

`--codec` will have to do for now.
2020-01-07 19:32:16 -06:00
Steven Allen
f8adc3ebdd fix(commands/cid): always use base58 for CIDv0 unless otherwise specified 2020-01-07 19:20:21 -06:00
Steven Allen
c64eb11992 test(gateway): test the lazy seeker 2020-01-05 16:43:45 -08:00
Steven Allen
6cb03d4dfd fix(gateway): fix seek read length typo 2020-01-05 16:43:45 -08:00
Steven Allen
453b78962b chore(gateway): remove dead code 2020-01-05 16:43:45 -08:00
Steven Allen
1a06fb6e2f fix(gateway): correct symlink content type
We should be _resolving_ symlinks (sometimes, still need to figure out when to
do this WRT IPNS). However, that's a larger feature.
2020-01-05 16:43:44 -08:00
Steven Allen
3859f08bf7 fix(gateway): better seeking/sized
1. Require files to have known sizes. We can add support for unknown sizes
_later_ but we can't use ServeContent for those files.
2. Replace the `sizeReadSeeker` with a `lazySeeker`. This one makes no
assumptions about how it's used so we're less likely to run into weird bugs.
2020-01-05 16:43:44 -08:00
Steven Allen
e8a6c0c050 fix(gateway): gracefully handle files with unknown sizes in directory listings 2020-01-05 16:43:44 -08:00
Steven Allen
62451039ec fix(gateway): serve the index with serveFile 2020-01-05 16:43:44 -08:00
flowed
07cbba7c40 Fix Typos 2019-12-25 03:12:41 +00:00
Steven Allen
3c95f65b21
Merge pull request #6785 from ipfs/feat/async-ds
Support Asynchronous Datastores
2019-12-19 11:45:00 +01:00
Adin Schmahmann
3a0d0e817a support async datastores 2019-12-19 00:59:31 -05:00
Marcin Rataj
115b2ba6cd
fix: limit SW registration to content root
Introduces hardening proposed in:
https://github.com/ipfs/go-ipfs/issues/4025#issuecomment-342250616

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
2019-12-17 02:20:40 +01:00
Steven Allen
8f3b274080 fix: move away from deprecated peer ID functions 2019-12-14 19:48:31 +01:00
Steven Allen
15c35a5a95 doc: update documentation for /ipfs -> /p2p multiaddr switch
See: https://github.com/libp2p/libp2p/issues/79
2019-12-14 19:39:59 +01:00
Steven Allen
1b7f3a8d51
Merge pull request #6758 from ipfs/feat/ipns-persistent-pubsub
IPNS over PubSub as an Independent Transport
2019-12-13 14:55:56 +01:00
Roman Proskuryakov
7fdcbce1f1 Change Reporter to BandwidthCounter in IpfsNode 2019-12-12 12:42:25 +03:00
Adin Schmahmann
36494e493a ipns(pubsub): utilize persistent pubsub value store 2019-12-11 11:52:05 -05:00
Steven Allen
8c5c933559 chore: ignore pubsub deprecation warnings 2019-12-05 13:26:46 -05:00
Henrique Dias
5ab7a70131
feat: web ui 2.7.2 2019-12-04 08:15:58 +00:00
Michael Muré
c3692a5913 extract the pinner to go-ipfs-pinner and dagutils into go-merkledag 2019-12-02 15:45:44 -05:00
Steven Allen
c19bc362f5
Merge pull request #6743 from dreamski21/fix/gateway/content-type-header
fix #2203: omit the charset attribute when Content-Type is text/html
2019-12-02 14:13:57 -05:00
Adin Schmahmann
0906d7f3b1 fix (pinning): pin ls traverses all indirect pins. pin ls pin type precedence change - a direct/recursive pin is now labeled as such even if also indirectly pinned. 2019-12-02 13:53:14 -05:00
Oli Evans
7fcf40eeee
fix: use if over switch
License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
2019-11-25 14:51:30 +00:00
Oli Evans
25694d0238
fix: ignore nonexistant when force rm
- Make `ipfs files rm --force /nonexistant` succeed when the path does not exist.
- Add shaness test for removing nonexistant paths
- Refactor duplicated code to find a parent dir into a function

I've been writing scripts against the files api, and having to stat things before removing them is a pain. So this PR aims to make --force do what I'd expect it to.

License: MIT
Signed-off-by: Oli Evans <oli@tableflip.io>
2019-11-25 11:38:29 +00:00
Steven Allen
b8ec598d58
Merge pull request #6750 from ipfs/fix/6749
improve documentation and fix dht put bug
2019-11-19 09:14:41 -06:00
Steven Allen
7c01c2cff9
Merge pull request #6769 from Jorropo/feat/repo-stat-H
Adding alias for `ipfs repo stat`.
2019-11-18 14:18:00 -06:00
Michael Muré
097b684b42
pin: add context and error return to most of the Pinner functions 2019-11-18 18:32:48 +01:00