feat: Implement a bbolt backed secrets store.

This commit is contained in:
jmug committed 2026-10-23 13:17:14 -07:00
1 parent ccbbfd200c
commit f6991cbe1d
5 files changed
+112 -10

No files matched your search

+8 -3
View File
@@ -9,7 +9,12 @@ type SecretsStore interface {
Delete(key Key) error
}
func New(path string) SecretsStore {
// TODO: Actually instantiate the struct.
return &bboltStore{}
// New returns a SecretsStore that uses the file at path for storage.
// path is created if it doesn't exist.
func New(path string) (SecretsStore, error) {
bstore, err := newBboltStore(path)
if err != nil {
return nil, err
}
return bstore, nil
}