tar

package
v0.4.9-rc2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2017 License: MIT Imports: 12 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 context.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 node.Node, fpath string) error

Jump to

Keyboard shortcuts

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