kvstore

package
v4.7.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: BSD-3-Clause, BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(ciphertext string) string

Types

type KVRevisionCache

type KVRevisionCache struct {
	sync.Mutex
	// contains filtered or unexported fields
}

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)

Jump to

Keyboard shortcuts

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