Marten Seemann
fb0a7edf12
fix staticcheck
...
This commit was moved from ipfs/interface-go-ipfs-core@08bd316e61
This commit was moved from ipfs/boxo@5df09f8425
2021-06-02 09:11:14 -07:00
Petar Maymounkov
2517d0b9d4
add id and key formatting utils; format keys as b36cid by default; update tests
...
This commit was moved from ipfs/interface-go-ipfs-core@c604c5b033
This commit was moved from ipfs/boxo@7bcd643738
2020-07-29 13:58:18 -04:00
Steven Allen
1babbda938
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#50 from MichaelMure/pinispinned
...
add Pin.IsPinned(..)
This commit was moved from ipfs/interface-go-ipfs-core@ee0d435cd1
This commit was moved from ipfs/boxo@150e1b6bea
2020-05-04 17:28:17 -07:00
Will Scott
3a48c52719
extra time for dht spin-up
...
This commit was moved from ipfs/interface-go-ipfs-core@9160e64532
This commit was moved from ipfs/boxo@0ed0b6f39d
2020-04-21 08:40:13 -07:00
Michael Muré
7f07bf0996
pin: better doc, small cleaning
...
This commit was moved from ipfs/interface-go-ipfs-core@478caf05ab
This commit was moved from ipfs/boxo@bffa011f0a
2020-03-30 16:20:15 +02:00
Michael Muré
b52034068c
pin: add a IsPinned method
...
This commit was moved from ipfs/interface-go-ipfs-core@c82db2ef22
This commit was moved from ipfs/boxo@e84cc05698
2020-03-02 11:40:26 +01:00
Steven Allen
cdd7cc4776
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#49 from MichaelMure/pinls
...
feat: make the CoreAPI expose a streaming pin interface
This commit was moved from ipfs/interface-go-ipfs-core@292d906e7e
This commit was moved from ipfs/boxo@a06d5541a4
2020-02-28 14:01:18 -08:00
Michael Muré
80a898dd55
test: fail early on err to avoid an unrelated panic
...
This commit was moved from ipfs/interface-go-ipfs-core@df21c57e0f
This commit was moved from ipfs/boxo@7a2fc1b816
2020-01-22 17:11:19 +01:00
Steven Allen
e5059d9e1d
fix(tests): put valid blocks
...
This commit was moved from ipfs/interface-go-ipfs-core@16127b2917
This commit was moved from ipfs/boxo@b1c5044d15
2019-12-02 15:04:28 -05:00
Michael Muré
8eff544241
fix some tests
...
This commit was moved from ipfs/interface-go-ipfs-core@48dcedecd4
This commit was moved from ipfs/boxo@689e92b560
2019-11-29 22:29:47 +01:00
Michael Muré
e3b5686710
feat: make the CoreAPI expose a streaming pin interface
...
This commit was moved from ipfs/interface-go-ipfs-core@f976af7ba6
This commit was moved from ipfs/boxo@6eb5c9791b
2019-11-29 22:29:42 +01:00
Adin Schmahmann
c23fa6e2f1
test(pinning): add pin ls tests for indirect pin traversal and pin type precedence
...
This commit was moved from ipfs/interface-go-ipfs-core@cd7be61c71
This commit was moved from ipfs/boxo@30eb9c7c43
2019-10-11 11:14:39 -04:00
Steven Allen
58df273d66
fix(test): fix a flaky pubsub test
...
This commit was moved from ipfs/interface-go-ipfs-core@00de46e290
This commit was moved from ipfs/boxo@125f06e6af
2019-09-27 16:21:44 -07:00
Steven Allen
5168b591dc
test: test ReadAt if implemented
...
(I plan on adding support to the http client, at least)
This commit was moved from ipfs/interface-go-ipfs-core@ae83868617
This commit was moved from ipfs/boxo@a8c5ec6062
2019-09-10 18:53:39 -07:00
Steven Allen
09a4311db7
test: fix put with hash test
...
We just changed ID/"id" to IDENTITY/"identity" to match the multicodec table and
avoid confusion with peer IDs, CIDs, etc.
Unfortunately, this breaks the `--hash=id` flag. Luckily, I'm pretty sure
nobody's actually using this. As putting a block with an identity hash is
useless. If they are users, we can go about adding in backwards compatibility
hacks later.
This commit was moved from ipfs/interface-go-ipfs-core@6ebdbe7ef3
This commit was moved from ipfs/boxo@3b9a723861
2019-08-23 16:22:22 -07:00
Cole Brown
fafbedb658
Bump go-libp2p-core, up test key size to 2048
...
This commit was moved from ipfs/interface-go-ipfs-core@6ba366dd62
This commit was moved from ipfs/boxo@98cec33988
2019-08-02 21:09:17 -04:00
Raúl Kripalani
1f4d8c7243
migrate to go-libp2p-core.
...
This commit was moved from ipfs/interface-go-ipfs-core@2cc0c497f2
This commit was moved from ipfs/boxo@1f2b5ca04f
2019-05-28 17:09:34 +01:00
Łukasz Magiera
79958dc097
tests: expose TestSuite
...
This commit was moved from ipfs/interface-go-ipfs-core@6fe8577a83
This commit was moved from ipfs/boxo@3d72707f57
2019-05-17 18:57:15 +02:00
Steven Allen
ce49669839
switch to base32 cidv1 by default
...
This commit was moved from ipfs/interface-go-ipfs-core@6287246646
This commit was moved from ipfs/boxo@763b3d8a00
2019-05-07 00:57:21 -07:00
Steven Allen
b0a1bca80a
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#22 from ipfs/feat/drop-path-err
...
path: drop error from ParsePath
This commit was moved from ipfs/interface-go-ipfs-core@7786158101
This commit was moved from ipfs/boxo@00b2c9a357
2019-04-17 12:02:06 -07:00
Steven Allen
eb58ebe446
fix: cleanup TestDhtProvide
...
And fix for peer ID formatting changes.
fixes https://github.com/ipfs/go-ipfs/pull/6222#issuecomment-483479039
This commit was moved from ipfs/interface-go-ipfs-core@29b26f5bcb
This commit was moved from ipfs/boxo@d493b70194
2019-04-15 21:58:51 -07:00
Łukasz Magiera
3669a774ff
path: rename ParsePath and ResolvedPath
...
This commit was moved from ipfs/interface-go-ipfs-core@21a72398d9
This commit was moved from ipfs/boxo@fbc9ab8769
2019-04-04 09:00:23 +02:00
Łukasz Magiera
51a937fffd
path: WIP
...
This commit was moved from ipfs/interface-go-ipfs-core@5a83651539
This commit was moved from ipfs/boxo@b8463e7c12
2019-04-04 09:00:23 +02:00
Łukasz Magiera
aca6f61a63
path: fix tests
...
This commit was moved from ipfs/interface-go-ipfs-core@33d445a614
This commit was moved from ipfs/boxo@1497150b1f
2019-04-04 09:00:23 +02:00
Łukasz Magiera
1a2e8ce6d7
path: drop error from ParsePath
...
This commit was moved from ipfs/interface-go-ipfs-core@2b9bff7523
This commit was moved from ipfs/boxo@31071e1f5e
2019-04-04 08:53:42 +02:00
Edgar Lee
686f55459c
Update Pin.RmRecursive docs to clarify shared indirect pins are not removed
...
This commit was moved from ipfs/interface-go-ipfs-core@c908a059fe
This commit was moved from ipfs/boxo@ea26ae5e05
2019-03-29 16:16:16 -07:00
Steven Allen
2817364035
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#25 from ipfs/fix/no-close-addr
...
don't close the top-level addr
This commit was moved from ipfs/interface-go-ipfs-core@9ebc1123b3
This commit was moved from ipfs/boxo@00c2b523df
2019-03-29 12:58:56 +00:00
Steven Allen
96a0e32255
Merge pull request ipfs/boxoipfs/interface-go-ipfs-core#24 from ipfs/test/use-fatal
...
fix a bunch of small test "bugs"
This commit was moved from ipfs/interface-go-ipfs-core@ccf9dacfee
This commit was moved from ipfs/boxo@c9c75b02ce
2019-03-27 10:27:35 +00:00
Steven Allen
6c4219a102
don't close the top-level addr
...
See https://github.com/ipfs/go-ipfs-http-client/pull/10/files#r269268326
This commit was moved from ipfs/interface-go-ipfs-core@1b707f2943
This commit was moved from ipfs/boxo@21ade61b10
2019-03-26 19:01:23 +00:00
Steven Allen
adddfdf0f7
tests: fix unused variable lints
...
This commit was moved from ipfs/interface-go-ipfs-core@5d6a474f31
This commit was moved from ipfs/boxo@bbf450e3e4
2019-03-26 18:38:02 +00:00
Steven Allen
ba5e78a4c5
tests: remove ticker leak
...
This commit was moved from ipfs/interface-go-ipfs-core@a7d4a71998
This commit was moved from ipfs/boxo@b75b1243fb
2019-03-26 18:37:40 +00:00
Steven Allen
1f87fa6168
tests: remove t.Fatal from goroutines
...
This commit was moved from ipfs/interface-go-ipfs-core@5f17f8346b
This commit was moved from ipfs/boxo@ccb4a5c183
2019-03-26 18:36:53 +00:00
Steven Allen
6190be29b9
make unrecoverable test errors fatal
...
Otherwise, we can get random panics form dereferencing nil pointers.
This commit was moved from ipfs/interface-go-ipfs-core@6d166d40d8
This commit was moved from ipfs/boxo@35272d3a3b
2019-03-26 18:27:35 +00:00
Steven Allen
84faa010ce
remove Wrap
...
This can be trivially implemented by the end-user if desired. The best the
CoreAPI can do is name the file with it's own hash so this isn't really all that
helpful either.
Note: This differs from js-ipfs because _there_, all files have paths (even
outside directories).
This commit was moved from ipfs/interface-go-ipfs-core@ac37dde21a
This commit was moved from ipfs/boxo@a0c8ed3956
2019-03-22 15:05:41 -07:00
Łukasz Magiera
905898b667
unixfs add: remove StdinName
...
This commit was moved from ipfs/interface-go-ipfs-core@e12c21afc0
This commit was moved from ipfs/boxo@f3f74adfdb
2019-03-22 01:13:18 +01:00
Łukasz Magiera
726e8c0db1
unixfs: fix ls test for new add
...
This commit was moved from ipfs/interface-go-ipfs-core@91f8aac428
This commit was moved from ipfs/boxo@bd1689b886
2019-03-21 19:17:34 +01:00
Łukasz Magiera
a6fe80000c
unixfs add: Remove hidden file handling
...
This commit was moved from ipfs/interface-go-ipfs-core@56944d64d1
This commit was moved from ipfs/boxo@4274224bd0
2019-03-21 19:17:34 +01:00
Łukasz Magiera
01b61d7634
unixfs add: Changes for fixed wrap logic
...
This commit was moved from ipfs/interface-go-ipfs-core@e87318a2c3
This commit was moved from ipfs/boxo@1ec848f9a2
2019-03-21 19:17:34 +01:00
Steven Allen
5cdd4b3d81
remove target size requirement
...
It's complicated. We need to carefully think through how sizes work.
This commit was moved from ipfs/interface-go-ipfs-core@7a7cf9694b
This commit was moved from ipfs/boxo@f511773674
2019-03-06 16:41:44 -08:00
Steven Allen
30b344a5af
switch symlink target type to string
...
(path can't represent relative paths)
This commit was moved from ipfs/interface-go-ipfs-core@368881fa4a
This commit was moved from ipfs/boxo@e2900773a6
2019-03-05 11:17:59 -08:00
Steven Allen
cc2b187d07
tests: add symlink target test
...
(also, fix some error versus fatal nits)
This commit was moved from ipfs/interface-go-ipfs-core@5c6a751986
This commit was moved from ipfs/boxo@4be6e60dbe
2019-03-05 09:38:35 -08:00
Steven Allen
483caf76fd
file type: add stringer
...
This commit was moved from ipfs/interface-go-ipfs-core@4e99a8e925
This commit was moved from ipfs/boxo@ee697a3b09
2019-03-05 09:38:35 -08:00
Steven Allen
987a46a697
tweak the Ls interface
...
1. Avoid `ipld.Link`. This is a protodag specific thing that will go away in
future IPLD versions.
2. Avoid exposing the underlying file types. The user shouldn't care if they're
dealing with a hamt, etc.
3. Add a field for a symlink's target.
4. Rename LsLink to DirEntry to better this type's role.
This commit was moved from ipfs/interface-go-ipfs-core@dbee8cc1ad
This commit was moved from ipfs/boxo@9c3cf70c5f
2019-03-04 20:21:25 -08:00
Steven Allen
8542b6569a
errors: introduce a 'not supported' error
...
This commit was moved from ipfs/interface-go-ipfs-core@a81e4359ce
This commit was moved from ipfs/boxo@2c70ad1761
2019-02-19 02:44:36 -08:00
Łukasz Magiera
0a6bdbaa6c
pubsub: fix race in test
...
This commit was moved from ipfs/interface-go-ipfs-core@a84bfa1f40
This commit was moved from ipfs/boxo@bc7e36143f
2019-02-12 13:30:07 +01:00
Łukasz Magiera
152a54ad85
gx-go uw
...
This commit was moved from ipfs/interface-go-ipfs-core@93299fcb14
This commit was moved from ipfs/boxo@def3b3d805
2019-02-09 01:23:13 +01:00
Łukasz Magiera
af23d0324b
Update imports
...
This commit was moved from ipfs/interface-go-ipfs-core@515a114be2
This commit was moved from ipfs/boxo@5c537a46d3
2019-02-09 01:15:09 +01:00
Łukasz Magiera
46dbdf4d64
coreapi: fix failing dag test
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
This commit was moved from ipfs/interface-go-ipfs-core@268b4fdbf1
This commit was moved from ipfs/boxo@ea6b30e219
2019-02-08 20:38:44 +01:00
Łukasz Magiera
97c433323b
coreapi: move namesys options to coreapi
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
This commit was moved from ipfs/interface-go-ipfs-core@263199d56e
This commit was moved from ipfs/boxo@a2f6e434b9
2019-02-08 19:27:39 +01:00
Łukasz Magiera
23d84ed3ef
coreapi: cleanup coredag references in interface
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
This commit was moved from ipfs/interface-go-ipfs-core@c3fa814784
This commit was moved from ipfs/boxo@d15daa504f
2019-02-08 17:58:56 +01:00