Documentation ¶
Index ¶
- Constants
- func BuildFileNode(ctx context.Context, item Finfo, bufDs ipld.DAGService, cidBuilder cid.Builder) (node ipld.Node, err error)
- func CalculateCid(r io.Reader) (cid.Cid, error)
- func CreateCar(inputPath string, outputPath string) (cid.Cid, error)
- type CarStream
- type CidMapValue
- type FSBuilder
- type Finfo
- type FsNode
Constants ¶
View Source
const UnixfsChunkSize uint64 = 1 << 20
View Source
const UnixfsLinksPerLevel = 1 << 10
Variables ¶
This section is empty.
Functions ¶
func BuildFileNode ¶
func CalculateCid ¶ added in v0.1.19
CalculateCid calculates the CID for the given reader.
Types ¶
type CarStream ¶ added in v0.1.19
CarStream is an interface that combines io.ReadWriter, io.ReaderAt, io.WriterAt, io.Seeker.
type CidMapValue ¶
type FSBuilder ¶
type FSBuilder struct {
// contains filtered or unexported fields
}
func NewFSBuilder ¶
func NewFSBuilder(root *dag.ProtoNode, ds ipld.DAGService) *FSBuilder
Click to show internal directories.
Click to hide internal directories.