mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-20 06:01:10 +02:00
16 lines
365 B
Go
16 lines
365 B
Go
package logical
|
|
|
|
// Storage is the way that logical backends are able read/write data.
|
|
type Storage interface {
|
|
List(prefix string) ([]string, error)
|
|
Get(string) (*StorageEntry, error)
|
|
Put(*StorageEntry) error
|
|
Delete(string) error
|
|
}
|
|
|
|
// StorageEntry is the entry for an item in a Storage implementation.
|
|
type StorageEntry struct {
|
|
Key string
|
|
Value []byte
|
|
}
|