tarutils

package
v0.461.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2025 License: Apache-2.0 Imports: 12 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 FileToTarReader added in v0.438.0

func FileToTarReader(localFilePath string, options *tarparameteroptions.FileToTarOptions) (*bytes.Buffer, error)

FileToTarReader creates a tar archive in memory from a given file.

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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