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 ¶ added in v1.6.1
type DBCursor struct {
// contains filtered or unexported fields
}
DBCursor
type QueryResultCursor ¶ added in v1.6.1
func NewDBCursor ¶ added in v1.6.1
func NewDBCursor(rows *sqldb.Rows, scanner dbRowScanner) QueryResultCursor
Source Files
¶
- dao.go
- sql.go
Click to show internal directories.
Click to hide internal directories.