Versions in this module Expand all Collapse all v0 v0.8.1 Sep 16, 2021 Changes in this version + const OwnTargetDirectory + const TargetRoot + func Cleanup(targetRoot string) error + func CloneTreeInto(scratchDir string) error + func CopyFilesInto(fileSpecs []string, destDir string, opts *CopyFileOptions) error + func ExpectedCloneContent() []string + func ExpectedCloneGPUContent() []string + func ExpectedCloneNetContent() []string + func ExpectedClonePCIContent() []string + func ExpectedCloneStaticContent() []string + func OpenDestination(snapshotName string) (*os.File, error) + func PackFrom(snapshotName, sourceRoot string) error + func PackWithWriter(fw io.Writer, sourceRoot string) error + func SetTraceFunction(fn func(msg string, args ...interface{})) + func Unpack(snapshotName string) (string, error) + func UnpackInto(snapshotName, targetRoot string, flags uint) (bool, error) + func Untar(root string, r io.Reader) error + func ValidateClonedTree(fileSpecs []string, clonedDir string) ([]string, error) + type CopyFileOptions struct + IsSymlinkFn func(path string, info os.FileInfo) bool + ShouldCreateDirFn func(path string, info os.FileInfo) bool