Documentation ¶
Index ¶
- func CreateWriter(fs afero.Fs, file *model.File) (writer *bufio.Writer, err error)
- func GetAllFiles(fs afero.Fs, paths []string) (files model.Files, err error)
- func GetTopLevelDirectories(fs afero.Fs, paths []string) (directories model.Files, err error)
- func Overwrite(fs afero.Fs, file *model.File) (err error)
- func Pipe(reader io.Reader, writer *bufio.Writer) (err error)
- func ProcessFile(fs afero.Fs, opts *model.Options, file *model.File) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateWriter ¶
CreateWriter creates a *bufio writer from a given file info pointer, opening the file with WRONLY permissions, ready for writing to
func GetAllFiles ¶
GetAllFiles gets a slice of info pointers to every file in the collection of paths given, recursing down into them if they are directories
func GetTopLevelDirectories ¶
GetTopLevelDirectories gets a slice of info points to every directory in the collection of paths given
func Overwrite ¶
Overwrite writes random data into a target file such that any magnetic shadow left by a file is corrupted and harder to retreive
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.