Documentation ¶
Index ¶
- func ApplyFileActionsToFileSystemFileTable(fileActions []structs.FileAction, user structs.User) (errs []error)
- func CleanTestFolder(path string, ignores map[string]bool, rootDir bool) (err error)
- func ComputeFilesFromFileActions(fileActions []structs.FileAction) (files []structs.File)
- func ConvertFileActionStructToJsonString(fileActionStruct structs.FileAction) (fileActionJson string, err error)
- func ConvertJsonStringToFileActionsStruct(jsonFileAction string, client structs.Client) (fileAction structs.FileAction, err error)
- func FindFile(hash string, path string, user structs.User) (file structs.File, err error)
- func GenerateFilePathFromRoot(root string, depth int) string
- func GenerateNoisyAndNonNoisyFileActions(user_id int, clients int, totalNonNoisyActions int, createPairs int) (nonNoisyActions []structs.FileAction, noisyActions []structs.FileAction, ...)
- func GenerateRandomBytes(n int) []byte
- func GenerateRandomFile(user_id int) (file structs.File, err error)
- func GenerateRandomFileAction(client_id int, user_id int, isCreate bool) (fileAction structs.FileAction, err error)
- func GenerateRandomSha256() (s string, err error)
- func GenerateSliceOfRandomFileActions(user_id int, clients int, actions int) (fileActions []structs.FileAction, err error)
- func NewClient(user structs.User, name string, isServer bool) (client structs.Client, err error)
- func NewUser(email string, password string) (user structs.User, err error)
- func RandomString(n int) string
- func RemoveRedundancyFromFileActions(fileActions []structs.FileAction) (simplifiedFileActions []structs.FileAction)
- func SimulateFilesystemChanges(dir string, inserts int, alters int, deletes int)
- func ValidateUserPassword(email, password string) (user structs.User, err error)
- func WriteFileActionsToDatabase(fileActions []structs.FileAction, client structs.Client) (outPutFileActions []structs.FileAction, err error)
- func WriteRandomFileContent(path string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyFileActionsToFileSystemFileTable ¶
func ApplyFileActionsToFileSystemFileTable(fileActions []structs.FileAction, user structs.User) (errs []error)
func CleanTestFolder ¶
func ComputeFilesFromFileActions ¶
func ComputeFilesFromFileActions(fileActions []structs.FileAction) (files []structs.File)
func ConvertFileActionStructToJsonString ¶
func ConvertFileActionStructToJsonString(fileActionStruct structs.FileAction) (fileActionJson string, err error)
func GenerateNoisyAndNonNoisyFileActions ¶
func GenerateNoisyAndNonNoisyFileActions(user_id int, clients int, totalNonNoisyActions int, createPairs int) (nonNoisyActions []structs.FileAction, noisyActions []structs.FileAction, err error)
func GenerateRandomBytes ¶
func GenerateRandomSha256 ¶
func RandomString ¶
func RemoveRedundancyFromFileActions ¶
func RemoveRedundancyFromFileActions(fileActions []structs.FileAction) (simplifiedFileActions []structs.FileAction)
func ValidateUserPassword ¶
func WriteFileActionsToDatabase ¶
func WriteFileActionsToDatabase(fileActions []structs.FileAction, client structs.Client) (outPutFileActions []structs.FileAction, err error)
func WriteRandomFileContent ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.