key

package
v5.0.0-...-0681bf2 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package key provides a persistence layer for user key.

Index

Constants

This section is empty.

Variables

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

Directories

Path Synopsis
dao
sql
service
Package service is a GRPC encryption key persistence layer
Package service is a GRPC encryption key persistence layer

Jump to

Keyboard shortcuts

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