archive

package
v1.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustWriteTarGz

func MustWriteTarGz(files [][2]string) *bytes.Buffer

MustWriteTarGz writes the list of file names and content into a tarball. Paths are prefixed with "/".

Types

type TarGzWriter added in v1.11.0

type TarGzWriter struct {
	*tar.Writer
	// contains filtered or unexported fields
}

func NewTarGzWriter added in v1.11.0

func NewTarGzWriter(w io.Writer) *TarGzWriter

func (*TarGzWriter) Close added in v1.11.0

func (tgw *TarGzWriter) Close() error

func (*TarGzWriter) WriteFile added in v1.11.0

func (tgw *TarGzWriter) WriteFile(path string, bs []byte) (err error)

func (*TarGzWriter) WriteJSONFile added in v1.11.0

func (tgw *TarGzWriter) WriteJSONFile(path string, v any) error

Jump to

Keyboard shortcuts

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