Documentation
¶
Index ¶
- Constants
- func BuildFileNode(item Finfo, bufDs ipld.DAGService, cidBuilder cid.Builder) (node ipld.Node, err error)
- func BuildIpldGraph(ctx context.Context, fileList []Finfo, graphName, parentPath, carDir string, ...)
- func CarTo(carPath, outputDir string, parallel int)
- func Chunk(ctx context.Context, sliceSize int64, ...) error
- func ExistDir(path string) bool
- func GenGraphName(graphName string, sliceCount, sliceTotal int) string
- func GetFileList(args []string) (fileList []string, err error)
- func GetFileListAsync(args []string) chan Finfo
- func GetGraphCount(args []string, sliceSize int64) int
- func Import(ctx context.Context, path string, st car.Store) (cid.Cid, error)
- func Merge(dir string, parallel int)
- func NodeWriteTo(nd files.Node, fpath string) error
- type CommPRet
- type FSBuilder
- type Finfo
- type GraphBuildCallback
- type Manifest
- type PieceInfo
Constants ¶
View Source
const UnixfsChunkSize uint64 = 1 << 20
View Source
const UnixfsLinksPerLevel = 1 << 10
Variables ¶
This section is empty.
Functions ¶
func BuildFileNode ¶
func BuildIpldGraph ¶
func GenGraphName ¶
func GetFileList ¶
func GetFileListAsync ¶
func GetGraphCount ¶
Types ¶
type CommPRet ¶ added in v0.4.0
type CommPRet struct { Root cid.Cid Size abi.UnpaddedPieceSize }
type FSBuilder ¶ added in v0.4.1
type FSBuilder struct {
// contains filtered or unexported fields
}
func NewFSBuilder ¶ added in v0.4.1
func NewFSBuilder(root *dag.ProtoNode, ds ipld.DAGService) *FSBuilder
type GraphBuildCallback ¶ added in v0.3.0
type GraphBuildCallback interface { OnSuccess(node ipld.Node, graphName, fsDetail string) OnError(error) }
func CSVCallback ¶ added in v0.3.0
func CSVCallback(carDir string) GraphBuildCallback
func CommPCallback ¶ added in v0.4.0
func CommPCallback(carDir string) GraphBuildCallback
func ErrCallback ¶ added in v0.3.0
func ErrCallback() GraphBuildCallback
Click to show internal directories.
Click to hide internal directories.