Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a storage manager, and make .gitignore ignore emacs backups. #16

Merged
merged 6 commits into from
Jun 11, 2024

Conversation

todd-spruceid
Copy link
Contributor

This adds a storage manager, with files encrypted at rest.

.gitignore now ignores emacs backup files, which are of the pattern *~

This adds a storage manager, with files encrypted at rest.

.gitignore now ignores emacs backup files, which are of the pattern *~
This adds a platform context object which can be used to abstract platform-
specific calls (such as calls to the secure storage manager).  The context
contains enough information to translate generic calls to their platform-
specific counterparts, and wrapper functions are supplied of form:

SpruceKit[Subsystem][Function](context: ctx, [args]) -> return

So, for example:

SpruceKitStorageGet(context: SpruceKitPlatformContext, key: String) -> Data?

calls through to:

StorageManager.get(key: String) -> Data?
The platform context functions will be shifted to the Rust layer, which
will call through the context directly.
@todd-spruceid todd-spruceid merged commit f9e9053 into main Jun 11, 2024
1 check passed
@todd-spruceid todd-spruceid deleted the camv-532-sprucekit-sdk-storage-manager-swift branch June 11, 2024 20:27
@sbihel sbihel mentioned this pull request Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants