Documentation ¶
Overview ¶
Package key implements a keystore for managing encryption keys attached to files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DAO ¶
type DAO interface { dao.DAO ListEncryptedBlockInfo(nodeUuid string) (QueryResultCursor, error) SaveEncryptedBlockInfo(nodeUuid string, b *RangedBlocks) error GetEncryptedLegacyBlockInfo(nodeUuid string) (*RangedBlocks, error) ClearNodeEncryptedPartBlockInfo(nodeUuid string, partId int) error ClearNodeEncryptedBlockInfo(nodeUuid string) error CopyNode(srcUuid, targetUuid string) error SaveNode(node *encryption.Node) error UpgradeNodeVersion(nodeUuid string) error GetNode(nodeUuid string) (*encryption.Node, error) DeleteNode(nodeUuid string) error SaveNodeKey(nodeKey *encryption.NodeKey) error GetNodeKey(node string, user string) (*encryption.NodeKey, error) DeleteNodeKey(nodeKey *encryption.NodeKey) error }
type DBCursor ¶
type DBCursor struct {
// contains filtered or unexported fields
}
DBCursor wraps sql scanner
type QueryResultCursor ¶
func NewDBCursor ¶
func NewDBCursor(rows *sqldb.Rows, scanner dbRowScanner) QueryResultCursor
Click to show internal directories.
Click to hide internal directories.