Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
StoreOnce is an in-memory storage that does not overrwite information on store
func New ¶
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 ¶
func (ts *Storage) Store(ctx context.Context, msg nodeenrollment.MessageWithId) error
Store implements the Storage interface.
If the message already exists, return a duplicate record error
Click to show internal directories.
Click to hide internal directories.