db

package
v1.23.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2023 License: BSD-3-Clause Imports: 25 Imported by: 0

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

func RegisterTableModel(model interface{}, name string, keys []string, autoinc bool)

RegisterTableModel registers a new table model

Types

type KeyRotationCallback added in v1.20.0

type KeyRotationCallback func(dbp zesty.DBProvider) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL