tarball

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

A Reader reads a directory and build a tarball stream.

func NewReader

func NewReader(path string) (*Reader, error)

NewReader returns a new Reader.

func (*Reader) Close

func (r *Reader) Close() error

Close implements io.Closer.

func (*Reader) Name

func (r *Reader) Name() string

Name returns the name of the tarball.

func (*Reader) Read

func (r *Reader) Read(p []byte) (int, error)

Read implements io.Reader.

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

A Writer writes a directory from a tarball stream.

func NewWriter

func NewWriter(dst string) (*Writer, error)

NewWriter returns a new Writer.

func (*Writer) Close

func (w *Writer) Close() error

Close implements io.Closer.

func (*Writer) Write

func (w *Writer) Write(p []byte) (int, error)

Write implements io.Writer.

Jump to

Keyboard shortcuts

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