tar

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TarArchive

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

func FromBytes

func FromBytes(b []byte, gzipped bool) (*TarArchive, error)

func NewTarFile

func NewTarFile() *TarArchive

func (*TarArchive) Add

func (ta *TarArchive) Add(name string, data []byte)

func (*TarArchive) AddDir

func (ta *TarArchive) AddDir(dir fs.ReadDirFS, root string) error

func (*TarArchive) AddFile

func (ta *TarArchive) AddFile(dir fs.ReadDirFS, file string) error

func (*TarArchive) Bytes

func (ta *TarArchive) Bytes(gzipped bool) ([]byte, error)

func (*TarArchive) Content

func (ta *TarArchive) Content() (map[string][]byte, error)

Jump to

Keyboard shortcuts

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