tar

package
v0.0.0-...-795e242 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer struct {
	Dag  mdag.DAGService
	TarW *tar.Writer
	// contains filtered or unexported fields
}

Writer is a utility structure that helps to write unixfs merkledag nodes as a tar archive format. It wraps any io.Writer.

func NewWriter

func NewWriter(ctx cxt.Context, dag mdag.DAGService, archive bool, compression int, w io.Writer) (*Writer, error)

NewWriter wraps given io.Writer.

func (*Writer) Close

func (w *Writer) Close() error

func (*Writer) WriteNode

func (w *Writer) WriteNode(nd *mdag.Node, fpath string) error

Jump to

Keyboard shortcuts

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