feat: Implement a bbolt backed secrets store.
This commit is contained in:
1 parent
ccbbfd200c
commit
f6991cbe1d
5 files changed
+112
-10
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user