tar

package
v0.4.6-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 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.ProtoNode, fpath string) error

Jump to

Keyboard shortcuts

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