chore: Define the SecretsStore interface, basically a thin wrapper on top of bbolt.

This commit is contained in:
jmug committed 2026-10-23 12:39:12 -07:00
1 parent 4bd8ca54b6
commit ccbbfd200c
3 files changed
+38

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
package secretsstore
type SecretsStore interface {
// Get retrieves the value associated with the provided key from the store.
Get(key Key) ([]byte, error)
// Put stores or replaces the value associated with the provided key.
Put(key Key, val []byte) error
// Delete removes the key and value from the store, deleting a non-existing key is a no-op.
Delete(key Key) error
}
func New(path string) SecretsStore {
// TODO: Actually instantiate the struct.
return &bboltStore{}
}