Documentation
¶
Index ¶
- func NewInvalidSelectorSpec(cidsVisited []cid.Cid) ipld.Node
- func NewMockBlockNode(data []byte) ipld.Node
- func NewMockIPLDBridge() ipldbridge.IPLDBridge
- func NewMockLink() ipld.Link
- func NewMockLoader(blks []blocks.Block) ipldbridge.Loader
- func NewMockSelectorSpec(cidsVisited []cid.Cid) ipld.Node
- func NewMockStore(blocksWritten map[ipld.Link][]byte) (ipldbridge.Loader, ipldbridge.Storer)
- func NewUnencodableSelectorSpec(cidsVisited []cid.Cid) ipld.Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInvalidSelectorSpec ¶
NewInvalidSelectorSpec returns a spec that will fail when you attempt to validate it or decompose to a node + selector.
func NewMockBlockNode ¶
NewMockBlockNode returns a new node for a byte array
func NewMockIPLDBridge ¶
func NewMockIPLDBridge() ipldbridge.IPLDBridge
NewMockIPLDBridge returns an IPLD bridge that works with MockSelectors
func NewMockLink ¶
NewMockLink produces an object that conforms to the ipld Link interface.
func NewMockLoader ¶
func NewMockLoader(blks []blocks.Block) ipldbridge.Loader
NewMockLoader returns a new loader function that loads only the given blocks
func NewMockSelectorSpec ¶
NewMockSelectorSpec returns a new mock selector that will visit the given cids.
func NewMockStore ¶
func NewMockStore(blocksWritten map[ipld.Link][]byte) (ipldbridge.Loader, ipldbridge.Storer)
NewMockStore provides a loader and storer for the given in memory link -> byte data map
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.