Documentation ¶
Overview ¶
Package key implements a keystore for managing encryption keys attached to files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Drivers service.StorageDrivers
Functions ¶
This section is empty.
Types ¶
type DAO ¶
type DAO interface { Migrate(ctx context.Context) error ListEncryptedBlockInfo(ctx context.Context, nodeUuid string) ([]*encryption.RangedBlock, error) SaveEncryptedBlockInfo(ctx context.Context, nodeUuid string, b *encryption.RangedBlock) error GetEncryptedLegacyBlockInfo(ctx context.Context, nodeUuid string) (*encryption.RangedBlock, error) ClearNodeEncryptedPartBlockInfo(ctx context.Context, nodeUuid string, partId int) error ClearNodeEncryptedBlockInfo(ctx context.Context, nodeUuid string) error CopyNode(ctx context.Context, srcUuid, targetUuid string) error SaveNode(ctx context.Context, node *encryption.Node) error UpgradeNodeVersion(ctx context.Context, nodeUuid string) error GetNode(ctx context.Context, nodeUuid string) (*encryption.Node, error) DeleteNode(ctx context.Context, nodeUuid string) error SaveNodeKey(ctx context.Context, nodeKey *encryption.NodeKey) error GetNodeKey(ctx context.Context, node string, user string) (*encryption.NodeKey, error) DeleteNodeKey(ctx context.Context, nodeKey *encryption.NodeKey) error }
Click to show internal directories.
Click to hide internal directories.