Documentation ¶
Index ¶
- Variables
- func ArrComp(a, b []byte) errordeprecated
- func GetDAGServ() ipld.DAGServicedeprecated
- func GetEmptyNode(t testing.TB, dserv ipld.DAGService, opts NodeOpts) ipld.Nodedeprecated
- func GetNode(t testing.TB, dserv ipld.DAGService, data []byte, opts NodeOpts) ipld.Nodedeprecated
- func GetRandomNode(t testing.TB, dserv ipld.DAGService, size int64, opts NodeOpts) ([]byte, ipld.Node)deprecated
- func PrintDag(nd *mdag.ProtoNode, ds ipld.DAGService, indent int)deprecated
- func SizeSplitterGen(size int64) chunker.SplitterGendeprecated
- type NodeOptsdeprecated
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Deprecated: use github.com/ipfs/boxo/ipld/unixfs/test.UseProtoBufLeaves UseProtoBufLeaves = NodeOpts{Prefix: mdag.V0CidPrefix()} // Deprecated: use github.com/ipfs/boxo/ipld/unixfs/test.UseRawLeaves UseRawLeaves = NodeOpts{Prefix: mdag.V0CidPrefix(), ForceRawLeaves: true, RawLeavesUsed: true} // Deprecated: use github.com/ipfs/boxo/ipld/unixfs/test.UseCidV1 UseCidV1 = NodeOpts{Prefix: mdag.V1CidPrefix(), RawLeavesUsed: true} // Deprecated: use github.com/ipfs/boxo/ipld/unixfs/test.UseBlake2b256 UseBlake2b256 NodeOpts )
Some shorthands for NodeOpts.
Functions ¶
func GetDAGServ
deprecated
func GetDAGServ() ipld.DAGService
GetDAGServ returns a mock DAGService.
Deprecated: use github.com/ipfs/boxo/ipld/unixfs/test.GetDAGServ
func GetEmptyNode
deprecated
func GetRandomNode
deprecated
func SizeSplitterGen
deprecated
func SizeSplitterGen(size int64) chunker.SplitterGen
SizeSplitterGen creates a generator.
Deprecated: use github.com/ipfs/boxo/ipld/unixfs/test.SizeSplitterGen
Types ¶
type NodeOpts
deprecated
type NodeOpts struct { Prefix cid.Prefix // ForceRawLeaves if true will force the use of raw leaves ForceRawLeaves bool // RawLeavesUsed is true if raw leaves or either implicitly or explicitly enabled RawLeavesUsed bool }
NodeOpts is used by GetNode, GetEmptyNode and GetRandomNode
Deprecated: use github.com/ipfs/boxo/ipld/unixfs/test.NodeOpts
Click to show internal directories.
Click to hide internal directories.