packer

package
v0.0.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TarGzipDir

func TarGzipDir(dir string, opts ...TarOption) (io.Reader, error)

TarGzipDir creates a tar.gz archive of the given directory. Hidden files (starting with '.') are excluded. Returns a reader over the compressed archive.

Types

type TarOption added in v0.0.9

type TarOption func(*tarOptions)

TarOption configures the behaviour of TarGzipDir.

func WithExclude added in v0.0.9

func WithExclude(fn func(relPath string) bool) TarOption

WithExclude sets a predicate that is called with the slash-separated relative path of each non-directory entry. When the predicate returns true the file is omitted from the archive.

Jump to

Keyboard shortcuts

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