Documentation ¶
Index ¶
- func DecompressAndUntarFile(compressedFilePath, decompressedFilesDestination string) error
- func GetSnapshotDatabaseVersion(snapshotFile string) (int64, error)
- func MkdirAllIgnoringUMask(dir string) error
- func RemoveAllFromDirectoryIfExists(dir string) error
- func TarAndCompressDirWithDeterministicHeader(sourceDir, targetFile string, devMajorVersion int64) (compressedFileSize int64, err error)
- func TarDirectoryWithDeterministicHeader(w io.Writer, devMajorVersion int64, sourceDir string) error
- func UntarFile(source io.Reader, decompressedFilesDestination string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecompressAndUntarFile ¶
func MkdirAllIgnoringUMask ¶
func RemoveAllFromDirectoryIfExists ¶
RemoveAllFromDirectoryIfExists used in place of os.RemoveAll when the directory should be emptied but not removed.
func TarAndCompressDirWithDeterministicHeader ¶
func TarAndCompressDirWithDeterministicHeader(sourceDir, targetFile string, devMajorVersion int64) (compressedFileSize int64, err error)
TarAndCompressDirWithDeterministicHeader the tar file needs to be identical across OS/Arch, testing shows that if the default header is used there can be differences based on which platform the tar is created on.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.