Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallKeyRotations ¶ added in v1.20.0
func CallKeyRotations(dbp zesty.DBProvider) error
CallKeyRotations calls registered callbacks to rotate the encryption keys
func Init ¶
func Init(store *configstore.Store) error
Init takes a connection string and a configuration struct and registers a new postgres DB connection in zesty, under utask.DBName -> accessible from api handlers and engine collectors
func RegisterKeyRotations ¶ added in v1.20.0
func RegisterKeyRotations(cb KeyRotationCallback)
RegisterKeyRotations registers a callback which will be called during the encrypt keys rotations
func RegisterTableModel ¶ added in v1.20.0
RegisterTableModel registers a new table model
Types ¶
type KeyRotationCallback ¶ added in v1.20.0
type KeyRotationCallback func(dbp zesty.DBProvider) error
Click to show internal directories.
Click to hide internal directories.