tar

package
v1.20.57 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Zlib Imports: 6 Imported by: 0

Documentation

Overview

Package tar implements the Archive interface providing tar archiving.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

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

Archive as tar.

func Copying

func Copying(source io.Reader, target io.Writer) (Archive, error)

Copying creates a new tar with the contents of the given tar.

func New

func New(target io.Writer) Archive

New tar archive.

func (Archive) Add

func (a Archive) Add(f fileconfig.File, stream ...fileconfig.ReaderStream) error

Add file to the archive.

func (Archive) Close

func (a Archive) Close() error

Close all closeables.

Jump to

Keyboard shortcuts

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