memorystorage

package
v0.0.0-...-4f85a94 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryStorage

type MemoryStorage struct {
	// Data is the map of stored data.
	Data map[secretstorage.SecretID][]byte
	// ErrorOnInitialize if not nil, the error is thrown when the Initialize method is called.
	ErrorOnInitialize error
	// ErrorOnStore if not nil, the error is thrown when the Store method is called.
	ErrorOnStore error
	// ErrorOnGet if not nil, the error is thrown when the Get method is called.
	ErrorOnGet error
	// ErrorOnDelete if not nil, the error is thrown when the Delete method is called.
	ErrorOnDelete error
	// contains filtered or unexported fields
}

func (*MemoryStorage) Delete

Delete implements secretstorage.SecretStorage

func (*MemoryStorage) Examine

func (m *MemoryStorage) Examine(ctx context.Context) error

func (*MemoryStorage) Get

Get implements secretstorage.SecretStorage

func (*MemoryStorage) Initialize

func (m *MemoryStorage) Initialize(ctx context.Context) error

Initialize implements secretstorage.SecretStorage

func (*MemoryStorage) Len

func (m *MemoryStorage) Len() int

func (*MemoryStorage) Reset

func (m *MemoryStorage) Reset()

func (*MemoryStorage) Store

func (m *MemoryStorage) Store(ctx context.Context, id secretstorage.SecretID, data []byte) error

Store implements secretstorage.SecretStorage

Jump to

Keyboard shortcuts

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