Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Collect ¶
func Collect(injectedHandlerDependency handler, exportList ListOfFilesToExport, resultWriter resultWriter) (err error)
Collect will find and collect target files into a format depending on the resultWriter type
Types ¶
type FileToExport ¶
type FileToExport struct { FullPath string `yaml:"FullPath"` IsFullPathRegex bool `yaml:"IsFullPathRegex"` FileName string `yaml:"FileName"` IsFileNameRegex bool `yaml:"IsFileNameRegex"` }
FileToExport is the file that you want to export.
type ListOfFilesToExport ¶
type ListOfFilesToExport []FileToExport
ListOfFilesToExport is a slice of files that you want to export.
type VolumeHandler ¶
type VolumeHandler struct { Handle *os.File VolumeLetter string Vbr vbr.VolumeBootRecord // contains filtered or unexported fields }
VolumeHandler contains everything needed for basic collection functionality
func GetVolumeHandler ¶
func GetVolumeHandler(volumeLetter string, handler handler) (volume VolumeHandler, err error)
GetVolumeHandler gets a file handle to the specified volume and parses its volume boot record.
type ZipResultWriter ¶
ZipResultWriter contains the handles to the file and zip structure
func (*ZipResultWriter) ResultWriter ¶
func (zipResultWriter *ZipResultWriter) ResultWriter(fileReaders chan fileReader, waitForFileCopying *sync.WaitGroup) (err error)
ResultWriter will export found files to a zip file.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.