key

package
v4.4.4 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package key provides a persistence layer for user key.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDAO

func NewDAO(ctx context.Context, o dao.DAO) (dao.DAO, error)

Types

type DAO

type DAO interface {
	SaveKey(key *encryption.Key, version ...int) error
	GetKey(owner string, KeyID string) (*encryption.Key, int, error)
	ListKeys(owner string) ([]*encryption.Key, error)
	DeleteKey(owner string, keyID string) error
}

DAO is a protocol for user key storing

Directories

Path Synopsis
Package grpc is a simple encryption key persistence layer
Package grpc is a simple encryption key persistence layer

Jump to

Keyboard shortcuts

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