Versions in this module Expand all Collapse all v0 v0.0.11 Feb 4, 2016 Changes in this version + func KeyFromString(b64key string) (encryptor.Key, error) + func KeyToString(key encryptor.Key) (string, error) + func LoadKeyFromFile(filename string) (encryptor.Key, error) + func SaveKeyToFile(key encryptor.Key, filename string) error + type BoltKeyStore struct + func NewKeyStore(filename string) (*BoltKeyStore, error) + func (b *BoltKeyStore) AddKey(key encryptor.Key) error + func (b *BoltKeyStore) Close() + func (b *BoltKeyStore) DeleteKey(id string) error + func (b *BoltKeyStore) GetKey(id string) (encryptor.Key, error) + func (b *BoltKeyStore) GetKeys() ([]encryptor.Key, error) + func (b *BoltKeyStore) HasKey(id string) bool + type EncryptedBackend struct + KeyID string + func (b *EncryptedBackend) AcquireLock(token string, ttl time.Duration) error + func (b *EncryptedBackend) CompareAndSwap(path []string, key string, val []byte, ttl time.Duration, prevVal []byte) ([]byte, error) + func (b *EncryptedBackend) DeleteAll() error + func (b *EncryptedBackend) DeleteBucket(path []string, bkt string) error + func (b *EncryptedBackend) DeleteKey(path []string, key string) error + func (b *EncryptedBackend) GetKeys(path []string) ([]string, error) + func (b *EncryptedBackend) GetVal(path []string, key string) ([]byte, error) + func (b *EncryptedBackend) GetValAndTTL(path []string, key string) ([]byte, time.Duration, error) + func (b *EncryptedBackend) ReleaseLock(token string) error + func (b *EncryptedBackend) Sign() error + func (b *EncryptedBackend) UpsertVal(path []string, key string, val []byte, ttl time.Duration) error + func (b *EncryptedBackend) VerifySign() error + type KeyStore interface + AddKey func(key encryptor.Key) error + Close func() + DeleteKey func(keyID string) error + GetKey func(keyID string) (encryptor.Key, error) + GetKeys func() ([]encryptor.Key, error) + HasKey func(keyID string) bool + type ReplicatedBackend struct + func NewReplicatedBackend(backend backend.Backend, keysFile string, additionalKeys []encryptor.Key, ...) (*ReplicatedBackend, error) + func (b *ReplicatedBackend) AcquireLock(token string, ttl time.Duration) error + func (b *ReplicatedBackend) AddSealKey(key encryptor.Key) error + func (b *ReplicatedBackend) CompareAndSwap(path []string, key string, val []byte, ttl time.Duration, prevVal []byte) ([]byte, error) + func (b *ReplicatedBackend) DeleteBucket(path []string, bkt string) error + func (b *ReplicatedBackend) DeleteKey(path []string, key string) error + func (b *ReplicatedBackend) DeleteSealKey(id string) error + func (b *ReplicatedBackend) GenerateSealKey(name string) (encryptor.Key, error) + func (b *ReplicatedBackend) GetKeys(path []string) ([]string, error) + func (b *ReplicatedBackend) GetSealKey(id string) (encryptor.Key, error) + func (b *ReplicatedBackend) GetSealKeys() ([]encryptor.Key, error) + func (b *ReplicatedBackend) GetSignKey() (encryptor.Key, error) + func (b *ReplicatedBackend) GetVal(path []string, key string) ([]byte, error) + func (b *ReplicatedBackend) GetValAndTTL(path []string, key string) ([]byte, time.Duration, error) + func (b *ReplicatedBackend) ReleaseLock(token string) error + func (b *ReplicatedBackend) RewriteData() error + func (b *ReplicatedBackend) SetSignKey(key encryptor.Key) error + func (b *ReplicatedBackend) UpdateLocalKeysFromCluster() error + func (b *ReplicatedBackend) UpsertVal(path []string, key string, val []byte, ttl time.Duration) error