archiver

package
v0.0.0-...-37118a4 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateArchive

func CreateArchive(format archives.CompressedArchive, archivePath string, workDir string, fileMaps []FileMap) error

func CreateTgz

func CreateTgz(archivePath string, workDir string, fileMaps []FileMap) error

func CreateZip

func CreateZip(archivePath string, workDir string, fileMaps []FileMap) error

Types

type FileMap

type FileMap struct {
	Source string
	Target string // Note: Target paths should always be relative to the archive root, do not use absolute paths
}

func FilesWithCommonParent

func FilesWithCommonParent(filepaths ...string) []FileMap

Jump to

Keyboard shortcuts

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