Documentation
¶
Index ¶
- func Archive(location string, out io.Writer, options ...ArchiveOption) (err error)
- func GzipArchive(location string, out io.Writer) error
- func GzipUnarchive(in io.Reader, location string) error
- func SkipVCSOption(ao *archiveOptions)
- func Unarchive(in io.Reader, location string) error
- type ArchiveOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Archive ¶
func Archive(location string, out io.Writer, options ...ArchiveOption) (err error)
Reptar creates a tar of a location. Reptar stands for reproducible tar and is intended to replicate the following gnu tar command:
tar - \ --sort=name \ --mtime="1970-01-01 00:00:00Z" \ --owner=0 --group=0 --numeric-owner \ --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime \ -cf
This command is currently not complete and only works on very basic test cases. GNU Tar also adds padding to outputted files
func SkipVCSOption ¶
func SkipVCSOption(ao *archiveOptions)
Types ¶
type ArchiveOption ¶
type ArchiveOption func(*archiveOptions)
Click to show internal directories.
Click to hide internal directories.