go-ipfs: github.com/ipfs/go-ipfs/tar Index | Files

package tarfmt

import "github.com/ipfs/go-ipfs/tar"


Package Files


func ExportTar Uses

func ExportTar(ctx context.Context, root *dag.ProtoNode, ds ipld.DAGService) (io.Reader, error)

ExportTar exports the passed DAG as a tar file. This function is the inverse of ImportTar.

func ImportTar Uses

func ImportTar(ctx context.Context, r io.Reader, ds ipld.DAGService) (*dag.ProtoNode, error)

ImportTar imports a tar file into the given DAGService and returns the root node.

Package tarfmt imports 14 packages (graph) and is imported by 45 packages. Updated 2019-12-03. Refresh now. Tools for package owners.