crypto

package
v0.0.0-...-daf2a86 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScrambleFunc

type ScrambleFunc func(string) string

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) Exists

func (s *ScrambledKeyStore) Exists(key string) (bool, error)

func (*ScrambledKeyStore) Get

func (s *ScrambledKeyStore) Get(key string) (*cloud.KVPair, error)

func (*ScrambledKeyStore) Put

func (s *ScrambledKeyStore) Put(key string, value []byte, options *cloud.WriteOptions) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL