Documentation ¶
Index ¶
- func Hash(ciphertext string) string
- type KVRevisionCache
- func (k *KVRevisionCache) Fetch(mctx libkb.MetaContext, entryID keybase1.KVEntryID) (entryHash string, teamKeyGen keybase1.PerTeamKeyGeneration, revision int)
- func (k *KVRevisionCache) OnDbNuke(m libkb.MetaContext) error
- func (k *KVRevisionCache) OnLogout(m libkb.MetaContext) error
- func (k *KVRevisionCache) PutCheck(mctx libkb.MetaContext, entryID keybase1.KVEntryID, entryHash string, ...) (err error)
- type KVRevisionCacheError
- type KVStoreBoxer
- type KVStoreRealBoxer
- func (b *KVStoreRealBoxer) Box(mctx libkb.MetaContext, entryID keybase1.KVEntryID, revision int, ...) (ciphertext string, teamKeyGen keybase1.PerTeamKeyGeneration, version int, ...)
- func (b *KVStoreRealBoxer) Unbox(mctx libkb.MetaContext, entryID keybase1.KVEntryID, revision int, ...) (cleartext string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KVRevisionCache ¶
func NewKVRevisionCache ¶
func NewKVRevisionCache(g *libkb.GlobalContext) *KVRevisionCache
func (*KVRevisionCache) Fetch ¶
func (k *KVRevisionCache) Fetch(mctx libkb.MetaContext, entryID keybase1.KVEntryID) (entryHash string, teamKeyGen keybase1.PerTeamKeyGeneration, revision int)
func (*KVRevisionCache) OnDbNuke ¶
func (k *KVRevisionCache) OnDbNuke(m libkb.MetaContext) error
func (*KVRevisionCache) OnLogout ¶
func (k *KVRevisionCache) OnLogout(m libkb.MetaContext) error
func (*KVRevisionCache) PutCheck ¶
func (k *KVRevisionCache) PutCheck(mctx libkb.MetaContext, entryID keybase1.KVEntryID, entryHash string, teamKeyGen keybase1.PerTeamKeyGeneration, revision int) (err error)
type KVRevisionCacheError ¶
type KVRevisionCacheError struct {
Message string
}
func (KVRevisionCacheError) Error ¶
func (e KVRevisionCacheError) Error() string
type KVStoreBoxer ¶
type KVStoreBoxer interface { Box(mctx libkb.MetaContext, entryID keybase1.KVEntryID, revision int, cleartextValue string) (ciphertext string, teamKeyGen keybase1.PerTeamKeyGeneration, ciphertextVersion int, err error) Unbox(mctx libkb.MetaContext, entryID keybase1.KVEntryID, revision int, ciphertext string, teamKeyGen keybase1.PerTeamKeyGeneration, formatVersion int, senderUID keybase1.UID, senderEldestSeqno keybase1.Seqno, senderDeviceID keybase1.DeviceID) (cleartext string, err error) }
type KVStoreRealBoxer ¶
type KVStoreRealBoxer struct {
libkb.Contextified
}
func NewKVStoreBoxer ¶
func NewKVStoreBoxer(g *libkb.GlobalContext) *KVStoreRealBoxer
func (*KVStoreRealBoxer) Box ¶
func (b *KVStoreRealBoxer) Box(mctx libkb.MetaContext, entryID keybase1.KVEntryID, revision int, cleartext string) ( ciphertext string, teamKeyGen keybase1.PerTeamKeyGeneration, version int, err error)
func (*KVStoreRealBoxer) Unbox ¶
func (b *KVStoreRealBoxer) Unbox(mctx libkb.MetaContext, entryID keybase1.KVEntryID, revision int, ciphertext string, teamKeyGen keybase1.PerTeamKeyGeneration, formatVersion int, senderUID keybase1.UID, senderEldestSeqno keybase1.Seqno, senderDeviceID keybase1.DeviceID) (cleartext string, err error)
Click to show internal directories.
Click to hide internal directories.