testing

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	*inmem.Storage
}

StoreOnce is an in-memory storage that does not overrwite information on store

func New

func New(ctx context.Context) (*Storage, error)

New creates a new object that implements the Storage interface in memory. It is thread-safe.

func (*Storage) LoadByNodeId added in v0.2.12

func (ts *Storage) LoadByNodeId(ctx context.Context, msg nodeenrollment.MessageWithNodeId) error

LoadByNodeId implements the NodeIdLoader interface. Iterate through all NodeInformation records and return those matching the NodeId

func (*Storage) Store

Store implements the Storage interface.

If the message already exists, return a duplicate record error

Jump to

Keyboard shortcuts

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