memfs

package
v2.20.0 Latest Latest
Warning

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

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

Documentation

Overview

Package memfs implements a storage backend for the KMS that stores keys in memory only. This package should be used for testing only.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

Storage is the standard implementation of the Storage interface, storing keys in memory only.

func New

func New() *Storage

New creates and initializes a new Storage object.

func (*Storage) Get

func (s *Storage) Get(_ context.Context, keyID string) ([]byte, error)

Get returns a DEK from Storage by key ID.

func (*Storage) Put

func (s *Storage) Put(_ context.Context, keyID string, encDEK []byte) error

Put saves a DEK to Storage by key ID.

Jump to

Keyboard shortcuts

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