Versions in this module Expand all Collapse all v0 v0.1.1 Apr 11, 2023 v0.1.0 Mar 27, 2023 Changes in this version + const DefaultHashSize + const ErrTypeFileDeleted + const ErrTypeFileMismatch + const ErrTypeNewFile + const IntegrityMessageFileDeleted + const IntegrityMessageFileMismatch + const IntegrityMessageNewFileFound + const IntegrityMessageUnknownErr + func CalculateAndWriteHashes() error + func CheckIntegrity(ctx context.Context, log *logrus.Logger, monitoringDirectory string, ...) error + func GetProcessPath(procName string, path string) (string, error) + func HashDir(rootPath, pathToMonitor, alg string) []worker.FileHash + func ParseMonitoringOpts(opts string) (map[string][]string, error) + func SetupIntegrity(ctx context.Context, monitoringDirectory string, log *logrus.Logger, ...) error + type IntegrityError struct + Hash string + Path string + Type int + func (e *IntegrityError) Error() string