1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 11:31:54 +08:00

5508 Commits

Author SHA1 Message Date
81b9607c49 Merge pull request #2201 from noffle/unpin-2155
Resolve paths in 'pin rm' /wo network lookup
2016-01-25 17:17:47 -08:00
7b716986f6 Append newlines to ipfs id and ipfs dns output.
This fixes #1083, #2000.

N.B. The JSON package developers see no trailing newline as a feature;
it allows marshalled JSON to be embedded inside more JSON.[0]

--
[0] https://golang.org/pkg/encoding/json/

License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-01-26 02:14:30 +10:00
9745704f5f Slightly optimizes core.ResolveToKey().
This is done by skipping the step of resolving the final segment in the
path to a DAG node; instead preferring to look at the second-to-last
segmenet's links.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-01-24 23:31:05 -08:00
cf0a85b7a4 Implements Path.PopLastSegment().
This allows a path (/ipfs/foo/bar) to be separated between its head
(/ipfs/foo) and its tail (bar).

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-01-24 23:29:41 -08:00
38647fad92 Added small note about shutdown
See https://github.com/ipfs/go-ipfs/pull/2180#issuecomment-171889567

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-01-24 22:41:52 +00:00
28fe2e4f4c Capitalized beginning of line messages, added periods
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-01-24 22:39:34 +00:00
a5c4c5d17c Merge pull request #2232 from lidel/cors-preflight-fix
Gateway: add support for HTTP OPTIONS request type
2016-01-23 19:56:24 -08:00
9e0bfa0628 Merge pull request #2236 from tomgg/trivial
trivial: fix `ipfs update` error message
2016-01-23 18:23:01 -08:00
fd691c0a84 Merge pull request #2207 from ipfs/feature/squash-note
Added squash note to contribute.md
2016-01-23 18:22:12 -08:00
1b97a0fbc5 Added squash note to contribute.md
Because this requirement is not listed anywhere, but was mentioned in https://github.com/ipfs/go-ipfs/pull/2202#issuecomment-171876804.

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-01-23 09:42:56 +01:00
dfeaaebf87 trivial: fix ipfs update error message
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-01-23 17:17:31 +10:00
rht
6cfc00e18b Merge pull request #2231 from rht/docs/punc-caps
Fix punc-caps issues of cli Tagline
2016-01-23 12:52:08 +07:00
rht
f5b8c7c4ef Merge pull request #2180 from ipfs/feature/shutdown
Edited following @chriscool feedback
2016-01-23 12:10:59 +07:00
rht
fce3840a4e Merge pull request #2228 from ipfs/docs/bitswap
Fixed up docs for bitswap
2016-01-23 11:22:20 +07:00
rht
bc94293b5f Merge pull request #2223 from ipfs/feature/doc-add
Generic doc fixes to `ipfs add`
2016-01-23 11:16:37 +07:00
15d717c165 CORS header tests for Gateway
- Implements
  https://github.com/ipfs/go-ipfs/pull/2232#issuecomment-173742385
- Separate test suite:
    - we don't want to pollute other gateway tests with CORS headers
    - (as of now) changing headers requires daemon restart anyway

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
2016-01-22 23:41:33 +01:00
a2b0287a5f Merge pull request #2141 from Kubuxu/patch-1
Add Server field in HTTP API response header
2016-01-21 23:31:25 -08:00
ffe6c8576e Merge pull request #2021 from ipfs/fix/corsconfig
Fix SetAllowedOrigins
2016-01-21 23:03:23 -08:00
rht
07c7a4cd76 Capitalize the remaining tagline with /Tagline:.\*"[[:lower:]]/
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2016-01-22 11:11:37 +07:00
8651143344 Gateway: add support for HTTP OPTIONS request type
OPTIONS is a noop request that is used by the browsers
to check if server will accept cross-site XMLHttpRequest
(indicated by the presence of CORS headers)

