Commit Graph

123 Commits

Author SHA1 Message Date
Kay
f12b372af9
style: gofumpt and godot [skip changelog] (#10081) 2023-08-17 14:02:08 +02:00
Henrique Dias
5156f21162
feat(ipns): records with V2-only signatures (#9932) 2023-06-20 14:24:31 +02:00
Adin Schmahmann
de59ac1b44 feat(client/rpc): switch rpc client to use go-ipld-prime global decoders via go-ipld-legacy instead of go-ipld-format ones 2023-06-08 09:38:31 +02:00
Jorropo
f8f4b83c9c client/rpc: use streaming pin listing
This also fix a leaking goroutine bug on client/rpc.PinAPI.Ls, we would deadlock if context was canceled while writing the keys.
2023-06-05 11:49:13 +02:00
Jorropo
9b63ab6da6 client/rpc: bring up to speed with streaming pins 2023-06-02 16:55:51 +02:00
Jorropo
12f343d837 client/rpc: rename package name to match rpc and edit migration story 2023-05-31 15:40:00 +02:00
Jorropo
86d8e75b7f client/rpc: migrate go-ipfs-http-client 2023-05-30 21:28:07 +02:00
Ross Jones
7d8262307c fix: use https URI when multiaddress specifies tls (#177)
Currently any clients created through `NewApiWithClient` will make a
HTTP request to the api, even if the multiaddress specifies TLS or (the
deprecated multiaddr option) https.

This commit addresses this by having NewApiWithClient iterate the
available protocols for the multiaddress, specifying the URL proto as
https if it finds TLS or HTTPS is specified. The default continues to be
http for those multiaddresses that do not specify these options.

Should resolve #176

This commit was moved from ipfs/go-ipfs-http-client@7e1de1f7cc
2023-05-15 18:18:51 +02:00
Jorropo
8bebfc00b7 chore: migrate from go-libipfs to boxo
This commit was moved from ipfs/go-ipfs-http-client@ae996cbe5a
2023-04-18 15:31:48 +02:00
João Pedro
5c21cf0ce9 docs: adding example of connection and pinning to README (#173)
Co-authored-by: JPexplorer <jpexplorer@pop-os.localdomain>


This commit was moved from ipfs/go-ipfs-http-client@b0de2b028e
2023-03-28 12:38:24 +02:00
Jorropo
75b6f45f76 chore: bumps for Kubo 0.18 and Routing API with stub for Put
This commit was moved from ipfs/go-ipfs-http-client@c076c3cb71
2023-02-10 03:36:15 +01:00
galargh
1193b2978f chore: remove unused linter directives
This commit was moved from ipfs/go-ipfs-http-client@c4fc1a7740
2022-10-01 17:37:23 +02:00
web3-bot
0fff1d5d8e stop using the deprecated io/ioutil package
This commit was moved from ipfs/go-ipfs-http-client@026ba730a1
2022-09-23 07:43:33 +00:00
Marcin Rataj
1cdb9adf89 fix: interop with go-ipfs 0.13 (#160)
This ensures cid-codec introduced in https://github.com/ipfs/go-ipfs/pull/8568
gets correctly passed (+ we maintain backward-compatibility with CIDv0)

This commit was moved from ipfs/go-ipfs-http-client@9c9f43fd9c
2022-06-23 22:39:01 +02:00
Marcin Rataj
fd209019f2 fix: interop with 'block put' from go-ipfs 0.13 (#158)
* chore: interop with go-ipfs 0.13

Applies necessary changes to ensure 'block/put' works
and is backward-compatible.

Context:
https://github.com/ipfs/go-ipfs/pull/8568

* chore: 0.3.1

bumping as patch because we bumped to 0.3.0 recently, 
as part of other (unreleased) go-ipfs 0.13 work

This commit was moved from ipfs/go-ipfs-http-client@ecf364c989
2022-04-21 22:18:19 +02:00
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