Commit Graph

108 Commits

Author SHA1 Message Date
Jorropo
60a548b621 correctness: only match CIDs matching go-cid.Cid.String output
This commit was moved from ipfs/go-ipfs-http-client@34cc489461
2022-04-05 20:14:40 +02:00
Jorropo
f2f2109bc1 test: add a false case test to blockstore parsing
This commit was moved from ipfs/go-ipfs-http-client@75f597aa16
2022-04-05 20:14:40 +02:00
Jorropo
54f6e90870 fix: change CID breaking logic when parsing ipld.ErrNotFound
This commit was moved from ipfs/go-ipfs-http-client@a3b49352bf
2022-04-05 20:14:40 +02:00
Jorropo
775bcb7f09 feat: add blockstore: block not found matching too
This commit was moved from ipfs/go-ipfs-http-client@a3354f062c
2022-04-05 20:14:40 +02:00
Jorropo
ddd36645b2 feat: update the error parsing for go-ipld-format to v0.4.0
This commit was moved from ipfs/go-ipfs-http-client@296534fd16
2022-04-05 20:14:40 +02:00
Jorropo
a2a60768ea fix: parseIPLDErrNotFound test
This commit was moved from ipfs/go-ipfs-http-client@2e09c4b3ab
2022-04-01 00:32:30 +02:00
Jorropo
5a8e2b77c0 chore: rename abyfyIpldErrNotFound to parseIPLDErrNotFound
This commit was moved from ipfs/go-ipfs-http-client@7aa0029929
2022-04-01 00:32:30 +02:00
Jorropo
b85aa9639f fix: make Block().* return correct ABI based ipld.ErrNotFound errors
This commit was moved from ipfs/go-ipfs-http-client@4f5f8e9b14
2022-03-27 14:51:03 +02:00
galargh
b52c80ca4d skip TestHttpApi on Windows
This commit was moved from ipfs/go-ipfs-http-client@a41c7956c0
2022-01-14 16:16:26 +01:00
Marcin Rataj
5322cf89e4 feat: pubsub http rpc with multibase (#151)
* feat: pubsub http rpc with multibase

This updates HTTP RPC wire format to one from
https://github.com/ipfs/go-ipfs/pull/8183

* chore: use updated go-ipfs
* chore: switch ci to go-ipfs master

This commit was moved from ipfs/go-ipfs-http-client@c832fc0ce1
2021-11-29 22:24:27 +01:00
Marten Seemann
ea2a35686d fix staticcheck
This commit was moved from ipfs/go-ipfs-http-client@4461a0bb95
2021-05-15 18:21:24 -07:00
Petar Maymounkov
247cb05fbc Bump interface-go-ipfs-core version (#117)
* fix issues #26
Implement an IsPinned function
* fix issues #113
Implement interface v0.3.0
* ci: update to use go-ipfs v0.6.0
* ci: bump go version

Co-authored-by: godcong <jumbycc@163.com>
Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>

This commit was moved from ipfs/go-ipfs-http-client@4e8a6c8b98
2020-07-31 13:20:59 -04:00
Bryan Stenson
7ebef96ba1 update contributing link
This commit was moved from ipfs/go-ipfs-http-client@ef2a556e19
2020-05-12 20:09:16 +00:00
Will Scott
d9004a9061 IDB58Decode -> Decode
Allow Non-RSA keys to be decoded by the HTTP client


This commit was moved from ipfs/go-ipfs-http-client@b0549d8623
2020-05-03 12:04:04 -07:00
Joel Gustafson
8f9306304e Update pin.go
This commit was moved from ipfs/go-ipfs-http-client@31b4e60d96
2019-12-07 01:08:48 -05:00
Steven Allen
d48f8fce64 file: implement ReadAt
This commit was moved from ipfs/go-ipfs-http-client@88a9b61520
2019-09-10 19:04:10 -07:00
Steven Allen
b6b2ae355b doc: mark this package experimental instead of WIP (#30)
We're at a point where this package works pretty well and users should consider
using it.

This commit was moved from ipfs/go-ipfs-http-client@3e8506bbec
2019-08-30 18:44:24 -07:00
godcong
be8f80237d fix path miss in windows/add a new api create function (#23)
* fix path was not always correct in windows

* add new api create function for if the port was different with api file.

* Update api.go

remove no need commit


This commit was moved from ipfs/go-ipfs-http-client@8c87debb12
2019-08-12 16:16:47 -07:00
godcong
9345cfa7b8 update to consolidated libp2p interface package (#21)
and fix parsing of connection latencies

This commit was moved from ipfs/go-ipfs-http-client@fd5cce4cbc
2019-07-20 21:33:35 -07:00
Steven Allen
2612353d85 use error from go-ipfs-cmds
note: this drops the Command field


This commit was moved from ipfs/go-ipfs-http-client@523a26f0a8
2019-06-13 12:07:49 -07:00
Steven Allen
1b81f2ef10 add extended error handling
fixes #19


This commit was moved from ipfs/go-ipfs-http-client@8e3552ac1e
2019-06-11 17:41:49 -07:00
Łukasz Magiera
8d953a7359 Use interface for RequestBuilder
This commit was moved from ipfs/go-ipfs-http-client@0534b7ca83
2019-05-10 15:38:20 +02:00
Alex
8b9e189169 remove unused transport.go file
This commit was moved from ipfs/go-ipfs-http-client@320130421f
2019-05-01 19:14:15 -07:00
Alex
daf1b72809 api: fix failing test
This commit was moved from ipfs/go-ipfs-http-client@ea507216d8
2019-05-01 17:19:35 -07:00
Alex
fd5010bd2a api: cleanup header and NewURLApiWithClient test
This commit was moved from ipfs/go-ipfs-http-client@b8b55cb89a
2019-05-01 16:13:47 -07:00
Alex
efe3b6054e api: call NewURLApiWithClient from NewApiWithClient
This commit was moved from ipfs/go-ipfs-http-client@aea6890f36
2019-05-01 16:00:48 -07:00
postables
37ea6eb164 Merge branch 'master' into client/auth
This commit was moved from ipfs/go-ipfs-http-client@e98ef9ffe1
2019-05-01 14:43:17 -07:00
Alex
89600e62ce api: add wip api test
This commit was moved from ipfs/go-ipfs-http-client@2b48dd36ad
2019-05-01 13:41:37 -07:00
Alex
d8c286bb15 api: remove WithAuthorization, DirectAPI client, instantiate header map
This commit was moved from ipfs/go-ipfs-http-client@9c7d495b03
2019-05-01 13:41:15 -07:00
Alex
11a990c7b1 api: expose headers via HttpApi, copy headers during request build
This commit was moved from ipfs/go-ipfs-http-client@033befdef3
2019-05-01 13:13:59 -07:00
Steven Allen
ea34bcbd0e Merge pull request ipfs/go-ipfs-http-client#16 from ipfs/feat/update-paths
Update interface - path changes

This commit was moved from ipfs/go-ipfs-http-client@6062f4dc5c
2019-04-27 13:09:55 -07:00
Steven Allen
0fc826dbb7 Merge pull request ipfs/go-ipfs-http-client#14 from ipfs/feat/add-context
feed through context

This commit was moved from ipfs/go-ipfs-http-client@0b1bf38e05
2019-04-27 12:54:29 -07:00
Łukasz Magiera
3b67615201 gomod: update iface with path refactor
This commit was moved from ipfs/go-ipfs-http-client@0bd65a67ee
2019-04-26 20:30:55 +02:00
Alex
3b02ea4646 api: add authenticated transport, and direct connection
This commit was moved from ipfs/go-ipfs-http-client@d04afa02b0
2019-04-09 19:53:07 -07:00
Steven Allen
70158edd59 feed through context
see https://github.com/ipfs/go-ipfs-api/pull/173

all credit to @optman


This commit was moved from ipfs/go-ipfs-http-client@7b75a8c577
2019-04-04 00:37:23 -07:00
Edgar Lee
1c07bed904 Export (*HttpApi).request to enable building custom requests
This commit was moved from ipfs/go-ipfs-http-client@8c9ed7dbc2
2019-04-01 17:13:39 -07:00
Steven Allen
c791d73355 avoid canceling multiple times
This commit was moved from ipfs/go-ipfs-http-client@fe16408225
2019-03-29 13:38:28 +00:00
Steven Allen
40f40b5a65 fix golang-ci lint nits
This commit was moved from ipfs/go-ipfs-http-client@ccf20b0ef5
2019-03-29 13:38:28 +00:00
Steven Allen
c6f704b453 return an error when the API file isn't found
fixes #7


This commit was moved from ipfs/go-ipfs-http-client@897d1b1bcd
2019-03-29 13:38:28 +00:00
Steven Allen
e76ecd3038 nit: return concrete types
This is generally considered the "better" way to do things in go. It also allows
us to expose functions like `request` at some point without changing the API
interface itself.


This commit was moved from ipfs/go-ipfs-http-client@524e5d82e6
2019-03-29 13:38:28 +00:00
Steven Allen
0e800c3d84 update interface-go-ipfs-core and handle breaking changes
* No more Hidden, StdinName, and Wrap options.
* LsLink -> DirEntry with file types that don't expose internals.


This commit was moved from ipfs/go-ipfs-http-client@5a7161eeab
2019-03-29 13:08:14 +00:00
Łukasz Magiera
4b30924309 Merge pull request ipfs/go-ipfs-http-client#1 from ipfs/feat/implement
Initial implementation

This commit was moved from ipfs/go-ipfs-http-client@449b614d69
2019-02-23 03:45:29 +01:00
Łukasz Magiera
47b820150b test: don't panic on errors in async node construction
This commit was moved from ipfs/go-ipfs-http-client@95ce0f3949
2019-02-21 14:50:10 +01:00
Łukasz Magiera
cc9968d5dd request: fix Content-Disposition header in Send
This commit was moved from ipfs/go-ipfs-http-client@b7db17c63b
2019-02-21 14:39:12 +01:00
Łukasz Magiera
19d91fbb25 response: pass close error in decode
This commit was moved from ipfs/go-ipfs-http-client@4a87232eca
2019-02-20 22:08:02 +01:00
Łukasz Magiera
ad844e3d0b response: simplify Decode
This commit was moved from ipfs/go-ipfs-http-client@adbfda4c1c
2019-02-20 16:52:41 +01:00
Łukasz Magiera
f6a3a4fb2d gofmt
This commit was moved from ipfs/go-ipfs-http-client@65cd935e13
2019-02-19 23:28:39 +01:00
Łukasz Magiera
aa4d6e16f1 Add some docs to constructors
This commit was moved from ipfs/go-ipfs-http-client@e34cd600e6
2019-02-19 23:26:34 +01:00
Łukasz Magiera
f34788e6ee cleanup Swarm.Peers
This commit was moved from ipfs/go-ipfs-http-client@fd7858dc57
2019-02-19 23:11:08 +01:00
Łukasz Magiera
db1af499c9 use mime.ParseMediaType for Content-Type response parsing
This commit was moved from ipfs/go-ipfs-http-client@217d194523
2019-02-19 22:33:57 +01:00