inmemory

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package inmemory provides an in-memory implementation of a secret store suitable for unit testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	Secrets map[string]map[string]string
}

Store implements an in-memory secrets store for testing.

func NewStore

func NewStore() *Store

func (*Store) Create

func (s *Store) Create(ctx context.Context, keyName string, keyValue string, value string) error

func (*Store) Resolve

func (s *Store) Resolve(ctx context.Context, keyName string, keyValue string) (string, error)

Jump to

Keyboard shortcuts

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