Documentation ¶
Index ¶
- Constants
- Variables
- func BenchmarkCreateFileList(b *testing.B)
- func BenchmarkIdentifyFiles(b *testing.B)
- func CreateErrorLogger(errlogFile string)
- func CreateFileList(rootDir string) ([]string, []string)
- func CreateLogger(logFile string)
- func CreateUUID() string
- func DownloadPronom() error
- func Hashit(inFile string, hashalg string) []byte
- func IdentifyFSInfo(entryList []string)
- func IdentifyFiles(fileList []string, hashDigest string, nsrlEnabled bool, conn redis.Conn, ...) []string
- func RedisConnect(r RedisConf) redis.Conn
- func RedisGet(conn redis.Conn, hashSum string) string
- func WriteCSV(oFile *string, hashAlg *string, resultList []string) error
- func WriteLogfile(Version string, Build string, SigFile string, hashAlg string, nsrlEnabled bool, ...)
- type Config
- type RedisConf
Constants ¶
View Source
const ( // MaxFileSize is the max size file thatr should be processed. This defaults to 1 GB. MaxFileSize = 1073741824 // MaxEntropyChunk is the max byte size of a chunk read MaxEntropyChunk = 256000 )
View Source
const Pronomurl string = "https://github.com/dla-marbach/filedriller/raw/main/third_party/pronom.sig"
Pronomurl holds the location for my copy of pronom signature file taken from Siegfried
Variables ¶
Functions ¶
func BenchmarkCreateFileList ¶
BenchmarkCreateFileList benchmarks the creation of the file list that woll be processed
func BenchmarkIdentifyFiles ¶
BenchmarkIdentifyFiles benchmarks the process of identifying one file
func CreateErrorLogger ¶
func CreateErrorLogger(errlogFile string)
CreateErrorLogger creates a custom logger for errors and warnings
func CreateFileList ¶
CreateFileList creates a list of file paths and a directory listing
func IdentifyFSInfo ¶
func IdentifyFSInfo(entryList []string)
IdentifyDirs reads metadata from the filesystem
func IdentifyFiles ¶
func IdentifyFiles(fileList []string, hashDigest string, nsrlEnabled bool, conn redis.Conn, entroEnabled bool) []string
IdentifyFiles creates metadata with siegfried and hashsum
func RedisConnect ¶
RedisConnect creates a connection to a Redis server
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.