Documentation ¶
Overview ¶
Package key provides a persistence layer for user key.
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 SaveKey(ctx context.Context, key *encryption.Key, version ...int) error GetKey(ctx context.Context, owner string, KeyID string) (*encryption.Key, int, error) ListKeys(ctx context.Context, owner string) ([]*encryption.Key, error) DeleteKey(ctx context.Context, owner string, keyID string) error }
DAO is a protocol for user key storing
Click to show internal directories.
Click to hide internal directories.