Files
shhh/pkg/secretsstore/store.go
T

16 lines
485 B
Go

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{}
}