Documentation ¶
Index ¶
- func GetLocalStorageSecretBoxKeyGeneric(ctx context.Context, g *libkb.GlobalContext, reason libkb.EncryptionReason) (fkey [32]byte, err error)
- func ParseTeamIDDBKey(s string) (teamID keybase1.TeamID, err error)
- type DiskStorageItem
- type FTLStorage
- type FTLStorageUpgrader
- type HiddenStorage
- func (s HiddenStorage) ClearMem()
- func (s *HiddenStorage) Get(mctx libkb.MetaContext, teamID keybase1.TeamID, public bool) (state *keybase1.HiddenTeamChain, frozen bool, tombstoned bool)
- func (s HiddenStorage) MemSize() int
- func (s *HiddenStorage) Put(mctx libkb.MetaContext, state *keybase1.HiddenTeamChain)
- type LameSecretUI
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLocalStorageSecretBoxKeyGeneric ¶
func GetLocalStorageSecretBoxKeyGeneric(ctx context.Context, g *libkb.GlobalContext, reason libkb.EncryptionReason) (fkey [32]byte, err error)
GetLocalStorageSecretBoxKeyGeneric gets a key for encrypting data on disk for the specified purpose
Types ¶
type DiskStorageItem ¶
type FTLStorage ¶
type FTLStorage struct {
// contains filtered or unexported fields
}
FTLStorage stores FTL state to disk or memory.
func NewFTLStorage ¶
func NewFTLStorage(g *libkb.GlobalContext, upgrader FTLStorageUpgrader) *FTLStorage
func (*FTLStorage) Get ¶
func (s *FTLStorage) Get(mctx libkb.MetaContext, teamID keybase1.TeamID, public bool) (data *keybase1.FastTeamData, frozen bool, tombstoned bool)
Can return nil.
func (*FTLStorage) Put ¶
func (s *FTLStorage) Put(mctx libkb.MetaContext, state *keybase1.FastTeamData)
type FTLStorageUpgrader ¶
type FTLStorageUpgrader func(mctx libkb.MetaContext, state *keybase1.FastTeamData) (changed bool, err error)
type HiddenStorage ¶
type HiddenStorage struct {
// contains filtered or unexported fields
}
HiddenStorage stores Hidden state to disk or memory.
func NewHiddenStorage ¶
func NewHiddenStorage(g *libkb.GlobalContext) *HiddenStorage
func (*HiddenStorage) Get ¶
func (s *HiddenStorage) Get(mctx libkb.MetaContext, teamID keybase1.TeamID, public bool) (state *keybase1.HiddenTeamChain, frozen bool, tombstoned bool)
Can return nil.
func (*HiddenStorage) Put ¶
func (s *HiddenStorage) Put(mctx libkb.MetaContext, state *keybase1.HiddenTeamChain)
type LameSecretUI ¶
type LameSecretUI struct{}
func (LameSecretUI) GetPassphrase ¶
func (d LameSecretUI) GetPassphrase(pinentry keybase1.GUIEntryArg, terminal *keybase1.SecretEntryArg) (keybase1.GetPassphraseRes, error)
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage stores TeamData's on memory and disk. Threadsafe. For the standard loader, which does a complete but slower load. Compare to FTLStorage which stores the Fast-loaded team state.
func NewStorage ¶
func NewStorage(g *libkb.GlobalContext) *Storage
Click to show internal directories.
Click to hide internal directories.