mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-22 02:47:48 +08:00
* feat: switch to using go-ipld-prime for codecs, path resolution, and the `dag put/get` commands * fix: `dag put/get` not roundtripping due to an extra new line being added (https://github.com/ipfs/go-ipfs/issues/3503) More detailed information is in the CHANGELOG.md file. Very high level: * IPLD codecs (and their plugins) must use go-ipld-prime * Added support for the dag-json codec * `dag get/put` use IPLD codec names from the multicodec table * `dag get` defaults to dag-json output instead of json, but may output with other codecs * Data model pathing can be achieved using the /ipld prefix. For example, you can use `/ipld/QmFoo/Links/0/Hash` to traverse through a DagPB node * With `dag get/put` the DagPB field names have been changed to match the ones in the protobuf listed in the specification Co-authored-by: hannahhoward <hannah@hannahhoward.net> Co-authored-by: Daniel Martí <mvdan@mvdan.cc> Co-authored-by: acruikshank <acruikshank@example.com> Co-authored-by: Steven Allen <steven@stebalien.com> Co-authored-by: Will Scott <will.scott@protocol.ai> Co-authored-by: Will Scott <will@cypherpunk.email> Co-authored-by: Rod Vagg <rod@vagg.org> Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com> Co-authored-by: Eric Myhre <hash@exultant.us>
14 lines
262 B
Go
14 lines
262 B
Go
package plugin
|
|
|
|
import (
|
|
multicodec "github.com/ipld/go-ipld-prime/multicodec"
|
|
)
|
|
|
|
// PluginIPLD is an interface that can be implemented to add handlers for
|
|
// for different IPLD codecs
|
|
type PluginIPLD interface {
|
|
Plugin
|
|
|
|
Register(multicodec.Registry) error
|
|
}
|