Before this fix user could enable CORS headers in the Gateway config,
but XHR failed due to the lack of support for OPTIONS request type
(as described in https://git.io/vzgGe)

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
2016-01-21 23:22:54 +01:00
9c1375f668 Merge pull request #2208 from ipfs/add-arguments-to-pin-ls
Add arguments to 'ipfs pin ls'
2016-01-21 12:39:27 -08:00
rht
21e39240ab Fix punc-caps issues of cli Tagline
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2016-01-22 02:36:17 +07:00
a998dbf285 Fixed up docs for bitswap
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-01-21 17:53:14 +01:00
8a2bdc86fb wip
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-01-21 16:38:16 +01:00
rht
f0801589b4 Add SetAllowedOrigins race test case
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2016-01-21 20:03:17 +07:00
7a7a21bbd4 Add final periods, capitalize Chunker
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-01-21 12:57:16 +01:00
719c3693e2 Remove unnecessary sentence
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-01-21 12:46:59 +01:00
2df514c4f2 Change object to file
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-01-21 12:45:47 +01:00
rht
b9706815b3 Fix SetAllowedOrigins
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
2016-01-21 10:55:38 +07:00
29830da6a5 core/commands/pin: change the default for --type to 'all'
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-20 21:33:09 +01:00
981b389a04 Add Server field in HTTP API
Resolves #625
Included in tests.

License: MIT
Signed-off-by: Jakub (Kubuxu) Sztandera <kubuxu@gmail.com>
2016-01-20 18:30:39 +01:00
2dd4f40c10 test/bin: remove ipfs-pin-stat
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-18 21:37:44 +01:00
893ab6dc83 t0081: use 'ipfs pin ls <arg>' in test_pin_flagi()
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-18 21:37:44 +01:00
f5f923a7a8 core/commands/pin: update 'ipfs pin ls' documentation
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-18 21:37:44 +01:00
d87ece14ce core/commands/pin: refactor listing all pins
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-18 21:37:44 +01:00
4244f71dcd core/commands/pin: make 'ipfs pin ls' accept path args
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-18 21:37:44 +01:00
c89e3c22eb core/commands/pin: refactor 'pin ls'
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-18 21:37:44 +01:00
b770c881a7 pin/pin: replace isPinned() with isPinnedWithType()
It is more generic to be able to pass a pin type argument.

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-01-18 21:37:44 +01:00
89a6f01be0 Merge pull request #2213 from Luzifer/direct_build
Build ipfs cmd inside docker container
2016-01-17 15:42:16 -05:00
fd5ddcb71b Build ipfs cmd inside docker container
License: MIT
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2016-01-17 21:27:17 +01:00
aeaae90128 Merge pull request #2210 from ipfs/fix/bootstrapping
fix bootstrapping bug and add real test for bootstrapping
2016-01-17 05:47:29 +01:00
39d0b33507 address CR feedback
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-16 17:51:08 -08:00
75a63b74d8 Merge pull request #2209 from ipfs/feat/stat-type
make files stat print out node type
2016-01-16 19:38:50 -05:00
52da1e3293 fix bootstrapping bug and add real test for bootstrapping
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-16 16:05:46 -08:00
f485fa4b1e add type to stat printed output
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-16 10:07:05 -08:00
1957094fe4 add type to stat cmd json output
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-16 08:04:17 -08:00
32ceaa61e8 Resolves paths in 'pin rm' without network lookup.
Fixes ipfs/go-ipfs#2155 by turning the hash path arguments into keys
and unpinning directly, rather than running a full core.Resolve on
them. This lets users fail fast when they try to remove pins that
they don't have locally.

Note that this will only work when the path is of the form <hash> or
/ipfs/<hash>. Given e.g. /ipfs/<hash>/foo, foo's key cannot be known
without first resolving <hash>, which may involve talking to the
network.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-01-16 03:11:36 +01:00
bc49bee623 Implements path.IsJustAKey().
License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-01-16 03:10:28 +01:00
f89a915ca0 Merge pull request #2114 from ipfs/remove-jenkins
ci: remove dead jenkins code
2016-01-15 23:55:20 +01:00
b182e539f0 Merge pull request #2202 from noffle/hidden_files-2145
Lets 'ipfs add' include top-level hidden files
2016-01-15 20:40:52 +01:00