inmemory

package
v0.23.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package inmemory implements the crudstore plugin interface, storing data in-memory and is 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 {
	// contains filtered or unexported fields
}

Store is an in-memory backed data store.

func NewStore

func NewStore() *Store

func (*Store) Delete

func (s *Store) Delete(itemType string, name string) error

func (*Store) List

func (s *Store) List(itemType string) ([]string, error)

func (*Store) Read

func (s *Store) Read(itemType string, name string) ([]byte, error)

func (*Store) Save

func (s *Store) Save(itemType string, name string, data []byte) error

Jump to

Keyboard shortcuts

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