Documentation ¶
Index ¶
- type ScrambleFunc
- type ScrambledKeyStore
- func (s *ScrambledKeyStore) AtomicDelete(key string, previous *cloud.KVPair) (bool, error)
- func (s *ScrambledKeyStore) AtomicPut(key string, value []byte, previous *cloud.KVPair, options *cloud.WriteOptions) (bool, *cloud.KVPair, error)
- func (s *ScrambledKeyStore) Delete(key string) error
- func (s *ScrambledKeyStore) Exists(key string) (bool, error)
- func (s *ScrambledKeyStore) Get(key string) (*cloud.KVPair, error)
- func (s *ScrambledKeyStore) Put(key string, value []byte, options *cloud.WriteOptions) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScrambleFunc ¶
type ScrambledKeyStore ¶
type ScrambledKeyStore struct {
// contains filtered or unexported fields
}
func NewHMacSha256KeyStore ¶
func NewHMacSha256KeyStore(s cloud.UnorderedStore, salt []byte) *ScrambledKeyStore
func NewScrambledKeyStore ¶
func NewScrambledKeyStore(s cloud.UnorderedStore, keyFunc ScrambleFunc) *ScrambledKeyStore
func (*ScrambledKeyStore) AtomicDelete ¶
func (s *ScrambledKeyStore) AtomicDelete(key string, previous *cloud.KVPair) (bool, error)
func (*ScrambledKeyStore) AtomicPut ¶
func (s *ScrambledKeyStore) AtomicPut(key string, value []byte, previous *cloud.KVPair, options *cloud.WriteOptions) (bool, *cloud.KVPair, error)
func (*ScrambledKeyStore) Delete ¶
func (s *ScrambledKeyStore) Delete(key string) error
func (*ScrambledKeyStore) Get ¶
func (s *ScrambledKeyStore) Get(key string) (*cloud.KVPair, error)
Click to show internal directories.
Click to hide internal directories.