Documentation
¶
Index ¶
- Constants
- type StorePrefixWrapper
- func (b *StorePrefixWrapper) Batch(operations []storage.Operation) error
- func (b *StorePrefixWrapper) Close() error
- func (b *StorePrefixWrapper) Delete(k string) error
- func (b *StorePrefixWrapper) Flush() error
- func (b *StorePrefixWrapper) Get(k string) ([]byte, error)
- func (b *StorePrefixWrapper) GetBulk(...string) ([][]byte, error)
- func (b *StorePrefixWrapper) GetTags(string) ([]storage.Tag, error)
- func (b *StorePrefixWrapper) Put(k string, v []byte, tags ...storage.Tag) error
- func (b *StorePrefixWrapper) Query(string, ...storage.QueryOption) (storage.Iterator, error)
Constants ¶
View Source
const StorageKIDPrefix = "k"
StorageKIDPrefix is the KID prefix for key IDs (used by localkms).
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorePrefixWrapper ¶
type StorePrefixWrapper struct {
// contains filtered or unexported fields
}
StorePrefixWrapper is a wrapper store that prepends IDPrefix to IDs. IDs will be stored in the embedded store with IDPrefix as prefix while the user of this wrapper store will interact the original unchanged ID.
func NewPrefixStoreWrapper ¶
func NewPrefixStoreWrapper(store storage.Store, prefix string) (*StorePrefixWrapper, error)
NewPrefixStoreWrapper creates a new StorePrefixWrapper of store.
func (*StorePrefixWrapper) Batch ¶
func (b *StorePrefixWrapper) Batch(operations []storage.Operation) error
Batch is not implemented.
func (*StorePrefixWrapper) Close ¶
func (b *StorePrefixWrapper) Close() error
Close is not implemented.
func (*StorePrefixWrapper) Delete ¶
func (b *StorePrefixWrapper) Delete(k string) error
Delete will delete a record with k by prefixing it with IDPrefix first.
func (*StorePrefixWrapper) Flush ¶
func (b *StorePrefixWrapper) Flush() error
Flush is not implemented.
func (*StorePrefixWrapper) Get ¶
func (b *StorePrefixWrapper) Get(k string) ([]byte, error)
Get fetches the record based on k by first prefixing it with IDPrefix.
func (*StorePrefixWrapper) GetBulk ¶
func (b *StorePrefixWrapper) GetBulk(...string) ([][]byte, error)
GetBulk is not implemented.
func (*StorePrefixWrapper) GetTags ¶
func (b *StorePrefixWrapper) GetTags(string) ([]storage.Tag, error)
GetTags is not implemented.
func (*StorePrefixWrapper) Query ¶
func (b *StorePrefixWrapper) Query(string, ...storage.QueryOption) (storage.Iterator, error)
Query is not implemented.
Click to show internal directories.
Click to hide internal directories.