haven

package module
v0.1.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 7 Imported by: 0

README

Haven

Documentation

Overview

Package haven - encrypted-at-rest simple data storage

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProtectedKVStore

func NewProtectedKVStore(
	ctx context.Context,
	dbDialector gorm.Dialector,
	dbLogLevel logger.LogLevel,
	primaryRSACertFile string,
	primaryRSAKeyFile string,
) (store.ProtectedKVStore, error)

NewProtectedKVStore initialize a protected KV store instance.

Each instance is backed by a SQL database; two instances using the same database are essentially copies of each other.

@param ctx context.Context - execution context
@param dbDialector gorm.Dialector - GORM dialector
@param dbLogLevel logger.LogLevel - SQL log level
@param primaryRSACertFile string - file path to the primary RSA certificate PEM
@param primaryRSAKeyFile string - file path to the primary RSA certificate private key PEM
@returns new store instance

Types

This section is empty.

Directories

Path Synopsis
Package db - persistence layer
Package db - persistence layer
Package encryption - data encryption processing engine
Package encryption - data encryption processing engine
mocks
db
Package models - system data models
Package models - system data models
Package store - data storage controllers
Package store - data storage controllers
utils
atlas-migrate command
Package main - Atlas GORM migration support binary
Package main - Atlas GORM migration support binary

Jump to

Keyboard shortcuts

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