tarutils

package
v0.412.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFileFromFileContentBytesToTarArchiveBytes added in v0.379.0

func AddFileFromFileContentBytesToTarArchiveBytes(archiveToExtend []byte, fileName string, content []byte) (tarBytes []byte, err error)

func AddFileFromFileContentStringToTarArchiveBytes added in v0.379.0

func AddFileFromFileContentStringToTarArchiveBytes(archiveToExtend []byte, fileName string, content string) (tarBytes []byte, err error)

func CreateTarArchiveFromFileContentByteIntoWriter added in v0.379.0

func CreateTarArchiveFromFileContentByteIntoWriter(ioWriter io.Writer, fileName string, content []byte) (err error)

func CreateTarArchiveFromFileContentStringAndGetAsBytes added in v0.379.0

func CreateTarArchiveFromFileContentStringAndGetAsBytes(fileName string, content string) (tarBytes []byte, err error)

func CreateTarArchiveFromFileContentStringIntoWriter added in v0.379.0

func CreateTarArchiveFromFileContentStringIntoWriter(fileName string, content string, ioWriter io.Writer) (err error)

func ListFileNamesFromTarArchiveBytes added in v0.379.0

func ListFileNamesFromTarArchiveBytes(archiveBytes []byte) (fileNames []string, err error)

func ReadFileFromTarArchiveBytesAsBytes added in v0.379.0

func ReadFileFromTarArchiveBytesAsBytes(archiveBytes []byte, fileNameToRead string) (content []byte, err error)

func ReadFileFromTarArchiveBytesAsString added in v0.379.0

func ReadFileFromTarArchiveBytesAsString(archiveBytes []byte, fileNameToRead string) (content string, err error)

func WriteFileContentBytesIntoWriter added in v0.379.0

func WriteFileContentBytesIntoWriter(ioWriter io.Writer, fileName string, content []byte) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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