summaryrefslogtreecommitdiff
path: root/model/storage.go
AgeCommit message (Collapse)Author
2024-05-06model: Introduce NewStorage() functionxengineering
It is a common pattern inside the Go standard library to provide a constructor with this naming scheme to custom types of the package. Doing this here results in a style closer to the standard library which improves readability.
2024-05-04Move storage path logging to main() functionxengineering
The model package where this used to be implemented should not care too much about logging. Furthermore it is easier to compare the log output with the main() function if the log statements are there.
2024-05-04model: Add storage.Exists() and storage.Create()xengineering
These new methods provide essential functionality related to the storage folder.
2024-05-04model: Introduce type Storagexengineering
This new type definition will make it easier to handle the storage directory of Ceres and related functionality which can be implemented with methods.
2024-05-01Do not remove storage folderxengineering
This is not useful in production. Furthermore in the debug use case the default storage path is now ./storage which can easily be removed by `rm -rf storage`. This also allows to not remove the storage folder for further analysis of the storage folder.
2024-05-01Use default storage path instead of temp dirxengineering
2024-05-01model: Add version.txt file to storage folderxengineering
This prepares the ability to check for compatibility between a Ceres executable build and an existing storage folder.
2023-12-27model: Implement temporary storage directoryxengineering
This temporary directory is provided to store the user data for the Ceres recipe server during development and testing.