archive

package
v0.4.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package archive provides utilities to archive and compress a [Unixfs] DAG.

Index

Constants

This section is empty.

Variables

View Source
var DefaultBufSize = 1048576

DefaultBufSize is the buffer size for gets. for now, 1MB, which is ~4 blocks. TODO: does this need to be configurable?

Functions

func DagArchive

func DagArchive(ctx context.Context, nd ipld.Node, name string, dag ipld.DAGService, archive bool, compression int) (io.Reader, error)

DagArchive is equivalent to `ipfs getdag $hash | maybe_tar | maybe_gzip`

Types

This section is empty.

Directories

Path Synopsis
Package tar provides functionality to write a unixfs merkledag as a tar archive.
Package tar provides functionality to write a unixfs merkledag as a tar archive.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL